[Xcode] GDB missing in OS X v10.9 (Mavericks)



Answers

You can install it on Mavericks with Homebrew.

brew install homebrew/dupes/gdb
Question

I went to use GDB in OS X v10.9 (Mavericks), and it's not there. Where has it gone?

# /usr/lib/gdb
-bash: /usr/bin/gdb: No such file or directory
# gdb
-bash: gdb: command not found

I also launched Xcode 5.0.1:

Preferences > Downloads

..and there's no longer command line tools available — ffs!




You could install www.macports.org and install GDB. However, you'll have to wait for the MacPorts installer for Mavericks, as at the time of writing this it is not yet released.







Install Mac OS X v10.8 (Mountain Lion) with Xcode 4.6 in a virtual machine and get fun )))

I use VMware Fusion, but you can try the free VirtualBox. You can get old versions of MacOS from AppStore and old version of Xcode from Apple Developer site.




Run this to install command line tools:

xcode-select --install



Thanks I'L'I. I used your ./configure options and worked like a charm. Next step is to tell OS X that we allow GDB to debug. This is done by creating a certificate through the keychain, export it and then sudo codesing -s gdb-cert /route/to/gdb, give credential and we are done.

See GDB wiki detailed instructions




Links