From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7115 invoked by alias); 17 Mar 2006 17:34:08 -0000 Received: (qmail 7105 invoked by uid 22791); 17 Mar 2006 17:34:08 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 17 Mar 2006 17:34:07 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FKIpv-0004I9-LL; Fri, 17 Mar 2006 12:34:03 -0500 Date: Fri, 17 Mar 2006 17:43:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus , Eli Zaretskii Cc: gdb@sources.redhat.com, gdb@sourceware.org Subject: Re: MI: changing breakpoint location Message-ID: <20060317173403.GC15128@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Eli Zaretskii , gdb@sources.redhat.com, gdb@sourceware.org References: <200603161911.55098.ghost@cs.msu.su> <20060316161556.GA14155@nevyn.them.org> <20060316160521.GA13476@nevyn.them.org> <200603161911.55098.ghost@cs.msu.su> <20060316161556.GA14155@nevyn.them.org> <20060316164449.GA14811@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00130.txt.bz2 Message-ID: <20060317174300.Ly-P4q8pnMIDOyX6JxM9GLf85jNbRzb8BtlXpTfKx5g@z> On Fri, Mar 17, 2006 at 01:34:57PM +0300, Vladimir Prus wrote: > Let me try again. Maintaining and testing this in gdb is extra work. > Maintaining and testing this in frontends is extra work as well, and GUIs > are less suitable for automatic testing. > > Do you prefer to have this maintained and tested in frontends because that > means less work for you, or because it's more technically reasonable, in > your optinion? I thought it was more technically reasonable. I wouldn't have said it just because it was less work! However, I think I've been persuaded otherwise at this point. On Fri, Mar 17, 2006 at 12:57:19PM +0200, Eli Zaretskii wrote: > > Date: Thu, 16 Mar 2006 11:15:56 -0500 > > From: Daniel Jacobowitz > > > > > How much trouble is it to change breakpoint location in gdb? > > > > A whole lot more than that. We'd have to destroy most of the existing > > breakpoint. > > Can you explain why? Isn't it enough just to modify the code address > stored within the breakpoint structure? Not really. That might work today, but not for much longer. Remember the discussions we keep having about "user breakpoints" mapping to more than one code location? Well, now we'll have to remove all the associated machine-level breakpoints and insert a new set. But, that's not as complicated as I first thought. If this would be useful for front-ends, we might as well. -- Daniel Jacobowitz CodeSourcery