From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32302 invoked by alias); 20 May 2005 11:37:59 -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 32203 invoked from network); 20 May 2005 11:37:49 -0000 Received: from unknown (HELO mx1.suse.de) (195.135.220.2) by sourceware.org with SMTP; 20 May 2005 11:37:49 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 6C06DE2DF; Fri, 20 May 2005 13:37:49 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: Johan Rydberg , dan@shearer.org, gdb@sources.redhat.com Subject: Re: [discuss] Support for reverse-execution References: <20050519012254.GZ19642@erizo.shearer.org> <428C8E04.3000305@virtutech.com> <01c55d27$Blat.v2.4$69471120@zahav.net.il> X-Yow: .. If I cover this entire WALL with MAZOLA, who I have to give my AGENT ten per cent?? Date: Fri, 20 May 2005 11:37:00 -0000 In-Reply-To: <01c55d27$Blat.v2.4$69471120@zahav.net.il> (Eli Zaretskii's message of "Fri, 20 May 2005 13:32:47 +0300") Message-ID: User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-05/txt/msg00207.txt.bz2 "Eli Zaretskii" writes: >> Date: Thu, 19 May 2005 15:00:52 +0200 >> From: Johan Rydberg >> Cc: gdb@sources.redhat.com >> >> + add_com ("rnext", class_run, rnext_command, >> + "Step program until it reaches the previous source line.\n\ > > "Go backwards until the program reaches the source line before the > current one." The beginning or any part of the source line? While the latter is easy to determine (just step until the source line changes), the former is not very well defined, since the code for a source line can be intermixed with code from other source lines. On the other hand, just stepping until the source line changes is not very useful, since in extreme case you'll just step back a single insn if the previous command was a forward step and you won't really undo much of this step. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."