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