diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-08-15 01:59:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-08-15 01:59:42 +0000 |
commit | 486c773953923a1317452b6a29ff48ba1c56519d (patch) | |
tree | b2863544320b189ab6e64777ed3e0aa39fab26d5 /gdb/infrun.c | |
parent | f4c34ced22dcb01cfb94f77cebeda17b93f0c21c (diff) | |
download | gdb-486c773953923a1317452b6a29ff48ba1c56519d.zip gdb-486c773953923a1317452b6a29ff48ba1c56519d.tar.gz gdb-486c773953923a1317452b6a29ff48ba1c56519d.tar.bz2 |
gdb: improve usage strings
This adds Usage strings to a bunch of commands, tweaks the grammar in a
few, and improves the help text for the handle command.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 4f59a92..6663086 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -7099,12 +7099,17 @@ Specify a signal as argument to print info on that signal only.")); c = add_com ("handle", class_run, handle_command, _("\ Specify how to handle a signal.\n\ +Usage: handle SIGNAL [ACTIONS]\n\ Args are signals and actions to apply to those signals.\n\ +If no actions are specified, the current settings for the specified signal\n\ +will be displayed instead.\n\ +\n\ Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\ from 1-15 are allowed for compatibility with old versions of GDB.\n\ Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\ The special arg \"all\" is recognized to mean all signals except those\n\ used by the debugger, typically SIGTRAP and SIGINT.\n\ +\n\ Recognized actions include \"stop\", \"nostop\", \"print\", \"noprint\",\n\ \"pass\", \"nopass\", \"ignore\", or \"noignore\".\n\ Stop means reenter debugger if this signal happens (implies print).\n\ @@ -7113,6 +7118,7 @@ Pass means let program see this signal; otherwise program doesn't know.\n\ Ignore is a synonym for nopass and noignore is a synonym for pass.\n\ Pass and Stop may be combined.")); set_cmd_completer (c, handle_completer); + if (xdb_commands) { add_com ("lz", class_info, signals_info, _("\ |