From: Eli Zaretskii <eliz@delorie.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Make access watchpoints work again
Date: Sun, 18 Mar 2001 12:47:00 -0000 [thread overview]
Message-ID: <200103181916.OAA17858@indy.delorie.com> (raw)
In-Reply-To: <200103171718.MAA13071@indy.delorie.com>
Earlier in the thread "Unified watchpoints for x86 platforms" I
mentioned that awatch causes GDB to call internal_error. The patch
below fixes the problem which was causing this. It looks like two
lines mysteriously changed places (and were later reindented).
I wish all bugs were as easy to find and fix as this one ;-)
Okay to commit?
(Btw, why isn't the case, where an access watchpoint triggers, but the
value didn't change, being annotated with a call to
annotate_watchpoint?)
2001-03-18 Eli Zaretskii <eliz@is.elta.co.il>
* breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
Correct the order of calls to ui_out_field_string and
ui_out_list_begin when bs->old_val is NULL.
--- gdb/breakpoint.c~0 Wed Jan 31 03:24:00 2001
+++ gdb/breakpoint.c Sun Mar 18 20:34:06 2001
@@ -2093,8 +2093,8 @@ print_it_typical (bpstat bs)
{
mention (bs->breakpoint_at);
if (interpreter_p && strcmp (interpreter_p, "mi") == 0)
- ui_out_list_begin (uiout, "value");
- ui_out_field_string (uiout, "reason", "access-watchpoint-trigger");
+ ui_out_field_string (uiout, "reason", "access-watchpoint-trigger");
+ ui_out_list_begin (uiout, "value");
ui_out_text (uiout, "\nValue = ");
}
value_print (bs->breakpoint_at->val, stb->stream, 0,Val_pretty_default);
next prev parent reply other threads:[~2001-03-18 12:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200103032150.QAA29021@indy.delorie.com>
2001-03-07 1:20 ` [RFA] Unified watchpoints for x86 platforms Eli Zaretskii
2001-03-07 7:56 ` Mark Kettenis
2001-03-07 9:23 ` Eli Zaretskii
2001-03-09 14:05 ` Mark Kettenis
2001-03-11 3:19 ` Eli Zaretskii
2001-03-14 5:11 ` Mark Kettenis
2001-03-17 9:18 ` Eli Zaretskii
2001-03-17 14:54 ` Mark Kettenis
2001-03-18 0:57 ` Eli Zaretskii
2001-03-17 15:20 ` Mark Kettenis
2001-03-18 0:58 ` Eli Zaretskii
2001-03-18 12:47 ` Eli Zaretskii [this message]
2001-03-19 8:56 ` [RFA] Make access watchpoints work again Andrew Cagney
2001-03-20 1:54 ` Eli Zaretskii
2001-03-23 8:06 ` Andrew Cagney
2001-03-17 9:21 ` [RFA] Unified watchpoints for x86 platforms 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=200103181916.OAA17858@indy.delorie.com \
--to=eliz@delorie.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