From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29924 invoked by alias); 31 Aug 2010 20:03:03 -0000 Received: (qmail 29624 invoked by uid 22791); 31 Aug 2010 20:03:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 20:02:55 +0000 Received: (qmail 31655 invoked from network); 31 Aug 2010 20:02:53 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Aug 2010 20:02:53 -0000 From: Pedro Alves To: Marc Khouzam Subject: Re: Different output from -gdb-show than show Date: Tue, 31 Aug 2010 20:03:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: "'Michael Snyder'" , "'gdb@sourceware.org'" References: <4C7D58D5.4010907@vmware.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008312102.50990.pedro@codesourcery.com> 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: 2010-08/txt/msg00185.txt.bz2 On Tuesday 31 August 2010 20:39:51, Marc Khouzam wrote: > > -----Original Message----- > > From: gdb-owner@sourceware.org > > [mailto:gdb-owner@sourceware.org] On Behalf Of Michael Snyder > > Sent: Tuesday, August 31, 2010 3:33 PM > > To: Pedro Alves > > Cc: gdb@sourceware.org; Marc Khouzam > > Subject: Re: Different output from -gdb-show than show > > > > Pedro Alves wrote: > > > > > Note "Forward." vs "forward". > > > > > >> 2010-08-31 Michael Snyder > > > > >> > > >> * infrun.c (set_exec_direction_func): Error out if > > target does not > > >> support reverse execution. > > > > > > Okay. > > > > Thanks, applied to trunk and branch. > > Thanks guys! > > Here is what I'm planning to do to see if a target supports reverse > execution: > > -gdb-set exec-direction reverse > show exec-direction > -gdb-set exec-direction forward > > If the 'show' command shows "Reverse", I'll know that the target > supports reverse execution. (I have to do it like this because > I also want it to work for 7.0 and 7.1) > > That is the only thing I found that gave me that info without > side-effects. Makes sense? Yes. You may want to issue an "-gdb-set exec-direction forward" upfront to clean up any stale state from a previous run/target as well... Also, it may wreck havoc in non-stop if the target is already executing... I think listing support for reverse in "-list-target-features" would be nice? -- Pedro Alves