From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21650 invoked by alias); 8 Oct 2004 08:54:41 -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 21638 invoked from network); 8 Oct 2004 08:54:39 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 8 Oct 2004 08:54:39 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i988sclg023079 for ; Fri, 8 Oct 2004 10:54:39 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Fri, 08 Oct 2004 10:53:01 +0200 Message-Id: <5.2.0.9.1.20041008105008.01d72828@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Fri, 08 Oct 2004 10:14:00 -0000 To: From: Fabian Cenedese Subject: Re: View registers from stack frames In-Reply-To: <20041007085738.45b5b55a@saguaro> References: <5.2.0.9.1.20041007134711.01d12d90@NT_SERVER> <5.2.0.9.1.20041007134711.01d12d90@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-10/txt/msg00243.txt.bz2 >> In frame 0 pc and lr are correct (different), but in the other frames >> they always have the same value whereas lr should have the >> value of the pc of the next frame, right? > >Recent versions of GDB show the same value for lr and pc for the later >frames. I think this is okay. > >Kevin I have only tested the --target=powerpc-eabi version so I don't know about other processors. Is this true that gdb is supposed to show pc and lr with the same values for stack frames >0? Isn't the purpose of the lr to point to the previous stack frame (and so be different from the actual pc)? And if the actual behaviour is correct then why is it different for frame 0? Thanks bye Fabi