1 Answer
1

Unfortunately Mac OSX does not have a /proc file system. On other species of unix the /proc filesystem should have an entry for each running process named with the corresponding pid. The memory space of the process would be available through /proc/${pid}/mem to root or any user with appropriate permissions.

I believe system calls are available that do much of this. This link is to a stackoverflow posting where the author has written a utility that dumps the memory image of a process to disk. It might do what you want.