Originally by rgov:
https://github.com/rgov/macgdb
Forked and updated by argp:
https://github.com/argp/macgdb
Feel free to fork and submit pull requests.
Tested on:
- 10.8.4
- 10.8.3
- 10.7.5
export CFLAGS="-Wno-format"
./configure --enable-64-bit-bfd --disable-werror --prefix=$(pwd)/dist
make
make install
See Chapter 2, "Obtaining a Signing Identity" of the Code Signing Guide:
http://developer.apple.com/mac/library/documentation/Security/Conceptual/CodeSigningGuide/index.html
Add your certificate to the System keychain. Modify the trust settings as follows to "Never Trust" for all uses except for code signing, which should be "Always Trust."
codesign -s "Certificate Common Name" dist/bin/*
make distclean
find . -iname config.cache -print -delete