[Fwd: Re: gdb/725: Crash using debug target and regcaches (in 5.3 branch?)]

Andrew Cagney ac131313@redhat.com
Thu Nov 21 17:38:00 GMT 2002


In fact:

cagney@torrens$ grep ptrace gdb.strace | wc -l
5236211

cagney@torrens$ grep PTRACE_PEEKUSER gdb.strace | wc -l
     162
cagney@torrens$ grep PTRACE_CONT gdb.strace | wc -l
     610
cagney@torrens$ grep SIGSTOP gdb.strace | grep kill | wc -l
     515

But, get this:

cagney@torrens$ grep PTRACE_PEEKTEXT gdb.strace | wc -l
5231130

so, until the PEEKTEXT is eliminated, it won't make any difference.

--

Plucking a ``random'' memory location out of thin air:

cagney@torrens$ grep 0x40040ea0 gdb.strace | grep ptrace | wc -l
    7038
cagney@torrens$ expr 7038 \* 250
1759500

(I think its a buffer that thread db needs - the buffer is read 7000 
times when the target only does ~160 continues (if that)).

Andrew



More information about the Gdb mailing list