aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-30 15:55:36 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-30 15:55:36 +0000
commit1d93fe1a610303f5104b506afbbb87b4c875b11a (patch)
tree3c74160952781e6bead7a71e735859a766a92a23 /gdb
parent303d2914dbeb4e8cf9f9184e533c66e4f37b6205 (diff)
downloadgdb-1d93fe1a610303f5104b506afbbb87b4c875b11a.zip
gdb-1d93fe1a610303f5104b506afbbb87b4c875b11a.tar.gz
gdb-1d93fe1a610303f5104b506afbbb87b4c875b11a.tar.bz2
2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (read_signed_register): Use regcache_cooked_read_signed.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index efb623f..b5431b2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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.
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