【问题标题】:Target child does not support this command error when running reverse-step运行反向步时目标子不支持此命令错误
【发布时间】: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/…

标签: debugging gdb


【解决方案1】:

在使用record 开始录制之前,您必须开始调试程序(使用run 命令)。试试

b main
run
record

【讨论】:

    猜你喜欢
    • 2012-12-01
    • 1970-01-01
    • 2013-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多