2509fc6e
by Eric Pouech at 2025-10-27T10:04:29+01:00
dbghelp: Rewrite debug format search & load logic.
- respect SymLoadModuleEx(..., SLMFLAG_NO_SYMBOLS) for all formats.
- reorder search logic:
+ matched .pdb
+ matched .dbg
+ dwarf
+ stabs
+ other debug formats in PE DEBUG directory (codeview...)
+ other debug formats from PE header (coff...)
+ unmatched .pdb (if none of previous worked).
- only one of these format is loaded (while previously we could
merge some of them),
- use module's export table in last resort (either SLMFLAG_NO_SYMBOLS
is present, or no debug info found)
- for handling .pdb/.dbg, separate
1) getting .pdb/.dbg information from image,
2) searching a matching .pdb/.dbg file,
3) loading debug information from that very file.
Note:
- we no longer fill CVData field in extended module info.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58837
Signed-off-by: Eric Pouech <epouech@codeweavers.com>