From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17987 invoked by alias); 21 Jul 2003 21:23:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17964 invoked from network); 21 Jul 2003 21:23:19 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 21 Jul 2003 21:23:19 -0000 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19ei7r-00016c-00 for ; Mon, 21 Jul 2003 17:23:19 -0400 Date: Mon, 21 Jul 2003 21:23:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: RFA symtab: Fix for PR c++/1267 ("next" and shared libraries) Message-ID: <20030721212318.GA3763@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20030719181817.GA11670@nevyn.them.org> <3F1C1254.2070007@redhat.com> <20030721162750.GA6754@nevyn.them.org> <3F1C2F6A.30607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F1C2F6A.30607@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00381.txt.bz2 On Mon, Jul 21, 2003 at 02:22:34PM -0400, Andrew Cagney wrote: > > > >No, really, I still think that the comment is wrong. The get_frame_id > >call triggers the prologue analyzer to analyze the NEXT frame. I.E. > >this_id is called with the NEXT frame, and THIS cache. > > Nope. get_frame_id triggers the analysis of THIS frame's prologue (i.e., > next_frame & this_cache). > > >The call to frame_pc_unwind uses THIS frame and creates the PREV cache. > >It's one frame off on the stack. The frame it would be saving from > >prologue analysis is not the one we'd need to analyze for the > >get_frame_id call. > > Nope. frame_pc_unwind would turn into frame_register_unwind (this, > PC_REGNUM) and that will also trigger the analysis of THIS frame's > prologue (i.e., next_frame & this_cache). Ah, I see where I was confused. Thanks. I really need to spend more time looking at this. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer