aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2007-11-19 05:06:24 +0000
committerMarkus Deuling <deuling@de.ibm.com>2007-11-19 05:06:24 +0000
commite7faf938594c703cb898154f1eed5278163eb2ec (patch)
treefdd0995d0dfa307254f0e07ce13154e6d0f4315c /gdb/arch-utils.c
parentcdfeee4f478cdd6961e4c208a0acc6d03e564eb0 (diff)
downloadgdb-e7faf938594c703cb898154f1eed5278163eb2ec.zip
gdb-e7faf938594c703cb898154f1eed5278163eb2ec.tar.gz
gdb-e7faf938594c703cb898154f1eed5278163eb2ec.tar.bz2
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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index c56b983..17d3ee7 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -38,16 +38,16 @@
int
-legacy_register_sim_regno (int regnum)
+legacy_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));
/* NOTE: cagney/2002-05-13: The old code did it this way and it is
suspected that some GDB/SIM combinations may rely on this
behavour. The default should be one2one_register_sim_regno
(below). */
- if (gdbarch_register_name (current_gdbarch, regnum) != NULL
- && gdbarch_register_name (current_gdbarch, regnum)[0] != '\0')
+ if (gdbarch_register_name (gdbarch, regnum) != NULL
+ && gdbarch_register_name (gdbarch, regnum)[0] != '\0')
return regnum;
else
return LEGACY_SIM_REGNO_IGNORE;