Chapter 30. Using History Interactively
311
x
-
Abbreviates
x
-$
like
x
*
, but omits the last word.
If a word designator is supplied without an event specification, the previous command is used as the
event.
30.1.3. Modifiers
After the optional word designator, you can add a sequence of one or more of the following modifiers,
each preceded by a
:
.
h
Remove a trailing pathname component, leaving only the head.
t
Remove all leading pathname components, leaving the tail.
r
Remove a trailing suffix of the form
.
suffix
, leaving the basename.
e
Remove all but the trailing suffix.
p
Print the new command but do not execute it.
s/
old
/
new
/
Substitute
new
for the first occurrence of
old
in the event line. Any delimiter may be used in
place of
/
. The delimiter may be quoted in
old
and
new
with a single backslash. If
&
appears in
new
, it is replaced by
old
. A single backslash will quote the
&
. The final delimiter is optional if
it is the last character on the input line.
&
Repeat the previous substitution.
g
Cause changes to be applied over the entire event line. Used in conjunction with
s
, as in
gs/
old
/
new
/
, or with
&
.
Summary of Contents for ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Page 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Page 12: ...2 Chapter 1 Debugging with gdb ...
Page 28: ...18 Chapter 4 Getting In and Out of gdb ...
Page 34: ...24 Chapter 5 gdb Commands ...
Page 44: ...34 Chapter 6 Running Programs Under gdb ...
Page 68: ...58 Chapter 8 Examining the Stack ...
Page 98: ...88 Chapter 10 Examining Data ...
Page 112: ...102 Chapter 12 Tracepoints ...
Page 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Page 138: ...128 Chapter 14 Using gdb with Different Languages ...
Page 144: ...134 Chapter 15 Examining the Symbol Table ...
Page 170: ...160 Chapter 19 Debugging remote programs ...
Page 198: ...188 Chapter 21 Controlling gdb ...
Page 204: ...194 Chapter 22 Canned Sequences of Commands ...
Page 206: ...196 Chapter 23 Command Interpreters ...
Page 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Page 296: ...286 Chapter 27 gdb Annotations ...
Page 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Page 322: ...312 Chapter 30 Using History Interactively ...
Page 362: ...352 Appendix D gdb Remote Serial Protocol ...
Page 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Page 386: ...376 Appendix G GNU Free Documentation License ...
Page 410: ......