【发布时间】:2013-07-10 02:40:45
【问题描述】:
我正在玩 gdb 反向调试。所以我有一个带有 main() 和 foo() 的简单 C 程序,它在 main() 中调用。
在 gdb 中,我做了以下操作
b main
record
run
然后我进入foo() :
s
然后我试着回去
reverse-step
那是我在标题中收到错误消息的时候。
我的 gdb 版本是:GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
我做错了什么?
【问题讨论】:
-
另外请注意,如果您在
run之前运行record,GDB 现在会报错:Process record: the program is not being run.。 -
顺便说一句,现在只使用 Mozilla rr:stackoverflow.com/questions/1206872/…