GDB调试忽略信号

GDB调试忽略信号

在linux平台,用gdb调试程序时,可以在gdb attach到运行中程序后,用以下命令忽略一些不关注的信号:

handle SIGUSR2 noprint nostop

handle SIGPIPE noprint nostop