[Mono-dev] {kinda OT} Linux equivalent of Win32 "ReadProcessMemory"...

Miguel de Icaza miguel at novell.com
Mon Apr 13 10:45:16 EDT 2009


> * Has anyone actually done something like this and run into non- 
> obvious
> problems?  I'm most concerned that there are some gotchas in how Linux
> manages memory, though if its just a matter of trial and error to find
> the right spots in memory I'm already assuming that's coming.

You might want to first look in /proc/PID/maps which describes which  
memory addresses are actually valid for that process.   Then you can  
start seeking and reading at will.

You still need this information if you are planning on using ptrace(2)  
instead of /proc/pid/mem


> * Is there an easier way to do this that I'm missing?  I briefly  
> looked
> for a glibc function that was similar to ReadProcessMemory and came up
> empty.
> --Mike
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list