-
fc4cb218
by Eric Pouech at 2025-10-01T23:02:39+02:00
winedbg: Simplify fetching module name.
Always using GetMappedFileNameW for active targets:
- as it doesn't depend on information from debug event that
are not always present (pointer to module name, or file handle),
- it only uses a single server call (pointer to module name requires two).
- and stop using GetModuleFileNameExW which implementation walks
the module list in debuggee process, hence request time grows linearly
with number of loaded modules.
Keep fallback to indirection in debuggee address space for non active
targets.
This reduces significantly attachment time in auto mode.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
dda9f35c
by Eric Pouech at 2025-10-01T23:02:39+02:00
dbghelp: Add public symbols out of export table when no debug info is present.
Always creating public symbols from export table can be slow.
If we already have some debug information, then exported symbols are
likely already present.
In extreme cases, this can reduce significantly loading time of module.
Note: in some (rare) cases, this will change current behavior:
- if symbol has no debug inforamtion attached to it (assembly...), then
no name will be available for it,
- if exported symbol name is different from internal one, then only the
internal one will be reported.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
192d335f
by Eric Pouech at 2025-10-01T23:02:39+02:00
dbghelp: Don't crash on stripped image without DEBUG directories.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58742
Signed-off-by: Eric Pouech <epouech@codeweavers.com>