This is the mail archive of the gdb-patches@sourceware.org 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: [rfc, rfa/doc] Multi-threaded watchpoint improvements


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."


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