* regcache.c (read_register, read_register_pid): Remove.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:45:57 +0000 (22:45 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:45:57 +0000 (22:45 +0000)
(write_register, write_register_pid): Likewise.
* regcache.h (read_register, read_register_pid): Remove prototype.
(write_register, write_register_pid): Likewise.

gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h

index 3d1859d1a59326e675cf85cb1eff31cc6eff2ddf..ebb43c9ce8be0a07af39f03c1a8c44750321240c 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * regcache.c (read_register, read_register_pid): Remove.
+       (write_register, write_register_pid): Likewise.
+       * regcache.h (read_register, read_register_pid): Remove prototype.
+       (write_register, write_register_pid): Likewise.
+
 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
index dc07c9f52ca99a9ecf8012e87e285ff843fc9967..5a1073bbef59323bb2f332cfc93ca127b166ecd7 100644 (file)
@@ -754,73 +754,6 @@ register_offset_hack (struct gdbarch *gdbarch, int regnum)
   return descr->register_offset[regnum];
 }
 
-/* Return the contents of register REGNUM as an unsigned integer.  */
-
-ULONGEST
-read_register (int regnum)
-{
-  gdb_byte *buf = alloca (register_size (current_gdbarch, regnum));
-  gdb_assert (current_regcache != NULL);
-  gdb_assert (current_regcache->descr->gdbarch == current_gdbarch);
-  regcache_cooked_read (current_regcache, regnum, buf);
-  return (extract_unsigned_integer (buf, register_size (current_gdbarch, regnum)));
-}
-
-ULONGEST
-read_register_pid (int regnum, ptid_t ptid)
-{
-  ptid_t save_ptid;
-  int save_pid;
-  CORE_ADDR retval;
-
-  if (ptid_equal (ptid, inferior_ptid))
-    return read_register (regnum);
-
-  save_ptid = inferior_ptid;
-
-  inferior_ptid = ptid;
-
-  retval = read_register (regnum);
-
-  inferior_ptid = save_ptid;
-
-  return retval;
-}
-
-/* Store VALUE into the raw contents of register number REGNUM.  */
-
-void
-write_register (int regnum, LONGEST val)
-{
-  void *buf;
-  int size;
-  size = register_size (current_gdbarch, regnum);
-  buf = alloca (size);
-  store_signed_integer (buf, size, (LONGEST) val);
-  gdb_assert (current_regcache != NULL);
-  gdb_assert (current_regcache->descr->gdbarch == current_gdbarch);
-  regcache_cooked_write (current_regcache, regnum, buf);
-}
-
-void
-write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid)
-{
-  ptid_t save_ptid;
-
-  if (ptid_equal (ptid, inferior_ptid))
-    {
-      write_register (regnum, val);
-      return;
-    }
-
-  save_ptid = inferior_ptid;
-
-  inferior_ptid = ptid;
-
-  write_register (regnum, val);
-
-  inferior_ptid = save_ptid;
-}
 
 /* Supply register REGNUM, whose contents are stored in BUF, to REGCACHE.  */
 
index 4ced1fcd79b9b6fdce6ba8dd31063f0ff5f00170..d8e3a433d4358689339ab53ae25e108eae2292fe 100644 (file)
@@ -161,15 +161,4 @@ extern void regcache_cpy_no_passthrough (struct regcache *dest, struct regcache
 
 extern void registers_changed (void);
 
-
-/* Rename to read_unsigned_register()? */
-extern ULONGEST read_register (int regnum);
-
-/* Rename to read_unsigned_register_pid()? */
-extern ULONGEST read_register_pid (int regnum, ptid_t ptid);
-
-extern void write_register (int regnum, LONGEST val);
-
-extern void write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid);
-
 #endif /* REGCACHE_H */