Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Modifiers.html
blob6ccf9b7e8a9c1afc4434418215f0adbc6438d868
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="Modifiers">Modifiers</a>,
13 Previous:<a rel="previous" accesskey="p" href="Word-Designators.html#Word%20Designators">Word Designators</a>,
14 Up:<a rel="up" accesskey="u" href="History-Interaction.html#History%20Interaction">History Interaction</a>
15 <hr><br>
16 </div>
18 <h4 class="subsection">Modifiers</h4>
20 <p>After the optional word designator, you can add a sequence of one or more
21 of the following modifiers, each preceded by a <code>:</code>.
23 <dl>
25 <br><dt><code>h</code>
26 <dd>Remove a trailing pathname component, leaving only the head.
28 <br><dt><code>t</code>
29 <dd>Remove all leading pathname components, leaving the tail.
31 <br><dt><code>r</code>
32 <dd>Remove a trailing suffix of the form <code>.</code><var>suffix</var><code></code>, leaving
33 the basename.
35 <br><dt><code>e</code>
36 <dd>Remove all but the trailing suffix.
38 <br><dt><code>p</code>
39 <dd>Print the new command but do not execute it.
41 <br><dt><code>s/</code><var>old</var><code>/</code><var>new</var><code>/</code>
42 <dd>Substitute <var>new</var> for the first occurrence of <var>old</var> in the
43 event line. Any delimiter may be used in place of <code>/</code>.
44 The delimiter may be quoted in <var>old</var> and <var>new</var>
45 with a single backslash. If <code>&amp;</code> appears in <var>new</var>,
46 it is replaced by <var>old</var>. A single backslash will quote
47 the <code>&amp;</code>. The final delimiter is optional if it is the last
48 character on the input line.
50 <br><dt><code>&amp;</code>
51 <dd>Repeat the previous substitution.
53 <br><dt><code>g</code>
54 <dd>Cause changes to be applied over the entire event line. Used in
55 conjunction with <code>s</code>, as in <code>gs/</code><var>old</var><code>/</code><var>new</var><code>/</code>,
56 or with <code>&amp;</code>.
58 </dl>
60 </body></html>