在进入gdb后设置,执行下面语句

handle SIGSEGV nopass

handle SIGSEGV nostop

执行程序,触发问题,gdb侧执行c

故障出现时,执行bt,显示堆栈调用。

 

相关文章: