summaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-08 20:38:07 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-08 20:38:07 +0000
commitdd3cd0f61a6960c3242db1dcc337c8bf105fd307 (patch)
treed953a0b905479a329591a4d87100d07b54d4e1bf /gdb/regcache.c
parentd40e11b70907431d818ac2eb099075804b6ada7d (diff)
downloadgdb-dd3cd0f61a6960c3242db1dcc337c8bf105fd307.tar.gz
2003-05-08 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (read_signed_register): New function, moved to here from "regcache.c". (read_signed_register_pid): Ditto. * regcache.c (read_signed_register_pid): Delete function, moved to "mips-tdep.c". (read_signed_register): Ditto. * regcache.h (read_signed_register): Delete declaration. (read_signed_register_pid): Delete declaration.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 5fa2b4a8b32..8e2a4a94e9b 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1208,36 +1208,6 @@ read_register_pid (int regnum, ptid_t ptid)
return retval;
}
-/* Return the contents of register REGNUM as a signed integer. */
-
-LONGEST
-read_signed_register (int regnum)
-{
- void *buf = alloca (REGISTER_RAW_SIZE (regnum));
- deprecated_read_register_gen (regnum, buf);
- return (extract_signed_integer (buf, REGISTER_RAW_SIZE (regnum)));
-}
-
-LONGEST
-read_signed_register_pid (int regnum, ptid_t ptid)
-{
- ptid_t save_ptid;
- LONGEST retval;
-
- if (ptid_equal (ptid, inferior_ptid))
- return read_signed_register (regnum);
-
- save_ptid = inferior_ptid;
-
- inferior_ptid = ptid;
-
- retval = read_signed_register (regnum);
-
- inferior_ptid = save_ptid;
-
- return retval;
-}
-
/* Store VALUE into the raw contents of register number REGNUM. */
void