From bdb52a22a7672fa716997bce67ac9c1fcbd7c338 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 25 Apr 2014 09:43:47 -0600 Subject: [PATCH] document "quit" command's argument 2014-04-25 Tom Tromey * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's argument. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-cmds.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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); -- 2.30.2