From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29841 invoked by alias); 27 Dec 2010 15:15:20 -0000 Received: (qmail 29820 invoked by uid 22791); 27 Dec 2010 15:15:17 -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 e24smtp04.br.ibm.com (HELO e24smtp04.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Dec 2010 15:15:12 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp04.br.ibm.com (8.14.4/8.13.1) with ESMTP id oBRF6Ko8002982 for ; Mon, 27 Dec 2010 13:06:20 -0200 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oBRFMa8j2908208 for ; Mon, 27 Dec 2010 13:22:36 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oBRFEtv2017855 for ; Mon, 27 Dec 2010 13:14:56 -0200 Received: from [9.18.198.95] ([9.18.198.95]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oBRFEqIp017363; Mon, 27 Dec 2010 13:14:53 -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: <83k4ize7jx.fsf@gnu.org> References: <1290549100.3164.47.camel@hactar> <201011271747.39053.pedro@codesourcery.com> <1293130182.14239.21.camel@hactar> <201012232017.11120.pedro@codesourcery.com> <83k4ize7jx.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 27 Dec 2010 20:18:00 -0000 Message-ID: <1293462902.1544.66.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-12/txt/msg00473.txt.bz2 On Fri, 2010-12-24 at 13:25 +0200, Eli Zaretskii wrote: > > From: Pedro Alves > > Date: Thu, 23 Dec 2010 20:16:45 +0000 > > Cc: Thiago Jung Bauermann , > > Jan Kratochvil , > > Joel Brobecker , > > Eli Zaretskii > > > > The resource accounting bits, I still say that they should all just > > go away (at some point), and gdb should just try to insert the > > watchpoint immediately, and see if the target refuses. > > I agree -- assuming, that is, that all the targets we support that can > do hardware watchpoints allow us to insert the watchpoints separately > from resuming the debuggee. If there are targets that actually insert > the watchpoints as part as resuming the debuggee, those targets will > be unable to tell us anything useful about the watchpoint resources > until we actually resume the debuggee. For those targets, we will > need to have some resource accounting in GDB, to give the user > reasonable feedback about resource over-booking. AFAIK breakpoint.c would have to be changed to distinguish between software breakpoints/watchpoints and hardware breakpoints/watchpoints, and install the latter at the moment the user creates it, and the former would continue to be installed at the time GDB resumes the inferior, as breakpoint.c works now. -- []'s Thiago Jung Bauermann IBM Linux Technology Center