macOS GDB调试报错

运行程序时报错:

During startup program terminated with signal ?, Unknown signal.

解决方法:

新建文件 ~/.gdbinit,添加内容以下:shell

set startup-with-shell off
相关文章
相关标签/搜索