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

Alexander Viro
2001-04-30T19:00:36Z

On Mon, 30 Apr 2001, Stephen C. Tweedie wrote:

> > 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.

I wonder what's wrong with reading from /proc/<pid>/mem, though - it's
using the same code as ptrace.

Al, considering adding /proc/<pid>/{regs,fpregs,ctl} and moving ptrace()
entirely to userland...