From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26332 invoked by alias); 13 Jun 2006 06:43:17 -0000 Received: (qmail 26323 invoked by uid 22791); 13 Jun 2006 06:43:17 -0000 X-Spam-Check-By: sourceware.org Received: from ausmtp04.au.ibm.com (HELO ausmtp04.au.ibm.com) (202.81.18.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Jun 2006 06:43:14 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k5D6kiDj177084 for ; Tue, 13 Jun 2006 16:46:44 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k5D6kVcJ237128 for ; Tue, 13 Jun 2006 16:46:31 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5D6h9XF032371 for ; Tue, 13 Jun 2006 16:43:09 +1000 Received: from [9.181.133.20] ([9.181.133.20]) by d23av04.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5D6h7D9032325; Tue, 13 Jun 2006 16:43:08 +1000 Date: Tue, 13 Jun 2006 06:43:00 -0000 From: Wu Zhou To: Nathan Sidwell cc: gdb-patches@sourceware.org Subject: Re: adjust watchpoint testing In-Reply-To: <448E59AE.50507@codesourcery.com> Message-ID: References: <4489E0D8.2000702@codesourcery.com> <448D98E7.7030806@codesourcery.com> <448E59AE.50507@codesourcery.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00170.txt.bz2 On Tue, 13 Jun 2006, Nathan Sidwell wrote: > Wu Zhou wrote: > > Nathan, > > > > I see your code have such two lines: > > > > + if [target_info exists gdb,hardware_watchpoints] { > > + set nwatch [target_info gdb,hardware_watchpoints] > > > > Where is this target_info variable set up? Did you set that somewhere in > > the dejagnu package? I am very curious about how it is implemented. > > you need to add a line to the dejagnu board support file to initialize it. In > just the same way as things like gdb,nosignals is set. Do you mean to hard-wire the number of the hw watchpoint the underlying target support into these base board files, or just set the number to 1? I guess that we might need to work out a way to detect the number automatically. Any thought? Regards - Wu Zhou