[RFA] ppc-linux-nat.c: Don't use regmap[] anymore.

Andrew Cagney ac131313@cygnus.com
Mon Nov 19 18:25:00 GMT 2001


> On Nov 26,  1:19pm, Elena Zannoni wrote:
> 
> 
>> 2001-11-26  Elena Zannoni  <ezannoni@redhat.com>
>> 
>> * 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




More information about the Gdb-patches mailing list