This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb -batch always exits with status 0
- From: Paul Smith <psmith at gnu dot org>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>, gdb at sourceware dot org
- Date: Fri, 17 Aug 2018 09:23:29 -0400
- Subject: Re: gdb -batch always exits with status 0
- References: <20180705144659.GA29169@blade.nx> <2c7ad73e90cc7417bd23b4529261d8c737668571.camel@gnu.org> <20180817110354.GB32726@blade.nx>
- Reply-to: psmith at gnu dot org
On Fri, 2018-08-17 at 12:03 +0100, Gary Benson wrote:
> Paul, Ruslan, would it be acceptable to you if I:
>
> 1) changed the default behaviour to exit 1 on the first error
> 2) added an option (e.g. -ignore-errors) to revert to the current
> behaviour.
[I'm on vacation until next week so may not be responding immediately]
Well it would not be ideal as I'd need to go through all my scripts
etc. and modify them to add an extra argument.
I guess I'm not really sure why we want to change the default behavior
here. Do we have people requesting this change? I haven't seen a
groundswell of people saying they were confused becuase they expected a
different behavior, and the current behavior has good and useful
reasons for existing (i.e., not just an oversight).
Wouldn't the most sensible/least impactful way forward be to leave the
current behavior as-is, and then if people want a different behavior
add a new option they can use to request it?
However, I'm not doing the work so if that's the way GDB devs want to
have it work I will change my usage.
Cheers!