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@winehq.org ReportedBy: fitzsim@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.