From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25098 invoked by alias); 16 Jul 2009 03:05:53 -0000 Received: (qmail 25090 invoked by uid 22791); 16 Jul 2009 03:05:52 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f200.google.com (HELO mail-pz0-f200.google.com) (209.85.222.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jul 2009 03:05:42 +0000 Received: by pzk38 with SMTP id 38so2534328pzk.10 for ; Wed, 15 Jul 2009 20:05:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.155.13 with SMTP id c13mr2027545wfe.326.1247713541058; Wed, 15 Jul 2009 20:05:41 -0700 (PDT) In-Reply-To: <19035.57129.173542.368393@totara.tehura.co.nz> References: <19035.54231.157231.624882@totara.tehura.co.nz> <4A5BD5F3.1090103@vmware.com> <19035.57129.173542.368393@totara.tehura.co.nz> From: Hui Zhu Date: Thu, 16 Jul 2009 03:05:00 -0000 Message-ID: Subject: Re: Reverse debugging To: Nick Roberts Cc: Michael Snyder , "gdb@sources.redhat.com" Content-Type: text/plain; charset=ISO-8859-1 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-07/txt/msg00098.txt.bz2 On Tue, Jul 14, 2009 at 09:28, Nick Roberts wrote: > =A0> That's because target exec does not support reverse, > =A0> but target record does. =A0Reverse is also potentially > =A0> supported under target remote, depending on what remote > =A0> target you're connected to. > =A0> > =A0> > In the "Reverse Execution" node of the GDB manual it talks about > =A0> > "a target environment that supports reverse execution" but doesn't= clarify > =A0> > what those targets are. =A0The node "Process Record and Replay" co= mes next > =A0> > in the manual but these two seem to be inimately related. > =A0> > =A0> Process record (target record) is one of a small number of > =A0> targets that currently support reverse debugging. =A0The others, > =A0> so far, are all remote targets (eg. SID from Red Hat, and > =A0> Simics from Virtutech). > =A0>... > > Thanks for these answers, I find them more lucid than the manual. =A0If I= try > to reverse a remote target using gdbserver (actually on host/local machin= e - > x86_64 this time), I'm not told that the target doesn't support this comm= and > but reverse-next works just like next until I hit a function: > > (gdb) reverse-next > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x0000000000400521 in printf@plt () > Current language: =A0auto; currently asm > (gdb) Looks like you use an old gdb-cvs version with amd64,right? 1. Please use the head version of gdb. It will tell you that amd64 doesn't support prec now. 2. You can try the patch that I post to make gdb support amd64. You can get the link and other message from http://sourceware.org/gdb/wiki/ReversibleDebugging Thanks, Hui