From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24129 invoked by alias); 14 Jun 2006 03:32:13 -0000 Received: (qmail 24120 invoked by uid 22791); 14 Jun 2006 03:32:12 -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; Wed, 14 Jun 2006 03:32:10 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-43-116.inter.net.il [80.230.43.116]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DSB89190 (AUTH halo1); Wed, 14 Jun 2006 06:31:48 +0300 (IDT) Date: Wed, 14 Jun 2006 03:32: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 Wed, 14 Jun 2006 09:21:52 +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/msg00215.txt.bz2 > Date: Wed, 14 Jun 2006 09:21:52 +0800 (CST) > From: Wu Zhou > cc: nathan@codesourcery.com, gdb-patches@sourceware.org > > > 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. > > What about adding a gdbarch specific member function to do this? What would that function do? I thought I explained that the question ``how many watchpoints can the target give us'' has no meaningful answer, unless you also supply the specific mix of addresses and sizes of the regions you wish to watch.