From: Eli Zaretskii <eliz@gnu.org>
To: Paul Koning <pkoning@equallogic.com>, ghost@cs.msu.su
Cc: gdb@sources.redhat.com
Subject: Re: MI: reporting of multiple breakpoints
Date: Mon, 20 Feb 2006 07:25:00 -0000 [thread overview]
Message-ID: <uwtfqvcst.fsf@gnu.org> (raw)
In-Reply-To: <20060219215433.GA25853@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 19 Feb 2006 16:54:33 -0500)
> Date: Sun, 19 Feb 2006 16:54:33 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Paul Koning <pkoning@equallogic.com>, ghost@cs.msu.su,
> gdb@sources.redhat.com
>
> > > exception will deliver the PC of the instruction doing the store, or
> > > that PC can be deduced.
> >
> > I think this happens on _all_ platforms that support watchpoints.
>
> Really? On x86, I suspect that the exception is always at the
> instruction following the store; so it's possible, although
> non-trivial, to identify the store by backtracking.
The exception happens right when the store is written, and we find the
PC to be after the faulting instruction, when the inferior stops. The
faulting instruction is the one that corresponds to the previous PC
value.
> > Again, the place that caused the store is known (and shown to the
> > user), but the place where the inferior is stopped is a different
> > place on many architectures, including x86. Wed are arguing about the
> > latter, not the former.
>
> Could you give me an example?
What should the example show?
> I think that is desirable, but not at all what we do today - I have
> no idea how to retrieve the address of the store when I stop at a
> watchpoint. We show the old and new value, but that's it.
We also show the current source line, don't we? Are you saying that
we show the wrong line?
next prev parent reply other threads:[~2006-02-20 5:07 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 15:32 Vladimir Prus
2006-02-17 15:48 ` Daniel Jacobowitz
2006-02-17 16:04 ` Vladimir Prus
2006-02-17 18:59 ` Daniel Jacobowitz
2006-02-17 19:04 ` Daniel Jacobowitz
2006-02-17 19:52 ` Eli Zaretskii
2006-02-17 19:54 ` Daniel Jacobowitz
2006-02-17 19:59 ` Eli Zaretskii
2006-02-17 20:06 ` Paul Koning
2006-02-17 20:08 ` Daniel Jacobowitz
2006-02-17 20:16 ` Eli Zaretskii
2006-02-17 20:19 ` Daniel Jacobowitz
2006-02-17 20:18 ` Paul Koning
2006-02-17 20:24 ` Daniel Jacobowitz
2006-02-17 21:37 ` Paul Koning
2006-02-17 21:43 ` Daniel Jacobowitz
2006-02-17 21:56 ` Paul Koning
2006-02-17 22:12 ` Daniel Jacobowitz
2006-02-18 9:54 ` Paul Koning
2006-02-18 10:56 ` Daniel Jacobowitz
2006-02-18 15:47 ` Eli Zaretskii
2006-02-18 15:28 ` Eli Zaretskii
2006-02-18 17:28 ` Daniel Jacobowitz
2006-02-18 17:42 ` Eli Zaretskii
2006-02-18 17:50 ` Daniel Jacobowitz
2006-02-18 18:33 ` Eli Zaretskii
2006-02-19 18:20 ` Paul Koning
2006-02-19 18:31 ` Daniel Jacobowitz
2006-02-19 18:44 ` Robert Dewar
2006-02-20 3:16 ` Eli Zaretskii
2006-02-18 11:39 ` Eli Zaretskii
2006-02-19 18:19 ` Paul Koning
2006-02-19 18:38 ` Daniel Jacobowitz
2006-02-19 18:54 ` Paul Koning
2006-02-19 19:05 ` Robert Dewar
2006-02-19 19:30 ` Paul Koning
2006-02-19 19:52 ` Daniel Jacobowitz
2006-02-19 19:57 ` Paul Koning
2006-02-19 21:55 ` Eli Zaretskii
2006-02-20 4:33 ` Daniel Jacobowitz
2006-02-20 7:25 ` Eli Zaretskii [this message]
2006-02-20 18:20 ` Daniel Jacobowitz
2006-02-17 20:14 ` Eli Zaretskii
2006-02-17 20:08 ` Daniel Jacobowitz
2006-02-17 20:22 ` Eli Zaretskii
2006-02-17 20:31 ` Daniel Jacobowitz
2006-02-17 20:32 ` Eli Zaretskii
2006-02-17 20:41 ` Daniel Jacobowitz
2006-02-17 20:02 ` Eli Zaretskii
2006-02-17 20:15 ` Daniel Jacobowitz
2006-02-17 19:36 ` Eli Zaretskii
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=uwtfqvcst.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
--cc=pkoning@equallogic.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