From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10641 invoked by alias); 17 Aug 2018 13:24:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 10496 invoked by uid 89); 17 Aug 2018 13:24:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_NUMSUBJECT,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1113, responding X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Aug 2018 13:24:24 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqejf-0005sP-Cf for gdb@sourceware.org; Fri, 17 Aug 2018 09:24:16 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqejY-0005Jh-2v; Fri, 17 Aug 2018 09:24:08 -0400 Received: from c-67-189-150-201.hsd1.ma.comcast.net ([67.189.150.201]:60398 helo=pdslaptop) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fqejX-0005YV-VV; Fri, 17 Aug 2018 09:24:08 -0400 Message-ID: Subject: Re: gdb -batch always exits with status 0 From: Paul Smith Reply-To: psmith@gnu.org To: Gary Benson Cc: Ruslan Kabatsayev , gdb@sourceware.org Date: Fri, 17 Aug 2018 13:24:00 -0000 In-Reply-To: <20180817110354.GB32726@blade.nx> References: <20180705144659.GA29169@blade.nx> <2c7ad73e90cc7417bd23b4529261d8c737668571.camel@gnu.org> <20180817110354.GB32726@blade.nx> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00035.txt.bz2 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!