From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27796 invoked by alias); 5 Sep 2003 22:44:17 -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 27787 invoked from network); 5 Sep 2003 22:44:16 -0000 Received: from unknown (HELO hydra.ubicom.com) (4.20.168.98) by sources.redhat.com with SMTP; 5 Sep 2003 22:44:16 -0000 Received: FROM fenway.scenix.com BY hydra.ubicom.com ; Fri Sep 05 15:44:13 2003 -0700 Received: from nkelseyxp2 (NKELSEY-XP2 [192.168.1.187]) by fenway.scenix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id S2N28GLF; Fri, 5 Sep 2003 15:44:13 -0700 Message-ID: <003301c373ff$3a923160$0502a8c0@scenix.com> From: "Jafa" To: Subject: FP vs SP Date: Fri, 05 Sep 2003 22:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-09/txt/msg00077.txt.bz2 Hi all, I recently updated the ip2k gdb port to use the new frame handling support in gdb. It can reliably do a stack backtrace and can reliably step-over etc. The one problem is that all local variables show up as garbage. I have looked into this and it seams that GDB is using the frame-pointer (aka SP as at the entry point of the function) as the reference point for the stack offset of the local variables. Is this correct or have I screwed up something in my frame handling code? Looking at the stabs information coming out of gcc (2.97) the offsets are all specified as being relative to the nominal SP (stack pointer at the start of any c-line)... is this correct or should it be giving FP relative addresses? I would appreciate any advice. Thanks Nick