For what it's worth, I've just gone through the pain of getting gdb back up and running with Lazarus after updating xcode to 5, and OSX to Mountain Lion.
The instructions at
http://emacsclub.github.io/html/gdb_mountainlion.htmlwere very helpful, but sadly not fully functional (at least for me).
What I did:
installed homebrew with:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"and then
brew doctorThe next instruction on the above page failed, but I found the following worked:
brew install homebrew/dupes/gdbthen I simply needed to follow the codesign instructions at
https://sourceware.org/gdb/wiki/BuildingOnDarwin#Creating_a_certificateIn lazarus, Tools | Options | Debugger | General, you need to set the path correctly (/usr/local/bin/gdb in my case).
Now I can run a program under the debugger, but it doesn't seem to set any of the breakpoints, but that's another matter...
Hope this helps.