[Bug 25920] winedbg does not work under clang

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Mar 19 10:57:37 CDT 2011


Eric Pouech <eric.pouech at orange.fr> changed:

           What    |Removed                     |Added
                 CC|                            |eric.pouech at orange.fr

--- Comment #2 from Eric Pouech <eric.pouech at orange.fr> 2011-03-19 10:57:36 CDT ---
1/ confirming crash
2/ however, clang generates bogus dwarf information:

(compilation with -O2, clang version 2.8)
[eric:~/work/output-wine/wine-clang]$ dwarfdump dlls/kernel32/kernel32.dll.so
.debug_line: line number info for a single cu
dwarfdump ERROR:  dwarf_srclines:  DW_DLE_ATTR_FORM_BAD (114)
3/ seems confirmed by some web searches (on clang 2.8)
see for example:

4/ looking at the hexdump of the section show that the .debug_line section
doesn't even contain its header

5/ I'll send a patch to protect dbghelp against bogus .debug_line sections in
dwarf files. winedbg now generates the correct backtrace (even if they are a
tons of duplicate symbols info. some of them are harmless, some others may
require some more care. that would require another bug report.

6/ I didn't test for the yet to come 2.9 version (or its RC), but definitively
a clang bug.


Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list