Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 gdb 中设置断点以在 exit(0) 信号之前停止。我试过了:
stop sigquit
尽管程序仍然没有停止就退出。如何为此设置断点?
您是否尝试在exitor上设置断点_exit?
exit
_exit
如果这不起作用,请查看设置 gdb 退出断点不起作用?