From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6220 invoked by alias); 20 May 2005 14:41:18 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6010 invoked from network); 20 May 2005 14:41:04 -0000 Received: from unknown (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org with SMTP; 20 May 2005 14:41:04 -0000 Received: from zaretski (IGLD-83-130-247-87.inter.net.il [83.130.247.87]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id BGY86956 (AUTH halo1); Fri, 20 May 2005 17:40:40 +0300 (IDT) Date: Fri, 20 May 2005 14:41:00 -0000 From: "Eli Zaretskii" To: Andreas Schwab Message-ID: <01c55d49$Blat.v2.4$91583500@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: jrydberg@virtutech.com, dan@shearer.org, gdb@sources.redhat.com In-reply-to: (message from Andreas Schwab on Fri, 20 May 2005 13:37:48 +0200) Subject: Re: [discuss] Support for reverse-execution Reply-to: Eli Zaretskii References: <20050519012254.GZ19642@erizo.shearer.org> <428C8E04.3000305@virtutech.com> <01c55d27$Blat.v2.4$69471120@zahav.net.il> X-SW-Source: 2005-05/txt/msg00218.txt.bz2 > From: Andreas Schwab > Cc: Johan Rydberg , dan@shearer.org, > gdb@sources.redhat.com > Date: Fri, 20 May 2005 13:37:48 +0200 > > > "Go backwards until the program reaches the source line before the > > current one." > > The beginning or any part of the source line? That's an interesting subtle point. At first I wanted to say "the former", but then I remembered the issue with moving a word forward and backward in editors. With some editors, such as Emacs, forward-word ends up one character _before_ the beginning of the next word, while backward-word ends up on the first character of the previous word. Other editors end up on the first character of a word with either forward or backward movement. So it could make sense for GDB to stop at the _last_ instruction of the previous source line when we move backwards by lines. The question is, will this be useful for the user. I'm not sure; perhaps they will want to skip all the code of the line and stop before its first instrcution, like "next" does.