From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sourceware.org
Subject: Re: [rfc, rfa/doc] Multi-threaded watchpoint improvements
Date: Sun, 20 Apr 2008 02:35:00 -0000 [thread overview]
Message-ID: <je63udal3f.fsf@sykes.suse.de> (raw)
In-Reply-To: <20080417123455.GA25679@caradoc.them.org> (Daniel Jacobowitz's message of "Thu, 17 Apr 2008 08:34:55 -0400")
Daniel Jacobowitz <drow@false.org> writes:
> 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.
There is still a problem with that: if the watchpoint granularity is
bigger than the size of the data then gdb can still get this wrong. On
ppc64 the granularity is 8 bytes, so if you watch a 4 byte object you
also get a trap if the other 4 bytes of the watched 8 bytes are
modified, but gdb should ignore that trap. I think there needs to be a
target hook to tell watchpoints_triggered the granularity.
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."
next prev parent reply other threads:[~2008-04-19 16:03 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-16 18:40 Daniel Jacobowitz
2007-09-22 9:03 ` Eli Zaretskii
2007-09-22 14:04 ` Daniel Jacobowitz
2007-09-22 14:13 ` Eli Zaretskii
2007-09-22 15:37 ` Daniel Jacobowitz
2007-09-22 15:46 ` Eli Zaretskii
2007-09-22 18:28 ` Daniel Jacobowitz
2007-10-01 0:20 ` Daniel Jacobowitz
2007-10-24 14:59 ` Luis Machado
2007-10-24 16:00 ` Daniel Jacobowitz
2007-10-24 16:42 ` Luis Machado
2007-10-24 16:51 ` Daniel Jacobowitz
2007-10-24 18:08 ` Luis Machado
2007-10-24 18:20 ` Daniel Jacobowitz
2008-04-16 22:57 ` Andreas Schwab
2008-04-16 23:05 ` Daniel Jacobowitz
2008-04-16 23:18 ` Andreas Schwab
2008-04-17 0:25 ` Daniel Jacobowitz
2008-04-17 9:52 ` Andreas Schwab
2008-04-17 9:59 ` Andreas Schwab
2008-04-17 10:17 ` Andreas Schwab
2008-04-17 14:53 ` Daniel Jacobowitz
2008-04-20 2:35 ` Andreas Schwab [this message]
2008-04-23 11:55 ` Andreas Schwab
2008-04-23 19:46 ` Eli Zaretskii
2008-05-01 19:30 ` Daniel Jacobowitz
2008-05-01 19:50 ` Luis Machado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=je63udal3f.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox