This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: specifying gdb's exit code
- From: Daniel Gutson <daniel dot gutson at tallertechnologies dot com>
- To: gdb at sourceware dot org
- Date: Thu, 17 Apr 2014 16:08:42 -0300
- Subject: Re: specifying gdb's exit code
- Authentication-results: sourceware.org; auth=none
- References: <CAF5HaEVTZAxc0FNR9GnGNKJqxGSrbQaTfZ7ZRMoueTg6jQyL8A at mail dot gmail dot com>
Sorry. Please ignore this email.
I just noticed that "quit" already accepts an argument.
On Thu, Apr 17, 2014 at 3:43 PM, Daniel Gutson
<daniel.gutson@tallertechnologies.com> wrote:
> Hi,
>
> Due to a specific need, I was thinking of a way to specify (e.g.
> from a script) the gdb exit status,
> specially in terms of the $_exitcode.
>
> AFAIK, this is not currently possible since gdb returns only about the
> finalization execution status
> of the inf. I understand that these could be messed, specially when in
> --batch mode, but it should be
> responsibility of the developer to specify an exit code different to
> those gdb may return, and also
> responsibility of the invoking program to make such distinction.
>
> The options I can think about are:
> - set a convenience var, such as $_gdbexitcode
> - set gdb-exit-code [n]
> - add an optional argument to the 'quit' command (so "quit
> $_exitcode" is available)
>
> Ideas?
>
> Thanks!
>
> Daniel.
>
> --
>
> Daniel F. Gutson
> Chief Engineering Officer, SPD
>
>
> San Lorenzo 47, 3rd Floor, Office 5
>
> CÃrdoba, Argentina
>
>
> Phone: +54 351 4217888 / +54 351 4218211
>
> Skype: dgutson
--
Daniel F. Gutson
Chief Engineering Officer, SPD
San Lorenzo 47, 3rd Floor, Office 5
CÃrdoba, Argentina
Phone: +54 351 4217888 / +54 351 4218211
Skype: dgutson