From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3154 invoked by alias); 31 Jan 2011 07:47:27 -0000 Received: (qmail 3145 invoked by uid 22791); 31 Jan 2011 07:47:27 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Jan 2011 07:47:22 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PjoTn-0005OT-Oq for gdb-patches@sources.redhat.com; Mon, 31 Jan 2011 08:47:19 +0100 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2011 08:47:19 +0100 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2011 08:47:19 +0100 To: gdb-patches@sources.redhat.com From: Vladimir Prus Subject: Re: FYI: add some breakpoint setter methods Followup-To: gmane.comp.gdb.patches Date: Mon, 31 Jan 2011 11:04:00 -0000 Message-ID: References: <20110131021033.GC2384@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit User-Agent: KNode/4.4.9 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: 2011-01/txt/msg00580.txt.bz2 Joel Brobecker wrote: >> As an aside, it seems to me that the breakpoint observers should >> probably take a 'struct breakpoint *' as an argument, rather than a >> breakpoint number. This would be more efficient: I think most users >> will want to have access to the actual breakpoint anyhow, and this would >> avoid a search through all breakpoints for the number. Perhaps I will >> implement this. > > Seems like a good idea. I will be submitting a patch for that very soon. - Volodya -- Vladimir Prus Mentor Graphics +7 (812) 677-68-40