Skip to content

Instantly share code, notes, and snippets.

@hongry18
Created June 18, 2019 06:28
Show Gist options
  • Save hongry18/e334aba6c599d740754aa58b35a68f47 to your computer and use it in GitHub Desktop.
Save hongry18/e334aba6c599d740754aa58b35a68f47 to your computer and use it in GitHub Desktop.
gdb install guid with brew

brew install gdb

generate keychain gdb-cert

vi gdb-gdb-entitlement.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.cs.debugger</key>
    <true/>
</dict>
</plist>
</pre>

codesign --entitlements gdb-entitlement.xml -fs gdb-cert /usr/local/bin/gdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment