如何使用gdb处理远程信号?

时间:2012-12-18 07:04:01

标签: gdb gdbserver

我想远程调试程序。但问题是我的程序正在使用信号。 在本地机器上,我使用以下命令处理信号: handle SIG64 nostop noprint 但是对于使用gdbserver进行远程调试,我不知道如何处理信号。 这就是我在做的事情:

remote$ gdbserver :2345 hello_world
Process hello_world created; pid = 2509
Listening on port 2345

local$ gdb -q hello_world
Reading symbols from /home/user/hello_world...done.
(gdb) target remote 192.168.0.11:2345
Remote debugging using 192.168.0.11:2345
0x002f3850 in ?? () from /lib/ld-linux.so.2
(gdb) continue

任何帮助都将受到高度赞赏。

谢谢& BR, Yuvi

1 个答案:

答案 0 :(得分:0)

handle SIG64 nostop noprint命令也可以远程工作。