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.
使用finish
命令。
如果你进入“func()”,然后说“完成”,gdb将返回foo并打印func的返回值。
After line three the return value will be in EAX, so you can
print $eax
Hope this helps
我在这里回答了一个类似的问题,信息框架是一种独立于平台的方式。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.