MacOS X Mojave GDB 安装 & Codesign 步骤记录

本文详细记录了在MacOS X Mojave上安装GDB 8.0.1并进行Codesign的步骤,包括关闭系统完整性保护、创建证书、安装GDB以及对GDB进行权限设置和签名。遵循这些步骤,可以解决Mojave上GDB的安装和使用问题。
摘要由CSDN通过智能技术生成

Prerequisites

  1. MacOS X Mojave (10.14.x).
  2. Met problems considering Codesign and During startup program terminated with signal … / unknown load command 0x32, etc.
  3. Do NOT install gdb in advance. If you already have it (with brew for example), make a clean uninstallation (e.g. brew uninstall --force gdb).

Steps

如下是在 Mojave 上 GDB Debugger 安装使用踩坑后,最终成功的步骤总结。

Please strictly follow these steps. This procedure is what finally works or me. Major reference is Permission Darwin | GDB Wiki 1 and 49001329 | Stackoverflow 2.

Turn off System Intergrity (Debugging Component)

  1. Shut down your Mac. Turn it on again, hold cmd + R when booting up, until  logo shows up. You should now be booting into Recovery Mode.
  2. Select a language and enter the Recovery Mode UI. In the Menu, select “Utilities” → \rightarrow “Terminal” to open a terminal.
  3. Run the command csrutil enable --without debug. It won’t turn off system integrity protection entirely, only the Debugging Restriction component is turned off. This should be enough.
  4. Reboot normally.
  • Check csrutil status in your terminal to see if the Debugging
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值