陶醉萝莉

文章
1
资源
1
加入时间
3年2月3天

GDB调试时遇到sigwait阻塞的解决办法

gdb调试,遇到sigwait函数,就无法继续运行下去,如同中断一般,却又无法通过C-c停止调试。其实,只要给程序发送一个信号,让他接受到信号就可以了,比如:kill -2 [进程号] (-2是SIGINT信号)参考译文:gdb puts the debugged process in its own pgrp and sets the terminal to that p