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=
"Search">Search
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Source-Path.html#Source%20Path">Source Path
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"List.html#List">List
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Source.html#Source">Source
</a>
19 <h3 class=
"section">Searching source files
</h3>
21 <p>There are two commands for searching through the current source file for a
25 <dt><code>forward-search
</code><var>regexp
</var><code></code>
26 <dd><dt><code>search
</code><var>regexp
</var><code></code>
27 <dd>The command
<code>forward-search
</code><var>regexp
</var><code></code> checks each line,
28 starting with the one following the last line listed, for a match for
29 <var>regexp
</var>. It lists the line that is found. You can use the
30 synonym
<code>search
</code><var>regexp
</var><code></code> or abbreviate the command name as
33 <br><dt><code>reverse-search
</code><var>regexp
</var><code></code>
34 <dd>The command
<code>reverse-search
</code><var>regexp
</var><code></code> checks each line, starting
35 with the one before the last line listed and going backward, for a match
36 for
<var>regexp
</var>. It lists the line that is found. You can abbreviate
37 this command as
<code>rev
</code>.