Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Search.html
blobf584ce1dda90c6616064168e512bc4917faa10cd
1 <html lang="en">
2 <head>
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">
8 </head>
9 <body>
10 <div class="node">
11 <p>
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>
16 <hr><br>
17 </div>
19 <h3 class="section">Searching source files</h3>
21 <p>There are two commands for searching through the current source file for a
22 regular expression.
24 <dl>
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
31 <code>fo</code>.
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>.
38 </dl>
40 </body></html>