If I break in line 3:
1 int foo()
2 {
3 return func();
4 }
is there a way to examine the return value of func()?
Thanks.
If I break in line 3:
1 int foo()
2 {
3 return func();
4 }
is there a way to examine the return value of func()?
Thanks.
If you step into "func()", and then say "finish", gdb will return to foo and print the return value of func.
After line three the return value will be in EAX, so you can
print $eax
Hope this helps
I answered a simular question here, info frame is a platform independent way todo this.