From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17052 invoked by alias); 22 Oct 2008 17:09:48 -0000 Received: (qmail 17041 invoked by uid 22791); 22 Oct 2008 17:09:47 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (194.72.81.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Oct 2008 17:09:12 +0000 Received: from ALBATROSS ([192.168.1.150]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 22 Oct 2008 18:09:09 +0100 From: "Dave Korn" To: "'teawater'" , "'Daniel Jacobowitz'" , "'Jakob Engblom'" , "'Michael Snyder'" , References: <48FBDA34.6020104@vmware.com> <007e01c9334e$aad56ff0$00804fd0$@com> <20081022133716.GA10237@caradoc.them.org> Subject: RE: [discuss] semantics, "replay debugging" vs. "reverse debugging" Date: Wed, 22 Oct 2008 17:09:00 -0000 Message-ID: <005b01c93468$e64f2740$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: 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/msg00087.txt.bz2 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....