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/9830] Add a way to show what the last function call returned


------- 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.


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