PFZheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Enhance mapped memory regions used by process to get dylib path out of dyld shared cache file #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
OS X support for mapped memory regions used by process added in Issue 260 is in 
need of a final enhancement that will parse the actual dylib filename/path out 
of the dyld shared cache map file.  Right now, any dylib that is loaded from 
the OS X dyld shared cache reports the path to the dyld shared cache file 
instead of the actual dylib that was requested to be loaded.  To do this, based 
on conversations with experienced mach kernel developers, we will need to parse 
the dyld_shared_cache_*.map file to find the real dylib path.

Original issue reported on code.google.com by jcscoob...@gmail.com on 25 Jun 2012 at 11:04

GoogleCodeExporter commented 8 years ago
http://newosxbook.com/src.jl?tree=listings&file=12-1-vmmap.c might be helpful 
(via 
http://stackoverflow.com/questions/6963625/mach-vm-region-recurse-mapping-memory
-and-shared-libraries-on-osx).

Original comment by asqueella on 18 Jun 2013 at 11:20