From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14838 invoked by alias); 28 Feb 2009 08:15:18 -0000 Received: (qmail 14826 invoked by uid 22791); 28 Feb 2009 08:15:17 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from dns.vtab.com (HELO oden.vtab.com) (62.20.90.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 Feb 2009 08:15:10 +0000 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id 729B326EF23; Sat, 28 Feb 2009 09:15:07 +0100 (CET) Received: from polhem (unknown [62.20.90.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oden.vtab.com (Postfix) with ESMTP id C87EA26EEB6; Sat, 28 Feb 2009 09:15:06 +0100 (CET) From: "Jakob Engblom" To: "'lehe'" , References: <22258432.post@talk.nabble.com> In-Reply-To: <22258432.post@talk.nabble.com> Subject: RE: Edit-and-Continue and running-backward Date: Sat, 28 Feb 2009 08:15:00 -0000 Message-ID: <005701c9997c$ac7c9510$0575bf30$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: 2009-02/txt/msg00174.txt.bz2 > 2. How to get the ability to run programs backward? What is "target > environment" in this description "If the target environment supports it, = gdb > can allow you to =E2=80=9Crewind=E2=80=9D the program by running it backw= ard" and how to > make my target environment support it? I am programming sometimes in Linux > with emacs or with IDE Code::Blocks. There is some kind of work on "record and replay" for user-land Linux proce= sses that Teawater is working on.=20 You can also use hte commercial VmWare and Simics tools to get full-system = reverse execution, which are available today. Both work with any gdb-remot= e-based system.=20 Note that edit-and-continue cannot reasonably be combined with reverse exec= ution: what would it mean to back through an execution trace where you chan= ge the code underlying it? You could reasonably back up to some previous p= oint in time, do the patch, and then execute into it. However, you probably= will have to consider the point in time of the patch the staring point of = your reversible session -- unless the execution substrate can remember and = redo and undo the patch as you execute over the patch point in time.=20 Best regards, /jakob _______________________________________________________ Jakob Engblom, PhD, Technical Marketing Manager Virtutech Direct: +46 8 690 07 47=20=20=20 Drottningholmsv=C3=A4gen 22 Mobile: +46 709 242 646=20=20 11243 Stockholm Web: www.virtutech.com=20 Sweden ________________________________________________________ =20=20