diff options
author | Markus Deuling <deuling@de.ibm.com> | 2007-11-19 05:06:24 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2007-11-19 05:06:24 +0000 |
commit | 491c0a0433791f6eb9317450f2be2a5be330c64c (patch) | |
tree | 3be78bb03a4436b3cbca742d8a84a4d651733a1b /gdb/mips-tdep.c | |
parent | 63e96df41108df00cce03eed8bd27c08a28b0a49 (diff) | |
download | gdb-491c0a0433791f6eb9317450f2be2a5be330c64c.tar.gz |
2007-11-19 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.
* arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
* score-tdep.c (score_register_sim_regno): Likewise.
* sim-regno.h (one2one_register_sim_regno): Likewise.
* arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
Replace current_gdbarch by gdbarch.
* sh-tdep.c (sh_sh2a_register_sim_regno)
(sh_dsp_register_sim_regno): Likewise.
* rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
* mips-tdep.c (mips_register_sim_regno): Likewise.
* m32c-tdep.c (m32c_register_sim_regno): Likewise.
* frv-tdep.c (frv_register_sim_regno): Likewise.
* arm-tdep.c (arm_register_sim_regno): Likewise.
* remote-sim.c (one2one_register_sim_regno): Likewise.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 54202cab946..6df6c616b6b 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4982,19 +4982,17 @@ mips_dwarf_dwarf2_ecoff_reg_to_regnum (int num) } static int -mips_register_sim_regno (int regnum) +mips_register_sim_regno (struct gdbarch *gdbarch, int regnum) { /* Only makes sense to supply raw registers. */ - gdb_assert (regnum >= 0 && regnum < gdbarch_num_regs (current_gdbarch)); + gdb_assert (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch)); /* FIXME: cagney/2002-05-13: Need to look at the pseudo register to decide if it is valid. Should instead define a standard sim/gdb register numbering scheme. */ - if (gdbarch_register_name (current_gdbarch, - gdbarch_num_regs - (current_gdbarch) + regnum) != NULL - && gdbarch_register_name (current_gdbarch, - gdbarch_num_regs - (current_gdbarch) + regnum)[0] != '\0') + if (gdbarch_register_name (gdbarch, + gdbarch_num_regs (gdbarch) + regnum) != NULL + && gdbarch_register_name (gdbarch, + gdbarch_num_regs (gdbarch) + regnum)[0] != '\0') return regnum; else return LEGACY_SIM_REGNO_IGNORE; |