summaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-03 02:02:24 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-03 02:02:24 +0000
commit462fcd8b713a37c4cc29266d76b577ed6fe55031 (patch)
treebeef432ac78cf0e3626b885d9ca4502daf54ce8d /gdb/regcache.c
parenta952cfacbaa895cbc660e8becb4ad98306c3ae4b (diff)
downloadgdb-462fcd8b713a37c4cc29266d76b577ed6fe55031.tar.gz
2004-08-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (deprecated_register_bytes): Delete. * gdbarch.h, gdbarch.c: Re-generate. * regcache.c (deprecated_register_bytes): New function. * regcache.h (deprecated_register_bytes): Declare. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sh64-tdep.c (sh64_gdbarch_init): Update. * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * remote.c (init_remote_state): Update. * remote-vx.c (vx_prepare_to_store): Update. * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update. * irix5-nat.c (fetch_core_registers): Update. * cris-tdep.c (cris_register_bytes_ok): Update. * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index ccc82a35316..d933d59c748 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -943,6 +943,14 @@ register_offset_hack (struct gdbarch *gdbarch, int regnum)
return descr->register_offset[regnum];
}
+/* Hack to keep code using register_bytes working. */
+
+int
+deprecated_register_bytes (void)
+{
+ return current_regcache->descr->sizeof_raw_registers;
+}
+
/* Return the contents of register REGNUM as an unsigned integer. */
ULONGEST