From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9603 invoked by alias); 16 Mar 2006 23:54:12 -0000 Received: (qmail 9595 invoked by uid 22791); 16 Mar 2006 23:54:11 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Mar 2006 23:54:09 +0000 Received: from kahikatea.snap.net.nz (p202-124-115-26.snap.net.nz [202.124.115.26]) by viper.snap.net.nz (Postfix) with ESMTP id 4EB7A749448; Fri, 17 Mar 2006 12:54:04 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 7A2EA88EC; Fri, 17 Mar 2006 12:52:40 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17433.64071.810834.166438@kahikatea.snap.net.nz> Date: Thu, 16 Mar 2006 23:56:00 -0000 To: David Daney Cc: Daniel Jacobowitz , Vladimir Prus , gdb@sources.redhat.com Subject: Re: MI: changing breakpoint location In-Reply-To: <4419F35D.6000907@avtrex.com> References: <17433.61359.500131.182453@kahikatea.snap.net.nz> <20060316231215.GA25222@nevyn.them.org> <4419F35D.6000907@avtrex.com> 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/msg00109.txt.bz2 > > Of course, then we'd have to let the MI interpreter know about the > > change too, so that the editor could refresh. I have no idea whether > > GUIs would want this behavior or not; wouldn't they want to track it > > themselves assuming you used the GUI's editor? > > > > I can't see why you would want to do it anyplace *other* than the > editor. It would know for sure which lines had been added and deleted. > Anything else would just be guessing. Well in Emacs the breakpoint icon does move according to the editing, of course. The problem is getting Emacs and GDB to understand each other: Emacs needs to tell GDB the new breakpoint locations; GDB needs to tell Emacs that the changes have indeed been recompiled into the executable and that execution has restarted. I guess the advantage of doing it in GDB, assuming its possible, is that it only need be done once, rather than separately for each front-end. -- Nick http://www.inet.net.nz/~nickrob