From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22559 invoked by alias); 31 Aug 2010 19:08:11 -0000 Received: (qmail 22551 invoked by uid 22791); 31 Aug 2010 19:08:10 -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 19:08:02 +0000 Received: (qmail 24840 invoked from network); 31 Aug 2010 19:08:00 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Aug 2010 19:08:00 -0000 From: Pedro Alves To: Michael Snyder Subject: Re: Different output from -gdb-show than show Date: Tue, 31 Aug 2010 19:08:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: "gdb@sourceware.org" , Marc Khouzam References: <201008311940.55038.pedro@codesourcery.com> <4C7D51EA.9020701@vmware.com> In-Reply-To: <4C7D51EA.9020701@vmware.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008312007.57425.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/msg00179.txt.bz2 On Tuesday 31 August 2010 20:03:06, Michael Snyder wrote: > Pedro Alves wrote: > > On Tuesday 31 August 2010 19:33:17, Michael Snyder wrote: > > > >> Would this be suitable? > > > > You also need to reset exec_direction back from execution_direction > > in set_exec_direction_func. The set command callbacks are called _after_ > > their controlled variable has already been changed. See > > infrun.c:set_non_stop, for example. > > > > Hmmm, but "exec_direction" doesn't actually seem to be used anywhere. > > I did try this patch, and after failing to set "reverse", it > still shows "Forward". > > What am I missing? That "-gdb-show exec-direction" reads from exec_direction. See Marc's original bug report upthread. :-) -- Pedro Alves