wine/dlls/dbghelp
Eric Pouech 60108ea1bc dbghelp: Pretend mach-o is present in case of failure.
On MacOs, starting with Big Sur 11.0.1, the system dynamic
libraries are no longer directly accessible on disk.
They are still available through dlopen and friends. For getting
access to the images (and their debug symbol), Apple provides,
in the developper kit, the tools to extract the files. Note that
this is handled as a database of all system libraries, where ASLR
is in place such that segments of a given library are no longer
contiguous in memory (dbghelp doesn't currently handle this).

Apart from not having image information nor debug information,
another side effect is that dbghelp tries every time it refreshes the
mach-o module list to reload any library for which it didn't have
an image file. This can be lengthy (esp when a typical process has
more than 300 modules loaded).

This patch forces the creation of the dbghelp module even if the
image file isn't found.

This patch cuts startup time of 'winedbg notepad' from 9.9 to 7.4s.
YMMV.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-16 20:56:07 +01:00
..
tests makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
coff.c dbghelp: Remove DECLSPEC_HIDDEN usage. 2023-11-13 11:04:45 +01:00
cpu_arm.c dbghelp: Remove DECLSPEC_HIDDEN usage. 2023-11-13 11:04:45 +01:00
cpu_arm64.c dbghelp: Remove DECLSPEC_HIDDEN usage. 2023-11-13 11:04:45 +01:00
cpu_i386.c dbghelp: Remove DECLSPEC_HIDDEN usage. 2023-11-13 11:04:45 +01:00
cpu_x86_64.c dbghelp: Remove DECLSPEC_HIDDEN usage. 2023-11-13 11:04:45 +01:00
dbghelp.c dbghelp: Expose some internal information about modules to winedbg. 2023-11-16 20:56:03 +01:00
dbghelp.spec dbghelp: Expose some internal information about modules to winedbg. 2023-11-16 20:56:03 +01:00
dbghelp_private.h dbghelp: Pretend mach-o is present in case of failure. 2023-11-16 20:56:07 +01:00
dwarf.c dbghelp: Expose some internal information about modules to winedbg. 2023-11-16 20:56:03 +01:00
dwarf.h
elf_module.c dbghelp: Expose PE native vs builtin information to winedbg. 2023-11-16 20:56:07 +01:00
image.c dbghelp: Enable compilation with long types. 2022-02-09 18:37:32 +01:00
image_private.h dbghelp: Expose some internal information about modules to winedbg. 2023-11-16 20:56:03 +01:00
macho_module.c dbghelp: Pretend mach-o is present in case of failure. 2023-11-16 20:56:07 +01:00
Makefile.in makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
minidump.c dbghelp: Expose PE native vs builtin information to winedbg. 2023-11-16 20:56:07 +01:00
module.c dbghelp: Pretend mach-o is present in case of failure. 2023-11-16 20:56:07 +01:00
msc.c dbghelp: Remove DMT_ entries for .DBG and .PDB files. 2023-11-16 20:56:03 +01:00
path.c dbghelp: Remove DMT_ entries for .DBG and .PDB files. 2023-11-16 20:56:03 +01:00
pe_module.c dbghelp: Expose PE native vs builtin information to winedbg. 2023-11-16 20:56:07 +01:00
source.c dbghelp: Simplified module_find_by_addr(). 2023-10-18 11:01:56 +02:00
stabs.c dbghelp: Expose some internal information about modules to winedbg. 2023-11-16 20:56:03 +01:00
stack.c dbghelp: Implement SymAddrIncludeInlineTrace(). 2022-11-18 14:11:50 +01:00
storage.c dbghelp: Allocate real_path with the CRT and copy it to the module heap. 2023-06-27 11:58:05 +02:00
symbol.c dbghelp: Simplified module_find_by_addr(). 2023-10-18 11:01:56 +02:00
type.c dbghelp: Use nameless union/structs. 2023-07-05 17:03:30 +02:00
version.rc