Osx:gdb:修订间差异
imported>Soleverlee 以“=Install= <source lang="bash"> brew install gdb #/usr/local/bin/gdb </source> =Create cert= Open /Applications/Utilities/Keychain Access.app, create certificate: *na...”为内容创建页面 |
imported>Soleverlee |
||
第2行: | 第2行: | ||
<source lang="bash"> | <source lang="bash"> | ||
brew install gdb | brew install gdb | ||
echo "set startup-with-shell off" > ~/.gdbinit | |||
#/usr/local/bin/gdb | #/usr/local/bin/gdb | ||
</source> | </source> | ||
=Create cert= | =Create cert= | ||
Open /Applications/Utilities/Keychain Access.app, create certificate: | Open /Applications/Utilities/Keychain Access.app, create certificate: |
2017年4月2日 (日) 09:43的最新版本
Install
brew install gdb
echo "set startup-with-shell off" > ~/.gdbinit
#/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