]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove regcache_raw_update
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 30 May 2018 18:54:36 +0000 (14:54 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 30 May 2018 18:54:36 +0000 (14:54 -0400)
Remove regcache_raw_update, update callers to use
readable_regcache::raw_update instead.

gdb/ChangeLog:

* regcache.h (regcache_raw_update): Remove, update callers to
use readable_regcache::raw_update instead.
* regcache.c (regcache_raw_update): Remove.

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

index ef6d92118ed75136caab2a9a35ae2f46675a98fb..4f451a2910e5424e16fb2585704eebc72a7862ec 100644 (file)
@@ -1,3 +1,9 @@
+2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * regcache.h (regcache_raw_update): Remove, update callers to
+       use readable_regcache::raw_update instead.
+       * regcache.c (regcache_raw_update): Remove.
+
 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
 
        * regcache.h (regcache_register_status): Remove, update callers
index dd1dde234c93d47dd42a71e08fc6e3fb68713b12..64d167a3894fa66df51b522e2492a01eee21eea4 100644 (file)
@@ -488,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)
 {
index fa177b58aa3a2a23aa185bf5a8d27a88f0cc5337..dffc27f17c1cec88e355497a691361ce9dbb3272 100644 (file)
@@ -35,10 +35,6 @@ extern struct regcache *get_thread_arch_aspace_regcache (ptid_t,
                                                         struct gdbarch *,
                                                         struct address_space *);
 
-/* Make certain that the register REGNUM in REGCACHE is up-to-date.  */
-
-void regcache_raw_update (struct regcache *regcache, int regnum);
-
 /* Transfer a raw register [0..NUM_REGS) between core-gdb and the
    regcache.  The read variants return the status of the register.  */
 
@@ -257,6 +253,7 @@ public:
   enum register_status raw_read_part (int regnum, int offset, int len,
                                      gdb_byte *buf);
 
+  /* Make certain that the register REGNUM is up-to-date.  */
   virtual void raw_update (int regnum) = 0;
 
   enum register_status cooked_read (int regnum, gdb_byte *buf);
index 3df9ad4fbe35f22da20acb96461e4dded8d49509..3aca5fb29018cf081336fda5f3bb7da7492c18af 100644 (file)
@@ -8339,7 +8339,7 @@ remote_target::prepare_to_store (struct regcache *regcache)
       /* Make sure all the necessary registers are cached.  */
       for (i = 0; i < gdbarch_num_regs (regcache->arch ()); i++)
        if (rsa->regs[i].in_g_packet)
-         regcache_raw_update (regcache, rsa->regs[i].regnum);
+         regcache->raw_update (rsa->regs[i].regnum);
       break;
     case PACKET_ENABLE:
       break;