From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4266 invoked by alias); 29 Nov 2001 21:45:51 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4187 invoked from network); 29 Nov 2001 21:45:46 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by hostedprojects.ges.redhat.com with SMTP; 29 Nov 2001 21:45:46 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 94D0B3DE8; Thu, 29 Nov 2001 16:45:44 -0500 (EST) Message-ID: <3C06AC88.50403@cygnus.com> Date: Mon, 19 Nov 2001 18:25:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: Kevin Buettner Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA] ppc-linux-nat.c: Don't use regmap[] anymore. References: <15362.34742.58613.695856@krustylu.cygnus.com> <1011129205738.ZM19235@ocotillo.lan> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00353.txt.bz2 > On Nov 26, 1:19pm, Elena Zannoni wrote: > > >> 2001-11-26 Elena Zannoni >> >> * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h. >> >> * ppc-tdep.h (PPC_GPLAST_REGNUM): Define. >> >> * ppc-linux-nat.c: Include ppc-tdep.h. >> (ppc_register_u_addr): Don't use the static array regmap[], >> dynamically define the mapping instead. >> (supply_gregset): Ditto. >> (fill_gregset): Ditto. >> (COPY_REG): Delete macro defintion. >> (regmap): Delete array. > > > Now that I've seen Elena's WIP patch, I understand the reasons for doing > this. I suspect a few more targets could do with the same treatment. Eliminating that hardwired regmap[] would probably help a few more targets. Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Kevin Buettner Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA] ppc-linux-nat.c: Don't use regmap[] anymore. Date: Thu, 29 Nov 2001 13:45:00 -0000 Message-ID: <3C06AC88.50403@cygnus.com> References: <15362.34742.58613.695856@krustylu.cygnus.com> <1011129205738.ZM19235@ocotillo.lan> X-SW-Source: 2001-11/msg00568.html Message-ID: <20011129134500.NbeVRCzwleR0kgLgBVZenHbO7ZMxxvZKiitvyjD_DWI@z> > On Nov 26, 1:19pm, Elena Zannoni wrote: > > >> 2001-11-26 Elena Zannoni >> >> * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h. >> >> * ppc-tdep.h (PPC_GPLAST_REGNUM): Define. >> >> * ppc-linux-nat.c: Include ppc-tdep.h. >> (ppc_register_u_addr): Don't use the static array regmap[], >> dynamically define the mapping instead. >> (supply_gregset): Ditto. >> (fill_gregset): Ditto. >> (COPY_REG): Delete macro defintion. >> (regmap): Delete array. > > > Now that I've seen Elena's WIP patch, I understand the reasons for doing > this. I suspect a few more targets could do with the same treatment. Eliminating that hardwired regmap[] would probably help a few more targets. Andrew