diff options
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 8cfd33b..2c9bc57 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -947,6 +947,13 @@ typedef void (gdbarch_remote_translate_xfer_address_ftype) (struct gdbarch *gdba extern void gdbarch_remote_translate_xfer_address (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR gdb_addr, int gdb_len, CORE_ADDR *rem_addr, int *rem_len); extern void set_gdbarch_remote_translate_xfer_address (struct gdbarch *gdbarch, gdbarch_remote_translate_xfer_address_ftype *remote_translate_xfer_address); +/* Return the remote protocol register number associated with this + register. Normally the identity mapping. */ + +typedef int (gdbarch_remote_register_number_ftype) (struct gdbarch *gdbarch, int regno); +extern int gdbarch_remote_register_number (struct gdbarch *gdbarch, int regno); +extern void set_gdbarch_remote_register_number (struct gdbarch *gdbarch, gdbarch_remote_register_number_ftype *remote_register_number); + /* Fetch the target specific address used to represent a load module. */ #if defined (FETCH_TLS_LOAD_MODULE_ADDRESS) |