gdb on the Mac
Andreas Höschler
ahoesch at smartsoft.de
Sat Nov 17 05:31:02 PST 2007
Hi all,
when I use gdb on the Mac (10.2) I get stack traces like this
...
#14 0x930f9f5c in -[NSApplication sendAction:to:from:] ()
#15 0x9316f638 in -[NSMenu performActionForItemAtIndex:] ()
#16 0x931afd48 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:] ()
#17 0x932bae48 in -[NSMenu performKeyEquivalent:] ()
#18 0x930a8efc in -[NSApplication sendEvent:] ()
#19 0x930b2418 in -[NSApplication run] ()
#20 0x931605cc in NSApplicationMain ()
#21 0x00002ea4 in _start ()
#22 0x00002d24 in start ()
It gives me no line numbers!
gdb -v
GNU gdb 5.1-20020408 (Apple version gdb-228) (Sun Jul 14 10:07:24 GMT
2002)
Copyright 2002 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 "powerpc-apple-macos10".
On my Solaris box it gives me line numbers which helps a lot. Here I use
-bash-3.00$ gdb -v
GNU gdb 6.3.50.20051117
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 "sparc-sun-solaris2.10".
Can I convince the Apple gdb to generate line numbers as well?
Thanks a lot!
Regards,
Andreas
More information about the MacOSX-dev
mailing list