This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]