[Bug 22384] New: DbgHelp doesn't support DWARF-2 on Mac OS X

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 16 23:14:15 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=22384

           Summary: DbgHelp doesn't support DWARF-2 on Mac OS X
           Product: Wine
           Version: 1.1.42
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: dbghelp
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: cdavis at mines.edu


Mac OS X has long had support for DWARF-2. Unfortunately, the current
implementation of DWARF-2 support in DbgHelp is tied to ELF. This means it
can't directly be used on Mac OS X, because Mac OS X does not support ELF.

I understand that getting things to work on Linux first takes priority over
getting them to work on Mac OS, but right now we Mac users are stuck with the
inferior stabs format. Plus, I get the feeling we're going to need this for
64-bit support. Also, DWARF happens to be the default format on 10.5 and up.

I also understand that the scheme that Apple uses is different from ELF
systems. Not only does DWARF-2 stuff get its own segment (__DWARF), but when
the binary is built, the DWARF stuff is put into a dSYM companion bundle. On
top of that, the dSYM bundle isn't even generated automatically for multi-file
builds. This means that:

- We have to invoke dsymutil to create the dSYM bundle.
- We have to install the dSYM bundle (if present) with each binary.
- We have to find the dSYM bundle to get DWARF-2 debug info.

I would be more than willing to help with this. (This might have even made a
good SoC project. Too late now...)

-- 
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