diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-10-01 16:44:47 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-10-01 16:44:47 +0000 |
commit | 87f67dbac2c40477b490e0eb1c5fa6f275d60bba (patch) | |
tree | 820865c81059fbc468a1770c8c123b1e0e3b58fa /gdb | |
parent | b887350fc5f89f8951fbb78fdcab520a37fa37ce (diff) | |
download | gdb-87f67dbac2c40477b490e0eb1c5fa6f275d60bba.zip gdb-87f67dbac2c40477b490e0eb1c5fa6f275d60bba.tar.gz gdb-87f67dbac2c40477b490e0eb1c5fa6f275d60bba.tar.bz2 |
* gdb.texinfo (catch) [exception]: Document how to insert
a breakpoint on user-defined exceptions when the exception
name is identical to one of the language-defined ones.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6d1c713..4b757e0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2008-10-01 Joel Brobecker <brobecker@adacore.com> + + * gdb.texinfo (catch) [exception]: Document how to insert + a breakpoint on user-defined exceptions when the exception + name is identical to one of the language-defined ones. + 2008-09-27 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Macros): Remove text about stringification, diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9db0ff8..dddc88b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -3614,6 +3614,15 @@ at the end of the command (eg @code{catch exception Program_Error}), the debugger will stop only when this specific exception is raised. Otherwise, the debugger stops execution when any Ada exception is raised. +When inserting an exception catchpoint on a user-defined exception whose +name is identical to one of the exceptions defined by the language, the +fully qualified name must be used as the exception name. Otherwise, +@value{GDBN} will assume that it should stop on the pre-defined exception +rather than the user-defined one. For instance, assuming an exception +called @code{Constraint_Error} is defined in package @code{Pck}, then +the command to use to catch such exceptions is @kbd{catch exception +Pck.Constraint_Error}. + @item exception unhandled An exception that was raised but is not handled by the program. |