如何在遇到断点时才与gdbserver连接?

时间:2014-03-27 21:09:51

标签: c++ c gdb gdbserver

使用gdb,我会写一个包含以下内容的.gdbinit文件:

break file1.c:32
catch syscall write
# more setup commands
run

这会使gdb运行程序并停在那些断点处。

如何使用gdbserver执行相同的操作?例如:仅在断点被击中时停止接受连接?

0 个答案:

没有答案
相关问题