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

Andreas Schwab schwab@suse.de
Thu Apr 17 10:17:00 GMT 2008


Daniel Jacobowitz <drow@false.org> writes:

> On Thu, Apr 17, 2008 at 01:04:56AM +0200, Andreas Schwab wrote:
>> infrun: infwait_nonstep_watch_state
>> infrun: TARGET_WAITKIND_STOPPED
>> infrun: stop_pc = 0x100004b0
>> infrun: random signal 5
>
> Thanks, I can see the problem.  stepped_after_stopped_by_watchpoint is
> set, but nothing is using that to indicate that we should report the
> watchpoint.

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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list