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=
"Editing">Editing
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"History.html#History">History
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Prompt.html#Prompt">Prompt
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Controlling-GDB.html#Controlling%20GDB">Controlling GDB
</a>
19 <h3 class=
"section">Command editing
</h3>
21 GDB reads its input commands via the
<dfn>readline
</dfn> interface. This
22 <small>GNU
</small> library provides consistent behavior for programs which provide a
23 command line interface to the user. Advantages are
<small>GNU
</small> Emacs-style
24 or
<dfn>vi
</dfn>-style inline editing of commands,
<code>csh
</code>-like history
25 substitution, and a storage and recall of command history across
28 <p>You may control the behavior of command line editing in GDB with the
29 command
<code>set
</code>.
32 <dt><code>set editing
</code>
33 <dd><dt><code>set editing on
</code>
34 <dd>Enable command line editing (enabled by default).
36 <br><dt><code>set editing off
</code>
37 <dd>Disable command line editing.
39 <br><dt><code>show editing
</code>
40 <dd>Show whether command line editing is enabled.