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=
"Commands%20For%20History">Commands For History
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Commands-For-Text.html#Commands%20For%20Text">Commands For Text
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Commands-For-Moving.html#Commands%20For%20Moving">Commands For Moving
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Bindable-Readline-Commands.html#Bindable%20Readline%20Commands">Bindable Readline Commands
</a>
19 <h4 class=
"subsection">Commands For Manipulating The History
</h4>
22 <dt><code>accept-line (Newline or Return)
</code>
23 <dd>Accept the line regardless of where the cursor is.
25 non-empty, it may be added to the history list for future recall with
26 <code>add_history()
</code>.
27 If this line is a modified history line, the history line is restored
28 to its original state.
30 <br><dt><code>previous-history (C-p)
</code>
31 <dd>Move `back' through the history list, fetching the previous command.
33 <br><dt><code>next-history (C-n)
</code>
34 <dd>Move `forward' through the history list, fetching the next command.
36 <br><dt><code>beginning-of-history (M-
<)
</code>
37 <dd>Move to the first line in the history.
39 <br><dt><code>end-of-history (M-
>)
</code>
40 <dd>Move to the end of the input history, i.e., the line currently
43 <br><dt><code>reverse-search-history (C-r)
</code>
44 <dd>Search backward starting at the current line and moving `up' through
45 the history as necessary. This is an incremental search.
47 <br><dt><code>forward-search-history (C-s)
</code>
48 <dd>Search forward starting at the current line and moving `down' through
49 the the history as necessary. This is an incremental search.
51 <br><dt><code>non-incremental-reverse-search-history (M-p)
</code>
52 <dd>Search backward starting at the current line and moving `up'
53 through the history as necessary using a non-incremental search
54 for a string supplied by the user.
56 <br><dt><code>non-incremental-forward-search-history (M-n)
</code>
57 <dd>Search forward starting at the current line and moving `down'
58 through the the history as necessary using a non-incremental search
59 for a string supplied by the user.
61 <br><dt><code>history-search-forward ()
</code>
62 <dd>Search forward through the history for the string of characters
63 between the start of the current line and the point.
64 This is a non-incremental search.
65 By default, this command is unbound.
67 <br><dt><code>history-search-backward ()
</code>
68 <dd>Search backward through the history for the string of characters
69 between the start of the current line and the point. This
70 is a non-incremental search. By default, this command is unbound.
72 <br><dt><code>yank-nth-arg (M-C-y)
</code>
73 <dd>Insert the first argument to the previous command (usually
74 the second word on the previous line) at point.
75 With an argument
<var>n
</var>,
76 insert the
<var>n
</var>th word from the previous command (the words
77 in the previous command begin with word
0). A negative argument
78 inserts the
<var>n
</var>th word from the end of the previous command.
80 <br><dt><code>yank-last-arg (M-. or M-_)
</code>
81 <dd>Insert last argument to the previous command (the last word of the
82 previous history entry). With an
83 argument, behave exactly like
<code>yank-nth-arg
</code>.
84 Successive calls to
<code>yank-last-arg
</code> move back through the history
85 list, inserting the last argument of each line in turn.