diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-08-02 11:05:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-08-02 11:05:50 +0000 |
commit | 7c7651b2d060887a0feadc50f525a8dfa5c24611 (patch) | |
tree | 557ed39ef3a4c117ebed2e01ee707888d34d0eb6 /gdb/gdbarch.h | |
parent | 8e2481732f9f81db319019e749a74dab370c0f0c (diff) | |
download | gdb-7c7651b2d060887a0feadc50f525a8dfa5c24611.zip gdb-7c7651b2d060887a0feadc50f525a8dfa5c24611.tar.gz gdb-7c7651b2d060887a0feadc50f525a8dfa5c24611.tar.bz2 |
Multi-arch REGISTER_SIM_REGNO. Update d10v.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 2077048..64b0368 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -410,6 +410,23 @@ extern void set_gdbarch_do_registers_info (struct gdbarch *gdbarch, gdbarch_do_r #endif #endif +/* MAP a GDB RAW register number onto a simulator register number. See + also include/...-sim.h. */ + +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (REGISTER_SIM_REGNO) +#define REGISTER_SIM_REGNO(reg_nr) (default_register_sim_regno (reg_nr)) +#endif + +typedef int (gdbarch_register_sim_regno_ftype) (int reg_nr); +extern int gdbarch_register_sim_regno (struct gdbarch *gdbarch, int reg_nr); +extern void set_gdbarch_register_sim_regno (struct gdbarch *gdbarch, gdbarch_register_sim_regno_ftype *register_sim_regno); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (REGISTER_SIM_REGNO) +#define REGISTER_SIM_REGNO(reg_nr) (gdbarch_register_sim_regno (current_gdbarch, reg_nr)) +#endif +#endif + extern int gdbarch_use_generic_dummy_frames (struct gdbarch *gdbarch); extern void set_gdbarch_use_generic_dummy_frames (struct gdbarch *gdbarch, int use_generic_dummy_frames); #if GDB_MULTI_ARCH |