diff options
author | Chris Moller <cmoller@cygnus> | 2010-04-23 12:08:07 +0000 |
---|---|---|
committer | Chris Moller <cmoller@cygnus> | 2010-04-23 12:08:07 +0000 |
commit | 8bd10a10b3917698e13bb1101d13c93d8c1db3a1 (patch) | |
tree | fca410c452286453fc101dc0fcd5baf810499a4a /gdb/doc | |
parent | f6973bdcb778ca7a54817a696cb0c6457f4ae96f (diff) | |
download | binutils-8bd10a10b3917698e13bb1101d13c93d8c1db3a1.zip binutils-8bd10a10b3917698e13bb1101d13c93d8c1db3a1.tar.gz binutils-8bd10a10b3917698e13bb1101d13c93d8c1db3a1.tar.bz2 |
PR 10179
* symtab.c (rbreak_command): Added code to include a filename
specification in the rbreak argument.
* NEWS: Added a brief description of filename-qualified rbreak.
* gdb.base/Makefile.in (EXECUTABLES): Added pr10179.
* gdb.base/pr10179-a.c:
* gdb.base/pr10179-b.c:
* gdb.base/pr10179.exp: New files.
* gdb.texinfo (Setting Breakpoints): Added description of
filename-qualified rbreak.
* refcard.tex (Breakpoints and Watchpoints): Added brief
description of filename-qualified rbreak.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 15 | ||||
-rw-r--r-- | gdb/doc/refcard.tex | 3 |
3 files changed, 23 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 268f3a7..a96ce2f 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2010-04-20 Chris Moller <cmoller@redhat.com> + + * gdb.texinfo (Setting Breakpoints): Added description of + filename-qualified rbreak. + * refcard.tex (Breakpoints and Watchpoints): Added brief + description of filename-qualified rbreak. + 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.texinfo (Data): New @menu reference to Pretty Printing. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index d53d521..5ff37a2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -3355,7 +3355,7 @@ See also @ref{Conditions, ,Break Conditions}. @kindex rbreak @cindex regular expression -@cindex breakpoints in functions matching a regexp +@cindex breakpoints at functions matching a regexp @cindex set breakpoints in many functions @item rbreak @var{regex} Set breakpoints on all functions matching the regular expression @@ -3385,6 +3385,19 @@ The @code{rbreak} command can be used to set breakpoints in (@value{GDBP}) rbreak . @end smallexample +@item rbreak @var{file}:@var{regex} +If @code{rbreak} is called with a filename qualification, it limits +the search for functions matching the given regular expression to the +specified @var{file}. This can be used, for example, to set breakpoints on +every function in a given file: + +@smallexample +(@value{GDBP}) rbreak file.c:. +@end smallexample + +The colon separating the filename qualifier from the regex may +optionally be surrounded by spaces. + @kindex info breakpoints @cindex @code{$_} and @code{info breakpoints} @item info breakpoints @r{[}@var{n}@r{]} diff --git a/gdb/doc/refcard.tex b/gdb/doc/refcard.tex index ff10d1b..3d6303f 100644 --- a/gdb/doc/refcard.tex +++ b/gdb/doc/refcard.tex @@ -325,7 +325,8 @@ break $\ldots$ if {\it expr}&break conditionally on nonzero {\it expr}\cr cond {\it n} \opt{\it expr}&new conditional expression on breakpoint {\it n}; make unconditional if no {\it expr}\cr tbreak $\ldots$&temporary break; disable when reached\cr -rbreak {\it regex}&break on all functions matching {\it regex}\cr +rbreak \opt{\it file\tt:}{\it regex}&break on all functions matching {\it +regex} \opt{in \it file}\cr watch {\it expr}&set a watchpoint for expression {\it expr}\cr catch {\it event}&break at {\it event}, which may be {\tt catch}, {\tt throw}, {\tt exec}, {\tt fork}, {\tt vfork}, {\tt load}, or {\tt unload}.\cr |