Remove regcache_cooked_read
[deliverable/binutils-gdb.git] / gdb / regcache.c
index a3cc7743a2e6123e9b41c0fb055e284089cd18ed..ec1bfb0876b48584f50e8c3666cb504ef3421a4c 100644 (file)
@@ -209,7 +209,7 @@ do_cooked_read (void *src, int regnum, gdb_byte *buf)
 {
   struct regcache *regcache = (struct regcache *) src;
 
-  return regcache_cooked_read (regcache, regnum, buf);
+  return regcache->cooked_read (regnum, buf);
 }
 
 readonly_detached_regcache::readonly_detached_regcache (const regcache &src)
@@ -223,16 +223,6 @@ reg_buffer::arch () const
   return m_descr->gdbarch;
 }
 
-/* See regcache.h.  */
-
-ptid_t
-regcache_get_ptid (const struct regcache *regcache)
-{
-  gdb_assert (!ptid_equal (regcache->ptid (), minus_one_ptid));
-
-  return regcache->ptid ();
-}
-
 /* Cleanup class for invalidating a register.  */
 
 class regcache_invalidator
@@ -330,13 +320,6 @@ regcache::restore (readonly_detached_regcache *src)
     }
 }
 
-enum register_status
-regcache_register_status (const struct regcache *regcache, int regnum)
-{
-  gdb_assert (regcache != NULL);
-  return regcache->get_register_status (regnum);
-}
-
 enum register_status
 reg_buffer::get_register_status (int regnum) const
 {
@@ -505,14 +488,6 @@ registers_changed (void)
   alloca (0);
 }
 
-void
-regcache_raw_update (struct regcache *regcache, int regnum)
-{
-  gdb_assert (regcache != NULL);
-
-  regcache->raw_update (regnum);
-}
-
 void
 regcache::raw_update (int regnum)
 {
@@ -535,12 +510,6 @@ regcache::raw_update (int regnum)
     }
 }
 
-enum register_status
-regcache_raw_read (struct regcache *regcache, int regnum, gdb_byte *buf)
-{
-  return regcache->raw_read (regnum, buf);
-}
-
 enum register_status
 readable_regcache::raw_read (int regnum, gdb_byte *buf)
 {
@@ -631,12 +600,6 @@ regcache_raw_get_signed (struct regcache *regcache, int regnum)
   return value;
 }
 
-enum register_status
-regcache_cooked_read (struct regcache *regcache, int regnum, gdb_byte *buf)
-{
-  return regcache->cooked_read (regnum, buf);
-}
-
 enum register_status
 readable_regcache::cooked_read (int regnum, gdb_byte *buf)
 {
@@ -782,14 +745,6 @@ regcache_cooked_write_unsigned (struct regcache *regcache, int regnum,
   regcache->cooked_write (regnum, val);
 }
 
-void
-regcache_raw_write (struct regcache *regcache, int regnum,
-                   const gdb_byte *buf)
-{
-  gdb_assert (regcache != NULL && buf != NULL);
-  regcache->raw_write (regnum, buf);
-}
-
 void
 regcache::raw_write (int regnum, const gdb_byte *buf)
 {
@@ -845,11 +800,6 @@ regcache::cooked_write (int regnum, const gdb_byte *buf)
 /* Perform a partial register transfer using a read, modify, write
    operation.  */
 
-typedef void (regcache_read_ftype) (struct regcache *regcache, int regnum,
-                                   void *buf);
-typedef void (regcache_write_ftype) (struct regcache *regcache, int regnum,
-                                    const void *buf);
-
 enum register_status
 readable_regcache::read_part (int regnum, int offset, int len, void *in,
                              bool is_raw)
This page took 0.026156 seconds and 4 git commands to generate.