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 | e7faf938594c703cb898154f1eed5278163eb2ec (patch) | |
tree | fdd0995d0dfa307254f0e07ce13154e6d0f4315c /gdb/gdbarch.c | |
parent | cdfeee4f478cdd6961e4c208a0acc6d03e564eb0 (diff) | |
download | gdb-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/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index b3d8284..bfde685 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -290,7 +290,7 @@ struct gdbarch startup_gdbarch = default_print_registers_info, /* print_registers_info */ 0, /* print_float_info */ 0, /* print_vector_info */ - 0, /* register_sim_regno */ + legacy_register_sim_regno, /* register_sim_regno */ cannot_register_not, /* cannot_fetch_register */ cannot_register_not, /* cannot_store_register */ 0, /* get_longjmp_target */ @@ -1799,7 +1799,7 @@ gdbarch_register_sim_regno (struct gdbarch *gdbarch, int reg_nr) gdb_assert (gdbarch->register_sim_regno != NULL); if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_register_sim_regno called\n"); - return gdbarch->register_sim_regno (reg_nr); + return gdbarch->register_sim_regno (gdbarch, reg_nr); } void |