From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31105 invoked by alias); 18 Mar 2006 11:19:40 -0000 Received: (qmail 31097 invoked by uid 22791); 18 Mar 2006 11:19:40 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 18 Mar 2006 11:19:39 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-248-61.inter.net.il [84.228.248.61]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DTU23588 (AUTH halo1); Sat, 18 Mar 2006 13:19:29 +0200 (IST) Date: Sat, 18 Mar 2006 18:46:00 -0000 Message-Id: From: Eli Zaretskii To: David Daney , Nick Roberts CC: gdb@sources.redhat.com, Vladimir Prus In-reply-to: <20060317172254.GB15128@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 17 Mar 2006 12:22:54 -0500) Subject: Re: MI: changing breakpoint location Reply-to: Eli Zaretskii References: <17433.61359.500131.182453@kahikatea.snap.net.nz> <20060316231215.GA25222@nevyn.them.org> <4419F35D.6000907@avtrex.com> <20060316232533.GA25722@nevyn.them.org> <20060317172254.GB15128@nevyn.them.org> 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/msg00140.txt.bz2 > Date: Fri, 17 Mar 2006 12:22:54 -0500 > From: Daniel Jacobowitz > Cc: David Daney , Nick Roberts , > gdb@sources.redhat.com, Vladimir Prus > > On Fri, Mar 17, 2006 at 01:42:46PM +0200, Eli Zaretskii wrote: > > > On Thu, Mar 16, 2006 at 03:23:09PM -0800, David Daney wrote: > > > > 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 the CLI GDB, we don't have any interaction with the editor. > > > > But we can ask the CLI users to type the line difference, can we? I > > don't expect this command to be used too frequently from the command > > line, so it doesn't seem to harsh a limitation. > > Would that be useful? I expect it to be used only very rarely from CLI, but when it is, I think yes, it would be useful. > The user's rarely going to know "oh, that breakpoint moved twenty > lines". If that same user just inserted N lines in the source file, they would know. > The alternative command, "oh, that breakpoint should be over here now", > is a lot simpler for a CLI user to use. By ``here'' you mean file:line argument? If so, I agree that this is also a possible user interface that is functionally equivalent to ``move by N lines''.