dbghelp: Ignore Mach-O segments other than __TEXT for images in dyld's shared cache.
commit49f0bf6f0ba3163028afb2a5910ef4d709abe26a
authorKen Thomases <ken@codeweavers.com>
Tue, 4 Aug 2015 07:40:38 +0000 (4 02:40 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 4 Aug 2015 10:21:58 +0000 (4 12:21 +0200)
tree58d13ea8c496742ee737bd169c54b3cdb2021966
parentbe68890cac2ef9e875e0ccac7288834fa9f9bb43
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
dlls/dbghelp/image_private.h
dlls/dbghelp/macho_module.c
dlls/dbghelp/minidump.c
dlls/dbghelp/path.c