gdb 初次运行卡住 Starting program: [New Thread 0x1103 of process 843]

安装完后gdb一般会有提示:

==> gdb
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:

  https://sourceware.org/gdb/wiki/BuildingOnDarwin

On 10.12 (Sierra) or later with SIP, you need to run this:

  echo "set startup-with-shell off" >> ~/.gdbinit

安装完gdb后应该代码签名。

然后在 10.12 (Sierra) or later with SIP(系统集成保护),需要:

:echo "set startup-with-shell off" >> ~/.gdbinit
发布了205 篇原创文章 · 获赞 14 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/LU_ZHAO/article/details/104810246