Given an obj_id (as returned by mach_vm_region(VM_REGION_TOP_INFO) is it possible to get some information about this memory object, like: what kind? mapping a file? if yes, what file? etc. ? A somehow related question: The memory_object_offset_t offset as returned by mach_vm_region(VM_REGION_BASIC_INFO) is often somewhat unexpected. E.g.: TextEdit has the following load commands: path: "/Applications/TextEdit.app/Contents/MacOS/TextEdit" FAT_CIGAM with 2 headers: header[0]: Intel-64 -- selected header[1]: Intel-x86 -- ignored do 21 load commands: lc[0]: LC_SEGMENT_64 __PAGEZERO file 0 + 0 → 0 + 0 lc[1]: LC_SEGMENT_64 __TEXT file 0 + 0x1e000 → 0 + 0x1e000 lc[2]: LC_SEGMENT_64 __DATA file 0x1e000 + 0x7000 → 0x1e000 + 0x7000 lc[3]: LC_SEGMENT_64 __LINKEDIT file 0x25000 + 0x56e0 → 0x25000 + 0x6000 But the offsets from mach_vm_region() are 0x1000, 0, 0x26000. That is: shifted by one page and the offset of __DATA is zero. Why? Kind regards, Gerriet. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com