This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: specifying gdb's exit code
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Daniel Gutson <daniel dot gutson at tallertechnologies dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 23 Apr 2014 18:57:24 +0100
- Subject: Re: specifying gdb's exit code
- Authentication-results: sourceware.org; auth=none
- References: <CAF5HaEVTZAxc0FNR9GnGNKJqxGSrbQaTfZ7ZRMoueTg6jQyL8A at mail dot gmail dot com> <CAF5HaEWDv6Gb2m-iDpzcM4y_ybkT46R1b96xxdS9buLHbsgwRQ at mail dot gmail dot com> <CADPb22RS0J3X8hcBiUiDPp62RYiKPE4vCSPV5WEMUF01KzsiLg at mail dot gmail dot com> <CAF5HaEV3wMHXfk3jLmbY-E6XAaZSmBRhzDjo2BvhQ7NbvvCtZQ at mail dot gmail dot com> <CAF5HaEX1jfUdDkH3FrNviGYezWog5oyVF3WYM6mwmP=EtrvCjQ at mail dot gmail dot com> <87ppk89dir dot fsf at fleche dot redhat dot com> <5357F862 dot 306 at gmail dot com> <87lhuw9br6 dot fsf at fleche dot redhat dot com>
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