I\'m under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with new features such as --with-python etc... )
Long story short when I
None of this worked for me and I had to go with a long run. Here is a full list of steps I've done to get it working.
Unfortunately, system certificate gave me Unknown Error = -2,147,414,007 which is very helpful, so I had to go with a workaround.
KeyChain Assistant -> Create certificate ->
Pick login, gdb-cert, Code Signing
Copy/move certificate to the System keychain (enter password)
gdb-cert) click Get info -> Trust Alwaysstartup-with-shellEnter in console: set startup-with-shell off
Remember configuration:
echo "set startup-with-shell off" >> ~/. gdbinit
Go to System Preferences -> Users & Groups -> Unlock it -> Login Options -> Network Account Server -> Join -> Unlock it -> Edit (menu) -> Enable Root User
sudo killall taskgatedcodesign -fs gdb-cert "$(which gdb)"
PS. I end up using lldb because it just works (tutorial)