mach_vm_region_recurse, mapping memory and shared libraries on osx

后端 未结 2 513
逝去的感伤
逝去的感伤 2021-02-10 07:11

I\'m using vm_region_recurse_64 to map out the memory for a given process, vmmap style.

Trying to get a complete list of shared libraries loaded by the application by e

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-10 07:19

    vmmap calls mach_vm_region_recurse() to list the memory regions.

    In order to see the contents of submaps like the dyld shared cache at 0x90000000..0xa0000000, you'll need to look for regions with is_submap set, and then call mach_vm_region_recurse() again with the same address and a deeper nesting_depth.

提交回复
热议问题