public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/15949] New: $_exitcode not reset on rerun
@ 2013-09-13  0:01 dje at google dot com
  2013-09-13  0:02 ` [Bug gdb/15949] " dje at google dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dje at google dot com @ 2013-09-13  0:01 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15949

            Bug ID: 15949
           Summary: $_exitcode not reset on rerun
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

If I run a program to main and print $_exitcode I get "void", which is
expected.
But if I then continue the program to completion and rerun to main, $_exitcode
has the last exit code.  Seems like it should get reset to void on each rerun.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/15949] $_exitcode not reset on rerun
  2013-09-13  0:01 [Bug gdb/15949] New: $_exitcode not reset on rerun dje at google dot com
@ 2013-09-13  0:02 ` dje at google dot com
  2013-09-13 21:22 ` sergiodj at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: dje at google dot com @ 2013-09-13  0:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15949

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/15949] $_exitcode not reset on rerun
  2013-09-13  0:01 [Bug gdb/15949] New: $_exitcode not reset on rerun dje at google dot com
  2013-09-13  0:02 ` [Bug gdb/15949] " dje at google dot com
@ 2013-09-13 21:22 ` sergiodj at redhat dot com
  2013-09-13 21:25 ` sergiodj at redhat dot com
  2013-09-16 16:26 ` dje at google dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sergiodj at redhat dot com @ 2013-09-13 21:22 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/15949] $_exitcode not reset on rerun
  2013-09-13  0:01 [Bug gdb/15949] New: $_exitcode not reset on rerun dje at google dot com
  2013-09-13  0:02 ` [Bug gdb/15949] " dje at google dot com
  2013-09-13 21:22 ` sergiodj at redhat dot com
@ 2013-09-13 21:25 ` sergiodj at redhat dot com
  2013-09-16 16:26 ` dje at google dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sergiodj at redhat dot com @ 2013-09-13 21:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15949

--- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Correction: when I said about "a way to recover the last exit code of the
inferior", I meant "the last exit code issued by the inferior after we started
it again".  Something like what $_exitcode is already doing, but will stop to
do after we fix this bug :-P.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/15949] $_exitcode not reset on rerun
  2013-09-13  0:01 [Bug gdb/15949] New: $_exitcode not reset on rerun dje at google dot com
                   ` (2 preceding siblings ...)
  2013-09-13 21:25 ` sergiodj at redhat dot com
@ 2013-09-16 16:26 ` dje at google dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dje at google dot com @ 2013-09-16 16:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15949

--- Comment #3 from dje at google dot com ---
re: multi-inferior: I think $_exitcode would just track the current inferior.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-16 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-13  0:01 [Bug gdb/15949] New: $_exitcode not reset on rerun dje at google dot com
2013-09-13  0:02 ` [Bug gdb/15949] " dje at google dot com
2013-09-13 21:22 ` sergiodj at redhat dot com
2013-09-13 21:25 ` sergiodj at redhat dot com
2013-09-16 16:26 ` dje at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).