[rfc, rfa/doc] Multi-threaded watchpoint improvements

Daniel Jacobowitz drow@false.org
Thu Apr 17 14:53:00 GMT 2008


On Thu, Apr 17, 2008 at 11:52:31AM +0200, Andreas Schwab wrote:
> Looking closer, it is actually a kernel bug.  PTRACE_GETSIGINFO is not
> emulated for 32-bit processes, so that si_addr is set to the upper half
> of the address, which is of course zero.

Glad you could track that down.  Yes, my patch made GDB less tolerant
of targets which claim they can report the stopped data address, but
actually fail.  It will only report watchpoints when the target
doesn't know what address has changed, or report a changed address
that falls on a particular watchpoint.  This lets us keep track of
which thread hit each watchpoint.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list