From: Wu Zhou <woodzltc@cn.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com, mark.kettenis@xs4all.nl
Subject: Re: [RFC] GDB patches for hw watchpoints - revised
Date: Fri, 09 Dec 2005 12:04:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.63.0512091013040.18692@linux.site> (raw)
In-Reply-To: <20051206202848.GA9568@nevyn.them.org>
On Tue, 6 Dec 2005, Daniel Jacobowitz wrote:
> On Tue, Dec 06, 2005 at 10:25:01PM +0200, Eli Zaretskii wrote:
> > > Date: Tue, 6 Dec 2005 14:12:26 +0800 (CST)
> > > From: Wu Zhou <woodzltc@cn.ibm.com>
> > > cc: drow@false.org, eliz@gnu.org, mark.kettenis@xs4all.nl
> > >
> > > 3. Eli ever expressed a concern that the PPC doesn't have a way to return
> > > the data address that triggered the watchpoint? As far as I think, the
> > > reason is that PPC will only have one DABR (if it does have). So maybe we
> > > don't need to have such a method.
> >
> > Sorry, I'm not following: no matter how many debug registers the PPC
> > has, it can still return to GDB the data address that triggered the
> > watchpoint. I don't think the higher levels of GDB (breakpoint.c)
> > should know or assume anything about the target capabilities or
> > resources. Let's try keeping the code clean of such peculiarities.
>
> Wu, you're using GETSIGINFO to check for a watchpoint. Then isn't the
> faulting address stored in the siginfo anyway?
Currently what stored in the siginfo.si_addr is the address of next
instruction. Anton sent me a patch to change that to the data address
instead. I am now playing with the patched kernel.
BTW. It seems that to_stopped_data_address is only used in rwatch and
awatch, which is not that frequently used as watch itself. So may we
postpone its implementation till some later time?
Regards
- Wu Zhou
next prev parent reply other threads:[~2005-12-09 2:25 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 19:54 Wu Zhou
2005-12-06 22:46 ` Ulrich Weigand
2005-12-09 12:00 ` Wu Zhou
2005-12-09 14:34 ` Ulrich Weigand
2005-12-06 23:05 ` Eli Zaretskii
2005-12-06 23:31 ` Daniel Jacobowitz
2005-12-09 12:04 ` Wu Zhou [this message]
2005-12-09 14:22 ` Daniel Jacobowitz
2005-12-09 18:58 ` Eli Zaretskii
2005-12-10 22:23 ` Wu Zhou
2005-12-11 11:12 ` Daniel Jacobowitz
2005-12-11 14:39 ` Wu Zhou
2005-12-13 22:47 ` Wu Zhou
2005-12-14 18:12 ` Eli Zaretskii
2005-12-14 18:13 ` Daniel Jacobowitz
2005-12-15 20:06 ` Wu Zhou
2005-12-16 0:10 ` Anton Blanchard
2005-12-22 15:26 Wu Zhou
2005-12-22 15:38 ` Wu Zhou
2005-12-22 15:57 ` Eli Zaretskii
2005-12-22 15:57 ` Wu Zhou
2005-12-23 20:52 ` Eli Zaretskii
2006-01-22 20:56 ` Daniel Jacobowitz
2006-01-24 3:40 ` Wu Zhou
2006-01-24 3:43 ` Daniel Jacobowitz
2006-01-24 4:33 ` Wu Zhou
2006-01-24 11:00 ` Wu Zhou
2006-01-24 21:20 ` Daniel Jacobowitz
2006-01-25 3:19 ` Wu Zhou
2006-01-25 8:34 ` Replace to_region_size_ok_for_hw_watchpoint references with to_region_ok_for_hw_watchpoint ones Wu Zhou
2006-02-02 1:43 ` [RFC] GDB patches for hw watchpoints - revised Daniel Jacobowitz
2006-02-08 5:35 ` Wu Zhou
2006-02-09 5:44 ` Wu Zhou
2006-02-09 7:44 ` Eli Zaretskii
2006-02-13 9:53 ` Wu Zhou
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=Pine.LNX.4.63.0512091013040.18692@linux.site \
--to=woodzltc@cn.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/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