From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21448 invoked by alias); 9 Oct 2005 20:27:30 -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 21436 invoked by uid 22791); 9 Oct 2005 20:27:28 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 09 Oct 2005 20:27:28 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1EOhlW-00025V-M3; Sun, 09 Oct 2005 16:27:26 -0400 Date: Sun, 09 Oct 2005 20:27:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: gdb-patches@sourceware.org Subject: Re: RFA: general prologue analysis framework Message-ID: <20051009202726.GE7107@nevyn.them.org> Mail-Followup-To: Jim Blandy , gdb-patches@sourceware.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00080.txt.bz2 On Thu, Oct 06, 2005 at 04:51:11PM -0700, Jim Blandy wrote: > If folks are interested, I can post the m32c prologue analyzer that > uses these functions, as an example of how they can be used. > > 2005-10-06 Jim Blandy > > * prologue-value.c, prologue-value.h: New files. > * Makefile.in (prologue_value_h): New variable. > (HFILES_NO_SRCDIR): List prologue-value.h. > (ALLDEPFILES): List prologue-value.c. > (prologue-value.o): New rule. I like the idea. I'd love to see the m32c example. The arithmetic is easy to grasp, but the choices you made for memory (and the special-case for array references) are a lot less obvious without some more context. I have a half-baked feeling that the exported interface is at a bad level of abstraction, i.e. that too much generic code will end up crammed into the tdep files. But I don't have any evidence to back that up. This all screams out to me that we ought to be able to generate most of the target-specific bits from cgen or somehow reuse existing simulator interfaces. Now that'd be extra credit. -- Daniel Jacobowitz CodeSourcery, LLC