gdb 回退调试

####早在7.0的时候就已经支持回退调试,but今天想要回退调试我的代码的时候发现发现了这个问题

Target child does not support this command

于是在找到了下面这番话,本想点个赞,但reputation不够委屈

转自 https://stackoverflow.com/questions/1206872/how-to-go-to-the-previous-line-in-gdb#

Yes! With the new version 7.0 gdb, you can do exactly that!

The command would be "reverse-step", or "reverse-next".

You can get gdb-7.0 from ftp.gnu.org:/pub/gnu/gdb

If you run into the error: Target child does not support this command. then try adding target record at the beginning of execution, after starting run.

Edit: Since GDB 7.6 target record is deprecated, use target record-full instead. 



成功回退

展开阅读全文

没有更多推荐了,返回首页