2002-08-19 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Aug 2002 23:21:16 +0000 (23:21 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 19 Aug 2002 23:21:16 +0000 (23:21 +0000)
commit489461e2aa400b4d4e51d6d6d5b9c4a1513d1e8e
treeaf1449438b363acd0fb021afb3112f17c15a6d8f
parent2c2738a0e0b459fdbf385972b2820e6cfcb0324d
2002-08-19  Elena Zannoni  <ezannoni@redhat.com>

* rs6000-tdep.c (struct reg): Add field to indicate a pseudo
register.
(P): New macro to define a register as a pseudo register.
(R, R4, R8, R16, FR32, R64, R0): Updated.
(struct variant): Add new fields for number of pseudo registers
and number of total registers.
(tot_num_registers): New macro replacing....
(num_registers): ...deleted macro.
(num_registers): New function.
(num_pseudo_registers): New function.
(variants): Update all variants to intialize new fields correctly.
Postpone initialization of number of pseudo regs and real regs.
(init_variants): New function.
(rs6000_gdbarch_init): Initialize variants.  Update calculation of
registers offsets.
gdb/ChangeLog
gdb/rs6000-tdep.c