From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1853 invoked by alias); 13 Jun 2006 17:30:53 -0000 Received: (qmail 1836 invoked by uid 22791); 13 Jun 2006 17:30:53 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Jun 2006 17:30:52 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-34-238.inter.net.il [80.230.34.238]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DSA60883 (AUTH halo1); Tue, 13 Jun 2006 20:30:47 +0300 (IDT) Date: Tue, 13 Jun 2006 17:30:00 -0000 Message-Id: From: Eli Zaretskii To: Wu Zhou CC: nathan@codesourcery.com, gdb-patches@sourceware.org In-reply-to: (message from Wu Zhou on Tue, 13 Jun 2006 14:43:13 +0800 (CST)) Subject: Re: adjust watchpoint testing Reply-to: Eli Zaretskii References: <4489E0D8.2000702@codesourcery.com> <448D98E7.7030806@codesourcery.com> <448E59AE.50507@codesourcery.com> 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/msg00190.txt.bz2 > Date: Tue, 13 Jun 2006 14:43:13 +0800 (CST) > From: Wu Zhou > cc: gdb-patches@sourceware.org > > 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? I don't think there's any practical way to detect the number of supported watchpoints. It depends on the particulars of the watched regions, and different targets have different peculiarities. For example, x86 can set an unlimited number of watchpoints provided that they watch the same address and length.