From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24897 invoked by alias); 24 Jun 2009 17:47:07 -0000 Received: (qmail 24889 invoked by uid 22791); 24 Jun 2009 17:47:06 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Jun 2009 17:46:59 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6A9071053C; Wed, 24 Jun 2009 17:46:55 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 2AF3A104DF; Wed, 24 Jun 2009 17:46:55 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MJWYg-0003Fp-11; Wed, 24 Jun 2009 13:46:54 -0400 Date: Wed, 24 Jun 2009 17:47:00 -0000 From: Daniel Jacobowitz To: David Daney Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: Reporting 'out of hardware breakpoints' situation Message-ID: <20090624174653.GA12412@caradoc.them.org> Mail-Followup-To: David Daney , Vladimir Prus , gdb@sources.redhat.com References: <200906241558.23737.vladimir@codesourcery.com> <4A4263F1.6060209@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4263F1.6060209@caviumnetworks.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-06/txt/msg00225.txt.bz2 On Wed, Jun 24, 2009 at 10:35:45AM -0700, David Daney wrote: > It is a difficult problem. There is also the case where multiple > hardware breakpoints can be covered by a single hardware watch > register (if two or more watched locations were adjacent in memory). > It makes it difficult to know exactly how many breakpoints you can > support. FYI, I noticed a target we're working on that has two ways to implement hardware breakpoints. One only works in a certain address space, and the other shares hardware resources with watchpoints. So figuring out how many breakpoints are available is pretty complex. -- Daniel Jacobowitz CodeSourcery