From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15031 invoked by alias); 13 Oct 2005 18:03:51 -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 15022 invoked by uid 22791); 13 Oct 2005 18:03:49 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 13 Oct 2005 18:03:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EQ7Qe-0002Ij-4A; Thu, 13 Oct 2005 14:03:44 -0400 Date: Thu, 13 Oct 2005 18:03:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Jim Blandy , gdb-patches@sourceware.org Subject: Re: RFA: general prologue analysis framework Message-ID: <20051013180344.GA8791@nevyn.them.org> Mail-Followup-To: Ulrich Weigand , Jim Blandy , gdb-patches@sourceware.org References: <200510131748.j9DHm1eW002511@53v30g15.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510131748.j9DHm1eW002511@53v30g15.boeblingen.de.ibm.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00120.txt.bz2 On Thu, Oct 13, 2005 at 07:48:01PM +0200, Ulrich Weigand wrote: > Jim Blandy wrote: > > > It looks like your data->gpr_slot[i] array effectively serves the same > > purpose as an area. If we had generic code to scan an area and > > populate a trad_frame_cache, areas might save you code. > > Possibly, yes. I'm not sure I completely understand the pv_area code > yet -- it appears to be all based on the notion of a fixed base register; > how to you handle the situation where the base (and/or offset) used to > access the area change in the middle of the prologue? Maybe it would > be better to always base the area on the CFA ... Yeah, that's what I was thinking: define the CFA before processing any instructions, handle memory relative to that (even though we don't know its value yet), and then reverse the computation to work out the value of the actual CFA. -- Daniel Jacobowitz CodeSourcery, LLC