[Issue 2741] debug symbols on OSX

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 18 09:10:17 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2741





------- Comment #1 from captnjameskirk at yahoo.com  2009-03-18 11:10 -------
A few more details if it'll help. It appears that no symbol table is loaded at
all on Leopard, whether using the gdb supplied with XCode 2.5 (gdb-696) or
XCode 3.1 (gdb-962). On Tiger (gdb-696 only), the situation is a little better,
but not much. Using the gdb command "info sources" on a simple Tango "hello"
program lists the following (comiled with "dmd -g") on Tiger, which lists no D
source files at all:
/System/Library/Frameworks/System.framework/PrivateHeaders/i386/cpu_capabilities.h,
/System/Library/Frameworks/System.framework/PrivateHeaders/machine/cpu_capabilities.h,
<command line>, <built-in>, /SourceCache/Libsystem/Libsystem-88.3.10//,
CommPageSymbols.st, {standard input}


Now, the same file compiled with GDC shows the following sources, with both
gdb-696 and gdb-962 on Leopard, and gdb-696 on Tiger (although the order is
different):
/System/Library/Frameworks/System.framework/PrivateHeaders/i386/cpu_capabilities.h,
/System/Library/Frameworks/System.framework/PrivateHeaders/machine/cpu_capabilities.h,
<command line>, <built-in>, /SourceCache/Libsystem/Libsystem-88.3.10//,
CommPageSymbols.st, {standard input}, ../shared/rt/typeinfo/ti_C.d, critical.c,
arraycast.d, ../shared/rt/util/string.d, ../shared/rt/util/hash.d,
../shared/rt/util/console.d, ../shared/rt/typeinfo/ti_wchar.d,
../shared/rt/typeinfo/ti_void.d, ../shared/rt/typeinfo/ti_ushort.d,
../shared/rt/typeinfo/ti_uint.d, ../shared/rt/typeinfo/ti_ubyte.d,
../shared/rt/typeinfo/ti_short.d, ../shared/rt/typeinfo/ti_int.d,
../shared/rt/typeinfo/ti_dchar.d, ../shared/rt/typeinfo/ti_char.d,
../shared/rt/typeinfo/ti_byte.d, ../shared/rt/typeinfo/ti_Ashort.d,
../shared/rt/typeinfo/ti_Aint.d, ../shared/rt/typeinfo/ti_Ag.d,
../shared/rt/typeinfo/ti_AC.d, monitor.c, memory_dyld.c, memory.d,
/Users/obijohn/projects/d/tango/std/c/stdarg.di, lifetime.d, genobj.d,
gcc/unwind.d, gcc/deh.d, dgccmain2.d, cmain.d, cast.d, aaA.d,
/Users/obijohn/projects/d/hello.d


-- 



More information about the Digitalmars-d-bugs mailing list