[Issue 2741] gdb: debug symbols on OSX
https://issues.dlang.org/show_bug.cgi?id=2741 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Version|1.050 |D1 --
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 d...@dawgfoto.de changed: What|Removed |Added Status|NEW |RESOLVED CC||d...@dawgfoto.de Resolution||FIXED --- Comment #6 from d...@dawgfoto.de 2012-01-31 13:36:33 PST --- https://github.com/D-Programming-Language/dmd/pull/631 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment #3 from Jacob Carlborg d...@me.com 2011-01-13 04:31:33 PST --- (In reply to comment #2) At the moment, I'm hoping that the only issue is that DMD current'y doesn't generate the uuid_command block, and that adding a uuid_command and duplicating the executable into the proper dSYM location will be enough to make debug info work. More experimentation to follow. Probably not due to: http://d.puremagic.com/issues/show_bug.cgi?id=4154 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 --- Comment #4 from Sean Kelly s...@invisibleduck.org 2011-01-13 08:18:14 PST --- I added the uuid_command and changed the section names yesterday and it still didn't work. Not sure yet what else is needed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 --- Comment #5 from Sean Kelly s...@invisibleduck.org 2011-01-13 08:20:39 PST --- Ah, I didn't notice the offset problem after changing the section names. That's next I suppose. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 Sean Kelly s...@invisibleduck.org changed: What|Removed |Added CC||s...@invisibleduck.org --- Comment #2 from Sean Kelly s...@invisibleduck.org 2011-01-12 15:03:44 PST --- I've been digging into this a bit, and the problem appears to be Mach-O related. From the ABI docs: When using the Stabs debugging format, the symbol table also holds debugging information. When using DWARF, debugging information is stored in the image’s corresponding dSYM file, specified by the uuid_command structure. The standard location for the debug symbol file is: appname.dSYM/Contents/Resources/DWARF/appname And I've verified that at least some apps (like Valgrind) won't even look for this file if a uuid_command structure isn't present in the executable, and they won't use it if the UUIDs don't match between the two files. I'm still sorting out how the debug info file is structured though. All I know so far is that it isn't simply a copy of the executable. Perhaps the file only contains the debug sections and no code? Using nm to compare the symbols in a D vs. a C app, the only notable difference is that the C app contains entries pointing to the executable path and the object file: - 00 SO /Users/sean/test/ 4d2e279c - 00 0001 OSO /var/folders/blah/-Tmp-//blah.o At the moment, I'm hoping that the only issue is that DMD current'y doesn't generate the uuid_command block, and that adding a uuid_command and duplicating the executable into the proper dSYM location will be enough to make debug info work. More experimentation to follow. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2741] gdb: debug symbols on OSX
http://d.puremagic.com/issues/show_bug.cgi?id=2741 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added CC||llu...@gmail.com Summary|debug symbols on OSX|gdb: debug symbols on OSX Severity|normal |regression -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---