* mips-tdep.c (read_signed_register): Use
regcache_cooked_read_signed.
+2004-10-30 Andrew Cagney <cagney@gnu.org>
+
+ * mips-tdep.c (read_signed_register): Use
+ regcache_cooked_read_signed.
+
2004-10-30 Mark Kettenis <kettenis@gnu.org>
* mipsread.c: Cleanup coding style.
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