From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28172 invoked by alias); 14 Jul 2009 00:40:03 -0000 Received: (qmail 28121 invoked by uid 22791); 14 Jul 2009 00:40:02 -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 00:39:55 +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 70B303DA24B for ; Tue, 14 Jul 2009 12:39:52 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 396FDC159; Tue, 14 Jul 2009 12:39:51 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19035.54231.157231.624882@totara.tehura.co.nz> Date: Tue, 14 Jul 2009 00:40:00 -0000 To: gdb@sources.redhat.com Subject: Reverse debugging 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/msg00089.txt.bz2 On i386, with current GDB, if I do: (gdb) reverse-next I get: Target child does not support this command. However if I do: (gdb) target record first, and proceed, then "reverse-next" does indeed work as I would expect. 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. Is it possible to reverse debug without doing "target record" first? If not then I think "Reverse Execution" should be a sub-node of "Process Record and Replay". In any case it would be helpful to mention "target record" in the "Reverse Execution" node if most platforms don't support reverse execution outside record and replay. Is there a GDB command that shows if process recording is started/stopped? "target record" doesn't appear to influence the output of 'info target". -- Nick http://www.inet.net.nz/~nickrob