平时在服务器开发,习惯了 GCC 跟 GDB,偶尔需要在本地编译点东西,这坑爹的 mac,自从 10.13 开始就让我一直折腾,GDB 从来没好用过!
我是通过 brew install gdb 安装的 gdb8.2,已经按照安装说明 https://sourceware.org/gdb/wiki/PermissionsDarwin 做好了代码签名,所有验证都可以通过,可是用 gdb 调试的时候,一按 run,整个进程就会卡住,快要疯了!
有哪位大佬在 Mojave 上成功用 gdb8.2 调试过吗?
2019-01-05 11:01:11.574946+0800 0x28ce Activity 0x5ce5 1468 0 taskgated: (Security) SecTrustEvaluateIfNecessary
2019-01-05 11:01:11.584392+0800 0x28ce Activity 0x5ce6 1468 0 taskgated: (Security) SecTrustEvaluateIfNecessary
2019-01-05 03:01:11.615804+0000 0x2908 Default 0x0 0 0 kernel: (AppleMobileFileIntegrity) macOSTaskPolicy: (gdb) (pid: 1465) not (yet) allowed to go invalid
2019-01-05 11:01:11.617553+0800 0x28d0 Default 0x0 1468 0 taskgated: (Security) [com.apple.securityd:security_exception] MacOS error: -67062
2019-01-05 11:03:30.347482+0800 0x28ce Activity 0x5ce7 1468 0 taskgated: (Security) SecTrustEvaluateIfNecessary
2019-01-05 11:03:30.353959+0800 0x28ce Activity 0x5ce8 1468 0 taskgated: (Security) SecTrustEvaluateIfNecessary
2019-01-05 03:03:30.386099+0000 0x2eba Default 0x0 0 0 kernel: (AppleMobileFileIntegrity) macOSTaskPolicy: (gdb) (pid: 1741) not (yet) allowed to go invalid
