macOS GDB調試報錯

運行程序時報錯:

During startup program terminated with signal ?, Unknown signal.

解決方法:

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

set startup-with-shell off
相關文章
相關標籤/搜索