wine/programs
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
..
arp makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
aspnet_regiis makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
attrib makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cabarc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
cacls makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
certutil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
chcp.com makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
clock makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cmd makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
conhost makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
control makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cscript makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
dism makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dllhost makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
dplaysvr makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dpnsvr dpnsvr: Move to GUI subsystem (as native). 2023-11-06 17:03:23 +01:00
dpvsetup makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dxdiag makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
eject makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
expand makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
explorer makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
extrac32 makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
fc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
find makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
findstr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
fsutil fsutil/tests: Use CRT allocation functions. 2023-11-02 10:15:14 +01:00
hh makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
hostname makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
icacls makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
icinfo makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
iexplore makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
ipconfig makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
klist makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
lodctr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
mofcomp makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
mshta mshta: No longer use console / crt API. 2023-11-10 20:52:29 +01:00
msidb makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
msiexec msiexec: Use CRT allocation functions. 2023-11-07 11:03:13 +01:00
msinfo32 makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
net makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
netsh makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
netstat makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
ngen ngen: Add version resource. 2022-10-11 18:40:37 +02:00
notepad makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
oleview makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
ping makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
plugplay makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
pnputil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
powershell makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
presentationfontcache makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
progman makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
reg makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regasm makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regedit makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regini makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regsvcs makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regsvr32 makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
robocopy makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
rpcss makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
rundll.exe16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
rundll32 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
sc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
schtasks makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
sdbinst makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
secedit makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
servicemodelreg makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
services services: Move to GUI subsystem (as native). 2023-11-06 17:03:30 +01:00
setx makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
shutdown makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
spoolsv spoolsv: Move to GUI subsystem (as native). 2023-11-06 17:03:26 +01:00
start makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
subst makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
svchost svchost: Move to GUI subsystem (as native). 2023-11-06 17:03:28 +01:00
systeminfo makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
taskkill makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
tasklist makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
taskmgr taskmgr: No longer use console/file output APIs. 2023-11-10 20:52:29 +01:00
termsv makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
uninstaller makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
unlodctr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
view makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wevtutil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
where makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
whoami makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
wineboot makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winebrowser winebrowser: Remove misleading comment. 2023-11-10 20:52:29 +01:00
winecfg winecfg: Mention protocol associations. 2023-11-06 17:58:30 +01:00
wineconsole makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winedbg dbghelp: Pretend mach-o is present in case of failure. 2023-11-16 20:56:07 +01:00
winedevice makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winefile makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winemenubuilder winemenubuilder: Create .desktop files for programs that open URIs. 2023-11-06 17:49:56 +01:00
winemine makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winemsibuilder makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winepath makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winetest makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
winevdm winevdm: Don't claim that 16-bit apps are DPI aware. 2023-11-09 23:00:40 +01:00
winhelp.exe16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winhlp32 makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
winmgmt makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winoldap.mod16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winver makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wmic makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wmplayer makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wordpad wordpad: Remove unneeded output messages. 2023-11-10 20:52:29 +01:00
write makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wscript makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wuauserv makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
wusa makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
xcopy makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00