linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Hopefully a simple question on /proc/pid/mem
@ 2001-04-30 18:17 Richard F Weber
  2001-04-30 18:50 ` Stephen C. Tweedie
  0 siblings, 1 reply; 12+ messages in thread
From: Richard F Weber @ 2001-04-30 18:17 UTC (permalink / raw)
  To: linux-mm

Hopefully this is a simple question.  I'm trying to work on an external 
debugger that can bind to an external process, and open up memory 
locations on the heap to allow reading of data.

Now I've tried using ptrace(), mmap() & lseek/read all with no success.  
The closest I've been able to get is to use ptrace() to do an attach to 
the target process, but couldn't read much of anything from it.  Plus 
I've seen tons of conflicting reports saying that each on is the best, 
and the other two are deprecated.

So what I'd appreciate help in is:

1) Which approach to use?
2) Maybe a sample program that lets me read address 0x8000000 from 
another process.  I know this address is an integer, but I can't ever 
mmap, read or do a PEEKDATA on it.


Thanks in Advance to any pointers or help you can provide.I can provide 
sample code to stuff I've tried, or any other information if it will 
help.  Thanks.

--Rich

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-05-01 15:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-30 18:17 Hopefully a simple question on /proc/pid/mem Richard F Weber
2001-04-30 18:50 ` Stephen C. Tweedie
2001-04-30 19:00   ` Alexander Viro
2001-04-30 19:02     ` Benjamin C.R. LaHaise
2001-04-30 19:26       ` Alexander Viro
2001-04-30 19:26         ` Benjamin C.R. LaHaise
2001-04-30 19:44           ` Alexander Viro
2001-04-30 21:58       ` Stephen C. Tweedie
2001-05-01  1:13         ` Eric W. Biederman
2001-05-01  9:36           ` Stephen C. Tweedie
2001-05-01 15:16             ` Eric W. Biederman
2001-04-30 19:13   ` Richard F Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox