a4b8ebc89d
* mips-tdep.c: Include "reggroups.h" and "sim-regno.h". (mips_register_name): Return names for NUM_REGS..2*NUM_REGS instead of 0..NUM_REGS. (mips_register_reggroup_p): New function. (mips_pseudo_register_write): New function. (mips_pseudo_register_read): New function. (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size based on the register's type. (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo / cooked. (mips_get_saved_register): Simplify. Assert that REGNO is a pseudo / cooked. (mips_register_byte): New function. Use MIPS_REGISTER_BYTE. (mips_register_type): Replace mips_register_virtual_type. Map NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE when available. (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert that the register is cooked / virtual. (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC. Only get the extra info when needed. (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well. (mips32_heuristic_proc_desc): Fetch the cooked register. (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto. (mips_init_extra_frame_info, get_frame_pointer): Ditto. (mips_print_register): Use gdbarch_register_type, instead of REGISTER_VIRTUAL_TYPE. (print_gp_register_row): Use gdbarch_register_type, instead of REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM. (mips_print_registers_info): Assert REGNO is pseodo / cooked. Print the pseudo / cooked registers. (mips_print_registers_info): Assert REGNO is pseodo / cooked. Print the pseudo / cooked registers. (mips_xfer_register): Use regcache_cooked_read_part. Assert that REG_NUM is pseudo / cooked. (mips_o32_xfer_return_value): Xfer the pseudo / cooked register. (mips_n32n64_xfer_return_value): Ditto. (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS. (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto. (mips_register_sim_regno): New function. (mips_gdbarch_init): Set deprecated_register_byte, register_group_p, pseudo_register_write, pseudo_register_read, register_sim_regno, and num_pseudo_regs. Set register_type, instead of register_virtual_type. * Makefile.in (mips-tdep.o): Update dependencies. * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename REGISTER_VIRTUAL_TYPE. * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto. * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto. * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE. * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto. * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto. |
||
---|---|---|
.. | ||
decstation.mh | ||
embed.mt | ||
embed64.mt | ||
embedl.mt | ||
embedl64.mt | ||
irix3.mh | ||
irix3.mt | ||
irix4.mh | ||
irix5.mh | ||
irix5.mt | ||
irix6.mh | ||
irix6.mt | ||
linux.mh | ||
linux.mt | ||
linux64.mt | ||
littlemips.mh | ||
mips.mt | ||
mips64.mt | ||
mipsm3.mh | ||
mipsm3.mt | ||
mipsv4.mh | ||
mipsv4.mt | ||
nbsd.mh | ||
nbsd.mt | ||
news-mips.mh | ||
nm-irix3.h | ||
nm-irix4.h | ||
nm-irix5.h | ||
nm-irix6.h | ||
nm-linux.h | ||
nm-mips.h | ||
nm-nbsd.h | ||
nm-news-mips.h | ||
nm-riscos.h | ||
riscos.mh | ||
tm-embed.h | ||
tm-irix3.h | ||
tm-irix5.h | ||
tm-irix6.h | ||
tm-linux.h | ||
tm-linux64.h | ||
tm-mips.h | ||
tm-mips64.h | ||
tm-mipsm3.h | ||
tm-mipsv4.h | ||
tm-nbsd.h | ||
tm-tx39.h | ||
tm-vxmips.h | ||
tm-wince.h | ||
tx39.mt | ||
tx39l.mt | ||
vxmips.mt | ||
wince.mt | ||
xm-irix3.h | ||
xm-irix4.h | ||
xm-irix5.h | ||
xm-irix6.h | ||
xm-linux.h | ||
xm-mips.h | ||
xm-mipsm3.h | ||
xm-mipsv4.h | ||
xm-riscos.h |