Osx:gdb

来自WHY42
imported>Soleverlee2017年4月2日 (日) 09:36的版本 (以“=Install= <source lang="bash"> brew install gdb #/usr/local/bin/gdb </source> =Create cert= Open /Applications/Utilities/Keychain Access.app, create certificate: *na...”为内容创建页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Install

brew install gdb
#/usr/local/bin/gdb

Create cert

Open /Applications/Utilities/Keychain Access.app, create certificate:

  • name: gdb-cert
  • Identity Type to Self Signed Root
  • Certificate Type to Code Signing
  • select the Let me override defaults

then click and continue, util you choose where the certificate will be stored, choose:

  • System

and create create.

Trust and sign

in Keychain Access ,right click the gdb-cert and choose "Get info"

  • Code signing: always trust

then quit keychain access, open a terminal:

codesign -s gdb-cert /usr/local/bin/gdb