• Ken Thomases's avatar
    dbghelp: Ignore Mach-O segments other than __TEXT for images in dyld's shared cache. · 49f0bf6f
    Ken Thomases authored
    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.
    49f0bf6f
path.c 21.4 KB