diff options
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index ccc82a3..d933d59 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 |