diff options
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 15 |
2 files changed, 14 insertions, 6 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e1904aa..e7b77c4 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2013-04-15 Tom Tromey <tromey@redhat.com> + * gdb.texinfo (Set Catchpoints): Document regexp syntax for + exception catchpoints. + +2013-04-15 Tom Tromey <tromey@redhat.com> + * gdb.texinfo (Set Catchpoints): Document $_exception. (Convenience Vars): Mention $_exception. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cba3a2f..337837e 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4074,12 +4074,15 @@ shared library. Use the @code{catch} command to set a catchpoint. Stop when @var{event} occurs. @var{event} can be any of the following: @table @code -@item throw -@itemx rethrow -@itemx catch +@item throw @r{[}@var{regexp}@r{]} +@itemx rethrow @r{[}@var{regexp}@r{]} +@itemx catch @r{[}@var{regexp}@r{]} @cindex stop on C@t{++} exceptions The throwing, re-throwing, or catching of a C@t{++} exception. +If @var{regexp} is given, then only exceptions whose type matches the +regular expression will be caught. + @vindex $_exception@r{, convenience variable} The convenience variable @code{$_exception} is available at an exception-related catchpoint, on some systems. This holds the @@ -4095,9 +4098,9 @@ systems using the @samp{gnu-v3} C@t{++} ABI (@pxref{ABI}) are supported. @item -The @code{$_exception} convenience variable relies on the presence of -some SDT probes in @code{libstdc++}. If these probes are not present, -then this variable cannot be used. +The regular expression feature and the @code{$_exception} convenience +variable rely on the presence of some SDT probes in @code{libstdc++}. +If these probes are not present, then these features cannot be used. @item The @code{$_exception} convenience variable is only valid at the |