From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9753 invoked by alias); 13 Sep 2013 21:22:07 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 9721 invoked by uid 48); 13 Sep 2013 21:22:07 -0000 From: "sergiodj at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/15949] $_exitcode not reset on rerun Date: Fri, 13 Sep 2013 21:22:00 -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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sergiodj at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00340.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15949 --- Comment #1 from Sergio Durigan Junior --- Some brain dump here. It would be good if GDB could provide a way to recover the last exit code of the inferior. This way, we could safely reset $_exitcode without worrying about losing this information. My first idea was to create yet another new convenience variable, e.g. "$_last_exitcode", but that may confuse users... Another thing to (probably) consider is that $_exitcode is about to suffer some major changes in order to support multi-inferior. It will probably become a lazy convenience variable. Anyway, just something to consider. -- You are receiving this mail because: You are on the CC list for the bug.