Filled with a desire to use more recent versions of tools, I've been using emacs 23.4 / gdb 6.3 successfully for a while now, but brew recently updated to emacs 24.1. The gdb mode under this new version spits out the following garbage output (spacing intact):
Current directory is ~/
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
Where is this new output coming from? It looks like it might be debugging output from gdb-mode, but that's a guess.
I also tried solving the problem by running a more recent version of gdb (again, through Homebrew), but I've yet to figure out how emacs selects which gdb executable for "M-x gdb" to run.