diff options
author | Tom Tromey <tromey@adacore.com> | 2019-05-10 06:59:19 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-05-10 08:34:01 -0600 |
commit | b8e07335d04f8c8e611a65905598915f68b0b707 (patch) | |
tree | 31aa5099993a2ca62e020e8256ca67b88d58d128 | |
parent | 391bf8918b16f9f3ad1060d5cb0fc0c4048421bb (diff) | |
download | gdb-b8e07335d04f8c8e611a65905598915f68b0b707.zip gdb-b8e07335d04f8c8e611a65905598915f68b0b707.tar.gz gdb-b8e07335d04f8c8e611a65905598915f68b0b707.tar.bz2 |
Minor "catch" documentation improvements
This patch makes a few minor improvements to the catchpoint
documentation:
* "catch exception" and "catch handlers" now mention the argument in
the @item.
* "catch exception unhandled" is moved to be closer to "catch
exception", rather than after "catch handlers".
* "catch load" and "catch unload" now wrap the argument in @var.
gdb/doc/ChangeLog
2019-05-10 Tom Tromey <tromey@adacore.com>
* gdb.texinfo (Set Catchpoints): Add text for parameter to "catch
exception" and "catch handlers". Move "catch exception unhandled"
text. Use @var for "catch load" and "catch unload"
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 14c4462..d05b5a3 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2019-05-10 Tom Tromey <tromey@adacore.com> + + * gdb.texinfo (Set Catchpoints): Add text for parameter to "catch + exception" and "catch handlers". Move "catch exception unhandled" + text. Use @var for "catch load" and "catch unload" + 2019-05-08 Tom Tromey <tromey@adacore.com> * gdb.texinfo (Symbols): Document change to ptype/o. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b7f3b27..1fb4e3d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4509,7 +4509,7 @@ You cannot raise an exception interactively. You cannot install an exception handler interactively. @end itemize -@item exception +@item exception @r{[}@var{name}@r{]} @kindex catch exception @cindex Ada exception catching @cindex catch Ada exceptions @@ -4527,7 +4527,11 @@ 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 handlers +@item exception unhandled +@kindex catch exception unhandled +An exception that was raised but is not handled by the program. + +@item handlers @r{[}@var{name}@r{]} @kindex catch handlers @cindex Ada exception handlers catching @cindex catch Ada exceptions when handled @@ -4547,10 +4551,6 @@ user-defined one. For instance, assuming an exception called command to use to catch such exceptions handling is @kbd{catch handlers Pck.Constraint_Error}. -@item exception unhandled -@kindex catch exception unhandled -An exception that was raised but is not handled by the program. - @item assert @kindex catch assert A failed Ada assertion. @@ -4727,8 +4727,8 @@ A call to @code{fork}. @kindex catch vfork A call to @code{vfork}. -@item load @r{[}regexp@r{]} -@itemx unload @r{[}regexp@r{]} +@item load @r{[}@var{regexp}@r{]} +@itemx unload @r{[}@var{regexp}@r{]} @kindex catch load @kindex catch unload The loading or unloading of a shared library. If @var{regexp} is |