This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Assumptions on the number of hw watchpoints for some testcases
- From: Eli Zaretskii <eliz at gnu dot org>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: gdb at sourceware dot org
- Date: Thu, 16 Sep 2010 11:42:45 -0400
- Subject: Re: Assumptions on the number of hw watchpoints for some testcases
- References: <1284648970.2721.9.camel@gargoyle>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Luis Machado <luisgpm@linux.vnet.ibm.com>
> Reply-To: luisgpm@linux.vnet.ibm.com
> Date: Thu, 16 Sep 2010 11:56:10 -0300
>
> I don't think GDB has a handy maint command to tell the testcases how
> many HW watches a target can use.
It doesn't, and it can't: the amount of HW watches available depends
on the alignment and size of the region being watched, and sometimes
on other factors.
The only way of dealing intelligently with these limitations is to
modify the test cases so that they dynamically detect when the HW
resources are exhausted and skip the affected tests. Not sure how
much labor that would need or whether it's worth the hassle.