specifying gdb's exit code
Pedro Alves
palves@redhat.com
Wed Apr 23 17:57:00 GMT 2014
On 04/23/2014 06:49 PM, Tom Tromey wrote:
> diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
> index bfcd975..0eff952 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."));
I think this should be "GDB" in caps. "apropos gdb" seems to
indicate that's how we spell it in the online help.
Otherwise looks fine to me.
Thanks,
--
Pedro Alves
More information about the Gdb-patches
mailing list