gdb调试显示出程序退出位置

在进入gdb后设置,执行下面语句
handle SIGSEGV nopass
handle SIGSEGV nostop

执行程序,
触发问题,gdb侧执行c
故障出现时,执行bt,显示堆栈调用。

猜你喜欢

转载自blog.csdn.net/u010835747/article/details/121451859