From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21606 invoked by alias); 22 Oct 2008 17:19:01 -0000 Received: (qmail 21598 invoked by uid 22791); 22 Oct 2008 17:19:00 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.187) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Oct 2008 17:18:25 +0000 Received: by ti-out-0910.google.com with SMTP id d10so1578727tib.12 for ; Wed, 22 Oct 2008 10:18:22 -0700 (PDT) Received: by 10.110.37.3 with SMTP id k3mr7171423tik.13.1224695902193; Wed, 22 Oct 2008 10:18:22 -0700 (PDT) Received: by 10.110.42.9 with HTTP; Wed, 22 Oct 2008 10:18:22 -0700 (PDT) Message-ID: Date: Wed, 22 Oct 2008 17:19:00 -0000 From: teawater To: "Dave Korn" Subject: Re: [discuss] semantics, "replay debugging" vs. "reverse debugging" Cc: "Daniel Jacobowitz" , "Jakob Engblom" , "Michael Snyder" , gdb@sourceware.org In-Reply-To: <005b01c93468$e64f2740$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48FBDA34.6020104@vmware.com> <007e01c9334e$aad56ff0$00804fd0$@com> <20081022133716.GA10237@caradoc.them.org> <005b01c93468$e64f2740$9601a8c0@CAM.ARTIMI.COM> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00088.txt.bz2 So I just say "some insn". Not all. On Thu, Oct 23, 2008 at 01:09, Dave Korn wrote: > teawater wrote on 22 October 2008 17:43: > >> Sorry I am wrong. >> In ARM, Just adds set cpsr reg. So: >> add r0,r0,#10 >> Can reverse without record too. > > Your examples are too limited to be of practical use; almost every > instruction executed destroys information. > > It's easy to reverse "add r0,r0,#10" by subtracting 10 from r0. But how do > you reverse "add r0,r1,#10", or anything else where the source and dest > register are different? The original value of r0 is gone without trace, and > r1 was not changed by the instruction! > > > cheers, > DaveK > -- > Can't think of a witty .sigline today.... > >