Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: gdb@sourceware.org
Subject: Assumptions on the number of hw watchpoints for some testcases
Date: Thu, 16 Sep 2010 14:56:00 -0000	[thread overview]
Message-ID: <1284648970.2721.9.camel@gargoyle> (raw)

Hi,

Recently i've noticed that some of the newer watchpoint-related
(watchpoint.exp, watchthreads.exp and local-watch-wrong-thread.exp for
example) testcases were failing due to the testcases themselves not
respecting the fact that PPC server processors only have a single HW
watchpoint register. Some of the testcases check for "watch *0x0" as a
means to tell if the platform actually supports doing "watch *var" in
HW. That doesn't work correctly on PPC server processors since "watch
*0x0" will use a HW watchpoint and "watch *var" will fall back to two SW
watchpoints...

I may declare watchthreads.exp unsupported for PPC server as it has a
strong assumption that the target can do 2 HW watchpoints or i can write
a different testcase relying on a single HW watchpoint.

As for the others, i'll try to make the tests more flexible.

I don't think GDB has a handy maint command to tell the testcases how
many HW watches a target can use.

Regards,
Luis


             reply	other threads:[~2010-09-16 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 14:56 Luis Machado [this message]
2010-09-16 15:42 ` 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=1284648970.2721.9.camel@gargoyle \
    --to=luisgpm@linux.vnet.ibm.com \
    --cc=gdb@sourceware.org \
    /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