From 1378893e46ccd84937aaa4adbb7016097ff3267c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 15 Aug 2012 01:59:40 +0000 Subject: 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 --- gdb/infrun.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 4f59a9261ea..666308605af 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, _("\ -- cgit v1.2.1