From: Johan Rydberg <jrydberg@virtutech.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Vladimir Prus <ghost@cs.msu.su>,
gdb@sources.redhat.com
Subject: Re: read watchpoints broken with remote targets?
Date: Mon, 14 Nov 2005 06:23:00 -0000 [thread overview]
Message-ID: <43782D46.9050702@virtutech.com> (raw)
In-Reply-To: <20051113170917.GC465@nevyn.them.org>
Daniel Jacobowitz wrote:
> Actually, I think it is the right solution. [...]
> So a watchpoint was found not to have triggered, but failed to change
> bs->stop, so it was bogusly reported.
This is exactly the change I have done in my private repo, and it seem
to work just fine for our purposes.
--- breakpoint.c 22 Aug 2005 15:45:46 -0000 1.1
+++ breakpoint.c 20 Oct 2005 16:17:59 -0000 1.2
@@ -2624,7 +2624,7 @@
if ((b->type == bp_hardware_watchpoint
|| b->type == bp_read_watchpoint
|| b->type == bp_access_watchpoint)
- && !stopped_by_watchpoint)
+ && stopped_by_watchpoint == 0)
continue;
if (b->type == bp_hardware_breakpoint)
@@ -2741,8 +2741,13 @@
struct value *v;
int found = 0;
- if (!target_stopped_data_address (¤t_target, &addr))
- continue;
+ if (!target_stopped_data_address (¤t_target, &addr))
+ {
+ /* Don't stop. */
+ bs->print_it = print_it_noop;
+ bs->stop = 0;
+ continue;
+ }
for (v = b->val_chain; v; v = v->next)
{
if (VALUE_LVAL (v) == lval_memory
next prev parent reply other threads:[~2005-11-14 6:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-11 13:21 Vladimir Prus
2005-11-11 17:39 ` Eli Zaretskii
2005-11-13 17:09 ` Daniel Jacobowitz
2005-11-14 6:23 ` Johan Rydberg [this message]
2005-11-14 8:21 ` Vladimir Prus
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=43782D46.9050702@virtutech.com \
--to=jrydberg@virtutech.com \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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