From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107708 invoked by alias); 23 Aug 2018 16:37:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 107691 invoked by uid 89); 23 Aug 2018 16:37:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=reworked, H*M:7522 X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Aug 2018 16:37:28 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 522157A7E7; Thu, 23 Aug 2018 16:37:27 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8C7D10EE6D0; Thu, 23 Aug 2018 16:37:26 +0000 (UTC) Subject: Re: [PATCH v2] Indicate batch mode failures by exiting with nonzero status To: Gary Benson , gdb-patches@sourceware.org References: <1534934813-10188-1-git-send-email-gbenson@redhat.com> Cc: tom@tromey.com From: Pedro Alves Message-ID: Date: Thu, 23 Aug 2018 16:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1534934813-10188-1-git-send-email-gbenson@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-08/txt/msg00570.txt.bz2 On 08/22/2018 11:46 AM, Gary Benson wrote: > Hi all, > > This patch causes GDB in batch mode to exit with nonzero status > if the last command to be executed fails. > > Changes since version 1: > - I've reworked the patch to not use a global variable. > - Behaviour has not changed from version 1. > > Built and regtested on RHEL 7.5 x86_64. > > Ok to commit? LGTM. Thanks, Pedro Alves