2009-11-10 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 10 Nov 2009 11:14:38 +0000 (11:14 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 10 Nov 2009 11:14:38 +0000 (11:14 +0000)
commit7d2552b4b66cc5a0cfd48526a6960bbfcdf9598f
tree83577a2281a4c58f0f2571db0112e77406ad0fc9
parent8a1d23b2abc7fecd3991624276fb76f2b2d1dbfb
2009-11-10  Tristan Gingold  <gingold@adacore.com>

* avr-tdep.c: Add AVR_PSEUDO_PC_REGNUM and AVR_NUM_PSEUDO_REGS.
(struct gdbarch_tdep): Add void_type, func_void_type and pc_type
fields.
(avr_register_name): Add "pc" name, renames "PC" to "PC2".
(avr_register_type): Handle AVR_PSEUDO_PC_REGNUM.
(avr_write_pc): Fix indentation.
(avr_pseudo_register_read): New function.
(avr_pseudo_register_write): New function.
(avr_frame_prev_register): Handle AVR_PSEUDO_PC_REGNUM.
(avr_gdbarch_init): Create types for pc.  Register pseudo regs.
gdb/ChangeLog
gdb/avr-tdep.c