[Issue 4154] Incorrect DWARF section names on Mac
https://issues.dlang.org/show_bug.cgi?id=4154 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #15 from Walter Bright bugzi...@digitalmars.com 2012-01-18 20:50:34 PST --- Is this still an issue or not? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 d...@dawgfoto.de changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #16 from d...@dawgfoto.de 2012-01-18 21:39:00 PST --- Nope, the underscore fix is already in the compiler. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 d...@dawgfoto.de changed: What|Removed |Added CC||d...@dawgfoto.de --- Comment #14 from d...@dawgfoto.de 2012-01-09 03:01:15 PST --- You don't need to run dsymutil. The final executables do usually not contain debug infos, but they do contain the path of all object files that were linked. Debuggers will use these to get the debug infos from the object files. Also GDB will load debug infos from the executable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #12 from Jacob Carlborg d...@me.com 2011-06-06 03:47:12 PDT --- So DMD should invoke dsymutil? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #13 from Robert Clipsham rob...@octarineparrot.com 2011-06-06 17:50:58 BST --- I believe so, there's not a lot of point right now though, given that the binaries produced by dmd cause dsymutil to fail. Struggling to find out what needs changing to stop dsymutil failing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #10 from Robert Clipsham rob...@octarineparrot.com 2011-06-05 20:11:49 BST --- (In reply to comment #9) I don't understand - why should dsymutil be needed at all? It isn't needed for gcc. Au contraire - put the following in test.c: int main() { return 0; } then: $ gcc -v -g test.c -o test or $ clang -v -g test.c -o test You'll notice the last command run by either is dsymutil test. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #11 from Robert Clipsham rob...@octarineparrot.com 2011-06-05 21:50:05 BST --- I may have found what dsymutil is choking on, I can't be sure though - following the steps taken by gcc, then removing the object file it creates before running dsymutil causes dsymutil to complain that object file does not exist. Curious, I inspected the binary with a hex editor, and it appears ld left some information in there that dsymutil requires, a list of object files. It seems ld doesn't do this for dmd, so I suspect there's something else we're not outputting that's required, or some flag we need to pass to ld. I blame ld, as there is no mention of the object file(s) in themselves before linking. I'll hunt a bit further, I'm not sure how much I can do without more knowledge of what's going on. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #9 from Walter Bright bugzi...@digitalmars.com 2011-06-04 10:37:40 PDT --- (In reply to comment #8) https://github.com/D-Programming-Language/dmd/pull/83 - Everything works as it should, the file just needs running through dsymutil. I don't understand - why should dsymutil be needed at all? It isn't needed for gcc. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 Robert Clipsham rob...@octarineparrot.com changed: What|Removed |Added CC||rob...@octarineparrot.com --- Comment #5 from Robert Clipsham rob...@octarineparrot.com 2011-06-03 23:25:12 BST --- I have a modified version of this patch that almost works (one byte needs changing with a hex editor for debug info to work). I should have a patch/pull request together later tonight. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #6 from Robert Clipsham rob...@octarineparrot.com 2011-06-04 00:56:44 BST --- I've run out of time to work on this for now, my initial commit is at https://github.com/mrmonday/dmd/commit/c7fed0fbe5319de507fd0afb4c574bdb4e54699f . The debug info can easily be fixed up in a hex editor, I'm struggling to find where dmd is outputting the incorrect info though. In the __debug_info section the abbrev_offset field is being set to the incorrect value. The workaround is to change it to zero in a hex editor, this is not the correct solution though, the correct offset needs to be inserted. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #7 from Robert Clipsham rob...@octarineparrot.com 2011-06-04 01:18:01 BST --- Actually, removing the offset seems to be the correct solution - it's what both gcc and clang do on OS X (despite it being contrary to what the DWARF spec states). I'll put together a pull request now. Another odd side effect seems to be that no debug info ends up in the resulting binary (only the object files), but again, this seems to be consistent with gcc and clang's output when using -g. I recall reading somewhere that Mach-O uses a separate file for debug information, it could be related to this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #8 from Robert Clipsham rob...@octarineparrot.com 2011-06-04 02:07:18 BST --- https://github.com/D-Programming-Language/dmd/pull/83 - Everything works as it should, the file just needs running through dsymutil. Unfortunately dsymutil exploded violently when I tried to get it working, so I didn't add it into dmd's builder. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 Brad Roberts bra...@puremagic.com changed: What|Removed |Added CC||bra...@puremagic.com --- Comment #3 from Brad Roberts bra...@puremagic.com 2011-03-28 00:37:37 PDT --- Today Walter merged a big batch of dwarf related fixes. I'm curious if these changes + those that were just submitted fix the other issues mentioned here. Could I get one of you two to update the patch here (if needed) and check to make sure it still works correctly? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #4 from Jacob Carlborg d...@me.com 2011-03-28 00:54:49 PDT --- (In reply to comment #3) Today Walter merged a big batch of dwarf related fixes. I'm curious if these changes + those that were just submitted fix the other issues mentioned here. Could I get one of you two to update the patch here (if needed) and check to make sure it still works correctly? I will not be able to try the patch until tuesday evening. I don't think it ever worked correctly, read my original message. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 Sean Kelly s...@invisibleduck.org changed: What|Removed |Added CC||s...@invisibleduck.org --- Comment #1 from Sean Kelly s...@invisibleduck.org 2011-01-13 08:12:30 PST --- The ABI says that the double-underscore prefix is a convention only and that any prefix will work, but I saw in the Valgrind source yesterday that it searches explicitly for a double-underscore prefix, and I suspect other apps are the same. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4154] Incorrect DWARF section names on Mac
http://d.puremagic.com/issues/show_bug.cgi?id=4154 --- Comment #2 from Jacob Carlborg d...@me.com 2011-01-13 09:47:21 PST --- Exactly, as the documentation says it's just a convention. But all other tools/applications assume you follow the convention, that it starts with two underscores, gdb for example. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---