From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20256 invoked by alias); 14 Jul 2009 01:28:19 -0000 Received: (qmail 20246 invoked by uid 22791); 14 Jul 2009 01:28:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jul 2009 01:28:13 +0000 Received: from totara (16.60.255.123.dynamic.snap.net.nz [123.255.60.16]) by viper.snap.net.nz (Postfix) with ESMTP id 917CA3DA2E4; Tue, 14 Jul 2009 13:28:10 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 3145DC159; Tue, 14 Jul 2009 13:28:09 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19035.57129.173542.368393@totara.tehura.co.nz> Date: Tue, 14 Jul 2009 01:28:00 -0000 To: Michael Snyder Cc: "gdb@sources.redhat.com" Subject: Re: Reverse debugging In-Reply-To: <4A5BD5F3.1090103@vmware.com> References: <19035.54231.157231.624882@totara.tehura.co.nz> <4A5BD5F3.1090103@vmware.com> From: nickrob@snap.net.nz (Nick Roberts) 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/msg00091.txt.bz2 > That's because target exec does not support reverse, > but target record does. Reverse is also potentially > supported under target remote, depending on what remote > target you're connected to. > > > In the "Reverse Execution" node of the GDB manual it talks about > > "a target environment that supports reverse execution" but doesn't clarify > > what those targets are. The node "Process Record and Replay" comes next > > in the manual but these two seem to be inimately related. > > Process record (target record) is one of a small number of > targets that currently support reverse debugging. The others, > so far, are all remote targets (eg. SID from Red Hat, and > Simics from Virtutech). >... Thanks for these answers, I find them more lucid than the manual. If I try to reverse a remote target using gdbserver (actually on host/local machine - x86_64 this time), I'm not told that the target doesn't support this command 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: auto; currently asm (gdb) -- Nick http://www.inet.net.nz/~nickrob