Or you can use cgdb (<a href="http://cgdb.sourceforge.net/" rel="nofollow">http://cgdb.sourceforge.net/</a>), which has syntax highlighting and Vim keybindings.
There's also gdb-mode for emacs, if you're so inclined: <a href="http://emacs-fu.blogspot.com/2009/02/fancy-debugging-with-gdb.html" rel="nofollow">http://emacs-fu.blogspot.com/2009/02/fancy-debugging-with-gd...</a>