This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/15949] $_exitcode not reset on rerun


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]