From: Tom Tromey Date: Fri, 25 Apr 2014 15:43:47 +0000 (-0600) Subject: document "quit" command's argument X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdb52a22a7672fa716997bce67ac9c1fcbd7c338;p=binutils-gdb.git document "quit" command's argument 2014-04-25 Tom Tromey * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 742cff9fa5e..94555f954a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-04-25 Tom Tromey + + * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's + argument. + 2014-04-24 Sanimir Agovic * NEWS: Mention support for C99 variable length arrays. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index bfcd975dfc8..a5ef9c6d5eb 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1685,7 +1685,11 @@ strict == evaluate script according to filename extension, error if not supporte show_script_ext_mode, &setlist, &showlist); - add_com ("quit", class_support, quit_command, _("Exit gdb.")); + add_com ("quit", class_support, quit_command, _("\ +Exit gdb.\n\ +Usage: quit [EXPR]\n\ +The optional expression EXPR, if present, is evaluated and the result\n\ +used as GDB's exit code. The default is zero.")); c = add_com ("help", class_support, help_command, _("Print list of commands.")); set_cmd_completer (c, command_completer);