From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7310 invoked by alias); 5 Sep 2003 23:08:45 -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 7301 invoked from network); 5 Sep 2003 23:08:44 -0000 Received: from unknown (HELO hydra.ubicom.com) (4.20.168.98) by sources.redhat.com with SMTP; 5 Sep 2003 23:08:44 -0000 Received: FROM fenway.scenix.com BY hydra.ubicom.com ; Fri Sep 05 16:08:43 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 S2N28GNS; Fri, 5 Sep 2003 16:08:43 -0700 Message-ID: <004f01c37402$a6a6c610$0502a8c0@scenix.com> From: "Jafa" To: "Daniel Jacobowitz" Cc: References: <003301c373ff$3a923160$0502a8c0@scenix.com> <20030905230319.GA30712@nevyn.them.org> Subject: Re: FP vs SP Date: Fri, 05 Sep 2003 23:08: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/msg00079.txt.bz2 Ah, I see it now - thanks! Nick ----- Original Message ----- From: "Daniel Jacobowitz" To: "Jafa" Cc: Sent: Friday, September 05, 2003 4:03 PM Subject: Re: FP vs SP > *This message was transferred with a trial version of CommuniGate(tm) Pro* > On Fri, Sep 05, 2003 at 03:44:13PM -0700, Jafa wrote: > > 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? > > You can control what GDB does here by defining a frame base method - > see frame-base.h. Probably you've changed the meaning of > get_frame_locals_address (). > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer > >