From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Pedro Alves'" <palves@redhat.com>, <gdb-patches@sourceware.org>
Subject: RE: [pushed] Add test to make sure GDB knows which "kind" of watchpoint the target has
Date: Tue, 16 Sep 2014 13:23:00 -0000 [thread overview]
Message-ID: <000601cfd1b1$718bd600$54a38200$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <1410873512-762-1-git-send-email-palves@redhat.com>
Hi Pedro,
I think there is a typo inside this:
> + set sw_watch_pc [get_pc "get sw watchpoint PC"]
> +
> + delete_breakpoints
> +
> + # Allow hardware watchpoints again.
> + gdb_test_no_output "set can-use-hw-watchpoints 1"
> +
> + gdb_test "watch global" \
> + "Hardware watchpoint .*: global" \
> + "set hardware watchpoint on global variable"
> +
> + gdb_test "continue" \
> + "Hardware watchpoint .*: global.*Old value = 1.*New value =
> 2.*set_global \\(val=2\\).*$srcfile.*" \
> + "hardware watchpoint triggers"
> +
> + set hw_watch_pc [get_pc "get hw watchpoint PC"]
> +
> + gdb_assert {$sw_watch_pc == $sw_watch_pc} "hw watchpoint stops at
> right instruction"
Shouldn't this be
{$sw_watch_pc == $hw_watch_pc}?
Pierre Muller
next prev parent reply other threads:[~2014-09-16 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-16 13:18 Pedro Alves
2014-09-16 13:23 ` Pierre Muller [this message]
2014-09-16 13:27 ` Pedro Alves
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='000601cfd1b1$718bd600$54a38200$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
--cc=palves@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