gdb on the Mac

Guenther Fuerthaller Guenther.Fuerthaller at onevision.com
Mon Nov 19 05:27:39 PST 2007


you should try:
info threads

and from the resulting thread list you might see the first known 
function/method from your code.
pick the number and try:
thread <picked thread num>

then:
where

does that help?





Andreas Höschler <ahoesch at smartsoft.de> 
Sent by: macosx-dev-bounces at omnigroup.com
17.11.2007 14:35

To
macosx-dev at omnigroup.com
cc

Subject
gdb on the Mac






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

_______________________________________________
MacOSX-dev mailing list
MacOSX-dev at omnigroup.com
http://www.omnigroup.com/mailman/listinfo/macosx-dev




More information about the MacOSX-dev mailing list