From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22280 invoked by alias); 27 Nov 2010 13:25:32 -0000 Received: (qmail 22267 invoked by uid 22791); 27 Nov 2010 13:25:30 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 27 Nov 2010 13:25:21 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp03.br.ibm.com (8.14.4/8.13.1) with ESMTP id oARDGZYE010254 for ; Sat, 27 Nov 2010 11:16:35 -0200 Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oARDWIxR2744554 for ; Sat, 27 Nov 2010 11:32:18 -0200 Received: from d24av04.br.ibm.com (loopback [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oARDPGJW017743 for ; Sat, 27 Nov 2010 11:25:17 -0200 Received: from [9.18.199.242] ([9.18.199.242]) by d24av04.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oARDPGUs017730; Sat, 27 Nov 2010 11:25:16 -0200 Subject: Re: [patch 2/3] Implement support for PowerPC BookE ranged watchpoints From: Thiago Jung Bauermann To: Eli Zaretskii Cc: Pedro Alves , gdb-patches@sourceware.org, jan.kratochvil@redhat.com, brobecker@adacore.com In-Reply-To: <83k4k07324.fsf@gnu.org> References: <1290549100.3164.47.camel@hactar> <201011232316.56539.pedro@codesourcery.com> <1290632755.3164.94.camel@hactar> <201011251731.58135.pedro@codesourcery.com> <83k4k07324.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Date: Sat, 27 Nov 2010 13:25:00 -0000 Message-ID: <1290864315.3009.40.camel@hactar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00463.txt.bz2 On Fri, 2010-11-26 at 13:10 +0200, Eli Zaretskii wrote: > > > So that's way I created a target_insert_ranged_watchpoint. The other > > > option would be to add a flag to target_insert_watchpoint... > > > > It appears to me that if there should be a new kind of way to > > insert watchpoints, it should be to allow setting watchpoints > > that only work if the accesses are aligned > > What would be the use-cases where such behavior would be needed? In the case of embedded PowerPC processors, that's the only kind of watchpoint available using a single watchpoint register. To create a "regular" watchpoint in that platform, you need two watchpoint registers, from a total of two available in the processor. -- []'s Thiago Jung Bauermann IBM Linux Technology Center