From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1196 invoked by alias); 2 Apr 2007 02:18:23 -0000 Received: (qmail 1183 invoked by uid 22791); 2 Apr 2007 02:18:22 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Apr 2007 03:18:20 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 8F0974B267; Sun, 1 Apr 2007 21:18:17 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 71B134B262; Sun, 1 Apr 2007 21:18:17 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HYC7c-00022Y-Am; Sun, 01 Apr 2007 22:18:16 -0400 Date: Mon, 02 Apr 2007 02:18:00 -0000 From: Daniel Jacobowitz To: "Anmol P. Paralkar" Cc: gdb@sourceware.org Subject: Re: In a remote debug session, how do I get to see fresh register values each time I do a 'show all-registers'? Message-ID: <20070402021816.GA7828@caradoc.them.org> Mail-Followup-To: "Anmol P. Paralkar" , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) 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: 2007-04/txt/msg00001.txt.bz2 On Sun, Apr 01, 2007 at 08:16:39PM -0500, Anmol P. Paralkar wrote: > Hello, > I am using GDB 6.6, (ppc64-elf) to remote debug linux running > on a PowerPC simulator. I can read the values of the GPR's in > the simulator and upon a 'show all-registers', I do see that > the registers have values as expected. > However, on issuing a 'show all-registers' subsequently, I see > GDB displaying the resgister values it displayed earlier - not > the ones that the simulator now shows. What do I need to do to > force GDB to get the fresh set of register values? What has happened to change the registers? Did the program run, or are the registers changing while GDB thinks the simulator is stopped? In the first case, it's a GDB bug. In the second case, try the flushregs command. -- Daniel Jacobowitz CodeSourcery