Re: why is gdb 5.2 so slow

Kevin Buettner
2002-11-01T18:44:01Z

On Nov 1, 1:32pm, Andrew Cagney wrote:

> > In any case, this reminded me of something I keep forgetting. Modern
> > kernels a ptrace-attached process can open the child's /proc/<pid>/mem
> > and read from it. Writing to it is disabled, and mmap is not
> > implemented (oh the violence to the mm layer if that was allowed!).
> > But reading from it is probably faster than PTRACE_PEEKTEXT. I'll
> > investigate.
>
> Ah. How does solaris work then?

On Solaris, /proc provides a complete debug interface. On Linux, it doesn't.

Kevin