From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19099 invoked by alias); 20 May 2005 18:14:25 -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 19037 invoked from network); 20 May 2005 18:14:21 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 20 May 2005 18:14:21 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DZC0l-0000kV-8B; Fri, 20 May 2005 14:14:15 -0400 Date: Fri, 20 May 2005 18:14:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: [discuss] Support for reverse-execution Message-ID: <20050520181415.GB2499@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Vladimir Prus , gdb@sources.redhat.com References: <00c601c55747$860a3e80$aaa56b80@msnyder8600> <01c55d54$Blat.v2.4$50872f80@zahav.net.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c55d54$Blat.v2.4$50872f80@zahav.net.il> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00226.txt.bz2 On Fri, May 20, 2005 at 06:54:13PM +0300, Eli Zaretskii wrote: > > From: Vladimir Prus > > Date: Fri, 20 May 2005 18:45:22 +0400 > > > > Would not it be better to have a single "reverse" command which puts the > > debugger in "reverse" mode -- making step/stepi/next/nexti go backward. > > Daniel, I rest my case ;-) I don't rest mine :-) I admit I was a little surprised to see someone else suggest it, but I still think it's an awful idea as a user interface. While the "gear" switch is clever, a GUI might still want to use different icons for "next" and "rnext". And whichever way the GDB CLI and MI interfaces expose this functionality, a GUI can just as easily reuse the same buttons for both. The only advantage I see would be letting a GUI support it without having to know that the feature exists, by passing a command to GDB and then using the existing buttons. Seems of dubious use. I don't know yet whether direction during a debugging session is going to be persistant or frequently changing. Only one way to find out... -- Daniel Jacobowitz CodeSourcery, LLC