我希望每次程序停止时自动执行一些命令,就像 display 对 x 所做的那样。我怎么做?
这是我发现的简单方法:
define hook-stop
...commands to be executed when execution stops
end
详情请参考此页面:http://sourceware.org/gdb/current/onlinedocs/gdb/Hooks.html#Hooks http://sourceware.org/gdb/current/onlinedocs/gdb/Hooks.html#Hooks
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)