【发布时间】:2013-05-25 01:31:16
【问题描述】:
使用gdb调试不熟悉的程序时,程序执行next后经常会意外退出。发生这种情况时,我通常会设置一个断点,重新运行程序并执行step 而不是next 来跟踪正在发生的事情。但是,有时很难知道在哪里设置断点。有没有一种技术可以自动设置休息时间?比如:
define hook-next
break
end
define hookpost-next
# delete the previous break if the program is still running
end
【问题讨论】:
标签: gdb