安装完后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

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-07-07
  • 2021-09-10
  • 2021-06-20
  • 2021-06-14
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2022-01-11
  • 2021-09-04
  • 2021-07-30
  • 2021-07-02
  • 2021-07-21
相关资源
相似解决方案