From: Eli Zaretskii <eliz@elta.co.il>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Breakpoint infrastructure cleanups [1/8] - define impl_breakpoint
Date: Thu, 09 Oct 2003 06:04:00 -0000 [thread overview]
Message-ID: <uekxnaqsa.fsf@elta.co.il> (raw)
In-Reply-To: <20031008191156.GD13579@nevyn.them.org> (message from Daniel Jacobowitz on Wed, 8 Oct 2003 15:11:56 -0400)
> Date: Wed, 8 Oct 2003 15:11:56 -0400
> From: Daniel Jacobowitz <drow@mvista.com>
> >
> > Why did you decide to leave the subclasses of hardware watchpoints
> > (read, access, and write) in the parent structure, instead of moving
> > that distinction here? That seems like you are spreading related
> > information between several places instead of having it in a single
> > place.
>
> I'm actually planning to move it to the impl_breakpoint.
Ah, okay then.
> For instance, according to my interpretation, rwatch **foo should be:
> a read watchpoint on the address *foo
> a write watchpoint on the address foo, in case it is moved.
> I don't know if that matches GDB's current interpreation of such
> expressions, though - I haven't looked yet.
GDB already does something similar, of course: that's why you see the
value chain being chased each time GDB inserts or removes watchpoints.
In this case, the value chain of **foo will include &foo as well.
Similar things happen with watching arrays and structs; the comments
in breakpoint.c should shed more light on this.
One other thing to keep in mind wrt watchpoints is that the
bp_hardware_watchpoint kind is handled differently from
bp_read_watchpoint and bp_access_watchpoint. I believe the reasons
are histerical, but I think you will need to know this while hacking
that part of the code, especially if you decide to change it so that
all 3 kinds are handled the same way, as I think they should.
next prev parent reply other threads:[~2003-10-09 6:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-08 17:02 Daniel Jacobowitz
2003-10-08 18:17 ` Jim Blandy
2003-10-14 1:30 ` Daniel Jacobowitz
2003-10-14 15:31 ` Andrew Cagney
2003-10-14 15:36 ` Daniel Jacobowitz
2003-10-14 16:03 ` Andrew Cagney
2003-10-08 18:21 ` Eli Zaretskii
2003-10-08 19:11 ` Daniel Jacobowitz
2003-10-09 6:04 ` Eli Zaretskii [this message]
2003-10-09 19:16 ` Michael Snyder
2003-11-06 17:57 ` Daniel Jacobowitz
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=uekxnaqsa.fsf@elta.co.il \
--to=eliz@elta.co.il \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
/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