3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"Sample%20Init%20File">Sample Init File
</a>,
13 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Conditional-Init-Constructs.html#Conditional%20Init%20Constructs">Conditional Init Constructs
</a>,
14 Up:
<a rel=
"up" accesskey=
"u" href=
"Readline-Init-File.html#Readline%20Init%20File">Readline Init File
</a>
18 <h4 class=
"subsection">Sample Init File
</h4>
20 <p>Here is an example of an
<var>inputrc
</var> file. This illustrates key
21 binding, variable assignment, and conditional syntax.
24 # This file controls the behaviour of line input editing for
25 # programs that use the Gnu Readline library. Existing programs
26 # include FTP, Bash, and Gdb.
28 # You can re-read the inputrc file with C-x C-r.
29 # Lines beginning with '#' are comments.
31 # First, include any systemwide bindings and variable assignments from
36 # Set various bindings for emacs mode.
38 set editing-mode emacs
42 Meta-Control-h: backward-kill-word Text after the function name is ignored
45 # Arrow keys in keypad mode
47 #
"\M-OD": backward-char
48 #
"\M-OC": forward-char
49 #
"\M-OA": previous-history
50 #
"\M-OB": next-history
52 # Arrow keys in ANSI mode
54 "\M-[D": backward-char
56 "\M-[A": previous-history
59 # Arrow keys in
8 bit keypad mode
61 #
"\M-\C-OD": backward-char
62 #
"\M-\C-OC": forward-char
63 #
"\M-\C-OA": previous-history
64 #
"\M-\C-OB": next-history
66 # Arrow keys in
8 bit ANSI mode
68 #
"\M-\C-[D": backward-char
69 #
"\M-\C-[C": forward-char
70 #
"\M-\C-[A": previous-history
71 #
"\M-\C-[B": next-history
77 # An old-style binding. This happens to be the default.
80 # Macros that are convenient for shell interaction
83 "\C-xp":
"PATH=${PATH}\e\C-e\C-a\ef\C-f"
84 # prepare to type a quoted word -- insert open and close double quotes
85 # and move to just after the open quote
87 # insert a backslash (testing backslash escapes in sequences and macros)
89 # Quote the current or previous word
91 # Add a binding to refresh the line, which is unbound
92 "\C-xr
": redraw-current-line
93 # Edit variable on current line.
94 "\M-\C-v
": "\C-a\C-k$\C-y\M-\C-e\C-a\
C-y=
"
97 # use a visible bell if one is available
98 set bell-style visible
100 # don't strip characters to 7 bits when reading
103 # allow iso-latin1 characters to be inserted rather than converted to
104 # prefix-meta sequences
107 # display characters with the eighth bit set directly rather than
108 # as meta-prefixed characters
111 # if there are more than 150 possible completions for a word, ask the
112 # user if he wants to see all of them
113 set completion-query-items 150
119 "\M-.
": yank-last-arg