This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why is gdb 5.2 so slow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]