Ken Thomases : dbghelp: Ignore Mach-O segments other than __TEXT for images in dyld' s shared cache.
Module: wine Branch: master Commit: 49f0bf6f0ba3163028afb2a5910ef4d709abe26a URL: http://source.winehq.org/git/wine.git/?a=commit;h=49f0bf6f0ba3163028afb2a591... Author: Ken Thomases <ken(a)codeweavers.com> Date: Tue Aug 4 02:40:38 2015 -0500 dbghelp: Ignore Mach-O segments other than __TEXT for images in dyld's shared cache. Images in the shared cache have their segments mapped non-contiguously. We don't know how to find where the non-__TEXT segments actually are. Also, the code assumes that the image is mapped contiguously in various places. So, we just ignore those segments. Treating the non-contiguous segments as though they were contiguous caused their apparent memory ranges to overlap, leading to addresses being attributed to the wrong module, let alone symbol. --- dlls/dbghelp/dbghelp_private.h | 2 +- dlls/dbghelp/image_private.h | 1 + dlls/dbghelp/macho_module.c | 96 ++++++++++++++++++++++++++++++++++-------- dlls/dbghelp/minidump.c | 2 +- dlls/dbghelp/path.c | 2 +- 5 files changed, 83 insertions(+), 20 deletions(-) Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=49f0bf6f0ba3163028afb2...
participants (1)
-
Alexandre Julliard