1. touch ~/.gdbinit 2. 在.gdbinit文件中添加“handle SIGSEGV nostop noprint pass” 转载于:https://www.cnblogs.com/qiumingcheng/p/8044913.html