From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B57103858D20; Sun, 31 Dec 2023 12:23:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B57103858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704025439; bh=+6us1W0k2bgShqc9i4YZD/9xZHXSIIGACYNYJ12Myeg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kj+7gnt+EUZPEOldJAqmXvWqxv/Oy7y6/18e3VqXxROT8SjdLrNbjVUPBH5Taao9E YCc6oa0hDDOvSvTODLfcfo12SVkG94y3AvmhjSf1tXxDQhQjMsIPg5lqhHZMNraTen ESzhmrpmepdUZa9J7a5rJQ38PrEmza82BiWnKa8o= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/13000] Return value with -batch is always 0 Date: Sun, 31 Dec 2023 12:23:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status target_milestone cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D13000 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |8.3 CC| |ssbssa at sourceware dot o= rg --- Comment #7 from Hannes Domani --- (In reply to Sourceware Commits from comment #6) > The master branch has been updated by Gary Benson : >=20 > https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git; > h=3Db0f492b90f3d13da8ac80437e6ecb9a87db4a75b >=20 > commit b0f492b90f3d13da8ac80437e6ecb9a87db4a75b > Author: Gary Benson > Date: Wed Aug 29 16:11:50 2018 +0100 >=20 > Indicate batch mode failures by exiting with nonzero status >=20=20=20=20=20 > This commit causes GDB in batch mode to exit with nonzero status > if the last command to be executed fails. >=20=20=20=20=20 > gdb/ChangeLog: >=20=20=20=20=20 > PR gdb/13000: > * gdb/main.c (captured_main_1): Exit with nonzero status > in batch mode if the last command to be executed failed. > * NEWS: Mention the above. >=20=20=20=20=20 > gdb/testsuite/ChangeLog: >=20=20=20=20=20 > PR gdb/13000: > * gdb.base/batch-exit-status.exp: New file. > * gdb.base/batch-exit-status.good-commands: Likewise. > * gdb.base/batch-exit-status.bad-commands: Likewise. Was fixed with this commit. --=20 You are receiving this mail because: You are on the CC list for the bug.=