From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11500 invoked by alias); 16 Mar 2006 23:56:50 -0000 Received: (qmail 11490 invoked by uid 22791); 16 Mar 2006 23:56:50 -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; Thu, 16 Mar 2006 23:56:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FK2Ki-0006tm-Cs; Thu, 16 Mar 2006 18:56:44 -0500 Date: Fri, 17 Mar 2006 00:04:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: MI: changing breakpoint location Message-ID: <20060316235644.GA26469@nevyn.them.org> Mail-Followup-To: Nick Roberts , Vladimir Prus , gdb@sources.redhat.com References: <17433.61359.500131.182453@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17433.61359.500131.182453@kahikatea.snap.net.nz> 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/msg00110.txt.bz2 On Fri, Mar 17, 2006 at 12:07:27PM +1300, Nick Roberts wrote: > > Now, I have to delete the old breakpoint and create the new one, which is > > workable, but not convenient. > > I don't find a problem with that, but it would be nice if when a program is > edited and recompiled that GDB could track the line number. So, for example > if the breakpoint is on line 10, say, and lines 4 and 5 are deleted, then > after recompiling and restarting, its on line 8. I think Visual Stuio has > this feature. I have no idea how easy/hard it would be to implement. BTW, this does make me think about the original request differently; it does seem a bit awkward to have to delete and recreate breakpoints every time the user edits a source file. Maybe it isn't. I don't know... -- Daniel Jacobowitz CodeSourcery