Unable to use gdb on Mavericks
Answering my own question. I had to follow the steps enlisted here to get past this error.


Creating a Code-Sign System Certificate from Keychain Access.
Marking that Certificate to Trust Always. This is important.
Finally code signing the gdb executable codesign -s gdb-cert /path/to/gdb


With this, I was able to use gdb on mavericks.