From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22647 invoked by alias); 16 Sep 2010 15:42:35 -0000 Received: (qmail 22636 invoked by uid 22791); 16 Sep 2010 15:42:34 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_40,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Sep 2010 15:42:28 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OwGbl-0005IH-LW; Thu, 16 Sep 2010 11:42:45 -0400 From: Eli Zaretskii To: luisgpm@linux.vnet.ibm.com CC: gdb@sourceware.org In-reply-to: <1284648970.2721.9.camel@gargoyle> (message from Luis Machado on Thu, 16 Sep 2010 11:56:10 -0300) Subject: Re: Assumptions on the number of hw watchpoints for some testcases Reply-to: Eli Zaretskii References: <1284648970.2721.9.camel@gargoyle> Message-Id: Date: Thu, 16 Sep 2010 15:42:00 -0000 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00097.txt.bz2 > From: Luis Machado > 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.