This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Indicate batch mode failures by exiting with nonzero status
On 19 August 2018 at 16:35, Tom Tromey <tom@tromey.com> wrote:
> >>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
>
> >> Also, why just the last command? I mean, I guess I don't really know
> >> what I would expect, but maybe if any command failed, gdb should exit?
>
> Gary> That was my thinking, to have GDB exit 1 on the first error in batch
> Gary> mode, but people objected; see the followups to:
>
> Oh, ok, sorry for wading into an already open issue without the
> background.
>
Ah, no worries :)
> On reflection perhaps I'm overthinking it. It seems to me that it is
> fine for these command line options to be defined based on whatever
> seems convenient.
>
I'm probably overthinking this stuff too. I'll rework the patch without the
global and resubmit.
Cheers,
Gary