Skip navigation.
 
mlRe: gdb on the Mac
FROM : Guenther Fuerthaller
DATE : Mon Nov 19 14:27:39 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 <<email_removed>>
Sent by: <email_removed>
17.11.2007 14:35

To
<email_removed>
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
<email_removed>
http://www.omnigroup.com/mailman/listinfo/macosx-dev

Related mailsAuthorDate
mlgdb on the Mac Andreas Höschler Nov 17, 14:31
mlRe: gdb on the Mac Shawn Erickson Nov 17, 16:57
mlRe: gdb on the Mac Guenther Fuerthall… Nov 19, 14:27