Re: Hopefully a simple question on /proc/pid/mem

Stephen C. Tweedie
2001-04-30T18:50:07Z

Hi,

On Mon, Apr 30, 2001 at 02:17:13PM -0400, Richard F Weber wrote:
> 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.

ptrace is what other debuggers use. It really ought to work.

Cheers,
Stephen