diff options
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index b987a2f..70a198b 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -222,10 +222,9 @@ unmake_mips16_addr (CORE_ADDR addr) static LONGEST read_signed_register (int regnum) { - void *buf = alloca (register_size (current_gdbarch, regnum)); - deprecated_read_register_gen (regnum, buf); - return (extract_signed_integer - (buf, register_size (current_gdbarch, regnum))); + LONGEST val; + regcache_cooked_read_signed (current_regcache, regnum, &val); + return val; } static LONGEST |