This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/9830] Add a way to show what the last function call returned
- From: "drow at sources dot redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 9 Feb 2009 16:42:32 -0000
- Subject: [Bug gdb/9830] Add a way to show what the last function call returned
- References: <20090209163317.9830.spamfaenger@gmx.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drow at sources dot redhat dot com 2009-02-09 16:42 -------
To clarify, it will only work on the instruction immediately after a return. If
you use 'finish', it would work - but so does "print $". If you use 'return' it
would work, but there you provided the return value. If you 'stepi' out of the
function, then you'll be in the right place; if you 'step' out of the function
then the calling statement will finish, after which the return value might be
anywhere.
Also, GDB has no way to figure out what function returned, so it won't know the
type of the return value.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9830
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.