This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15949] $_exitcode not reset on rerun
- From: "sergiodj at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 13 Sep 2013 21:22:06 +0000
- Subject: [Bug gdb/15949] $_exitcode not reset on rerun
- Auto-submitted: auto-generated
- References: <bug-15949-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15949
--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
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.