From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26500 invoked by alias); 5 Oct 2004 13:29:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26483 invoked from network); 5 Oct 2004 13:29:08 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 5 Oct 2004 13:29:08 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i95DT3UH003754 for ; Tue, 5 Oct 2004 09:29:08 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i95DSpr11633; Tue, 5 Oct 2004 09:28:57 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A51B328D2; Tue, 5 Oct 2004 09:28:37 -0400 (EDT) Message-ID: <4162A185.2070409@gnu.org> Date: Tue, 05 Oct 2004 13:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: Fabian Cenedese Cc: gdb@sources.redhat.com Subject: Re: View registers from stack frames References: <5.2.0.9.1.20041005142840.01d03818@NT_SERVER> In-Reply-To: <5.2.0.9.1.20041005142840.01d03818@NT_SERVER> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00082.txt.bz2 > Hi > > With the stack commands (frame, up, down) I can select a different > stack frame. Local variables and arguments (even with same name) > have different values, depending on the stack frame number. But it > seems that registers aren't corrected for previous stack frames. Is > this correct? e.g. the PC and LR should change their value on every > frame, and the PC was the last LR. But "info reg" always shows the > same values. Is there any way to get the previous frame's registers? > > When I do "info frame x" I get something like "saved pc 0x..." so at > least this information is available, why isn't this put into the register > overview? And what about the other SPRs and GPRs? You've just described the expected and correct behavior. That makes it sound like an architecture specific bug. Which architecture system is this on, and can you post a transcript. Andrew