1、对gdb进行签名,签名过程详见:http://jingyan.baidu.com/article/d169e1864dc24d436611d839.html;

2、重新启动系统,同时按住键盘上的command  + r 键进入系统恢复模式

3、点击上方菜单栏,实用工具-》终端,输入命令csrutil enable --without debug;

(关于csrutil命令的详细介绍参考http://bbs.feng.com/read-htm-tid-9931290.html)

4、重启系统

 

附最新解决方案:

1、执行:brew update gdb

2、执行:vim ~/.gdbinit,输入:set startup-with-shell off,然后保存退出

3、注意在eclipse的使用如下:

关于macOS Sierra无法使用gdb进行调试的解决方案

 

相关文章:

  • 2021-08-24
  • 2021-12-05
  • 2022-01-08
  • 2021-07-12
  • 2021-04-27
  • 2021-07-08
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-03-01
  • 2021-12-22
  • 2021-05-30
  • 2022-12-23
  • 2021-06-19
相关资源
相似解决方案