[Bug 6830] New: winedbg can't find debuginfo in core libraries when GNU_HASH section is present in wine-pthread

Wine Bugs wine-bugs at winehq.org
Tue Dec 5 01:21:43 CST 2006


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

           Summary: winedbg can't find debuginfo in core libraries when
                    GNU_HASH section is present in wine-pthread
           Product: Wine
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-debug
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: fitzsim at redhat.com


On my x86 Fedora Core 6 machine, winedbg wasn't finding debuginfo for the core
wine libraries.

I tracked down the problem.  I compiled wine with the default FC-6 gcc which
passes --hash-style=gnu to the linker by default.  is_dt_flag_valid, not
recognizing the DT_GNU_HASH dynamic entry tag, returned 0 when called on that
tag.  This resulted in elf_load_file returning before setting
elf_info->dbg_hdr_addr, when loading wine-pthread.  elf_info->dbg_hdr_addr
remaining NULL meant that elf_enum_modules_internal returned early, and so
elf_enum_sync_cb wasn't being called for each of the core libraries.

I'm attaching a fix.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list