Could not determine GDB version using command: sudo /usr/local/bin/gdb --version
Install with MacPorts


Install Xcode and MacPorts, if not already installed.
Now install the Apple GCC and GDB from MacPorts:

$ sudo port install gdb-apple
$ sudo port install apple-gcc42


Install with Homebrew


Install Xcode and Homebrew, if not already installed.
Now install GDB from Homebrew:

$ brew tap homebrew/dupes
$ brew install gdb


Source: http://ntraft.com/installing-gdb-on-os-x-mavericks/