From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] watchpoint-reuse-slot.exp: skip some tests on targets have different wp and bp registers
Date: Mon, 16 Mar 2015 12:35:00 -0000 [thread overview]
Message-ID: <5506CDF2.4090400@redhat.com> (raw)
In-Reply-To: <1426257692-30461-1-git-send-email-qiyaoltc@gmail.com>
On 03/13/2015 02:41 PM, Yao Qi wrote:
> From: Yao Qi <yao.qi@linaro.org>
>
> watchpoint-reuse-slot.exp sets two hardware breakpoint and/or watchpoint,
> to test the same debugging register can be used correctly. However,
> on some targets, such as arm and aarch64, hardware has different
> registers for breakpoint and watchpoint, so don't have to do test
> if one breakpoint and one watchpoint are requested and target hardware
> has different debugging registers for breakpoint and watchpoint.
Hmm, is this just to save test time? If so, I'd prefer not skipping,
as it may always catch other bugs, in the target backends or
the kernel.
Despite the test's file name, the test doesn't actually create two
breakpoints/watchpoints at the same time, as mentioned at the top
of the file.
In any case:
> +# Return true if the same debugging register can be used for both
s/can be/is/
> +# watchpoint and breakpoint.
> +
> +proc dbg_registers_for_watch_and_break {} {
I think "same" should be in the proc name:
same_dbg_registers_for_watch_and_break
> + if { [istarget "arm*-linux*"] || [istarget "aarch64*-*-linux*"] } {
> + # arm and aarch64 has different registers for watchpoint and
s/has/have/
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-03-16 12:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 14:41 Yao Qi
2015-03-13 14:41 ` [PATCH 2/2] watchpoint-reuse-slot.exp: skip when requesting two breakpoints in one slot on aarch64 Yao Qi
2015-03-16 12:35 ` Pedro Alves
2015-03-16 14:10 ` Yao Qi
2015-03-16 12:35 ` Pedro Alves [this message]
2015-03-16 14:01 ` [PATCH 1/2] watchpoint-reuse-slot.exp: skip some tests on targets have different wp and bp registers Yao Qi
2015-03-16 15:23 ` Pedro Alves
2015-03-16 16:37 ` Yao Qi
2015-03-16 16:55 ` Pedro Alves
2015-03-16 17:34 ` Yao Qi
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=5506CDF2.4090400@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.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