diff options
author | Alan Hayward <alan.hayward@arm.com> | 2017-08-15 16:41:00 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2017-08-15 16:41:00 +0100 |
commit | 8cc29a6ace049443f969cd189058ad7e0e21a4ba (patch) | |
tree | b93d8df3b1011365f2eff49d5a0993d66f01232a /gdb/regcache.h | |
parent | a20c2452a4eaa98024ef6982318945dbbf2d4ca7 (diff) | |
download | binutils-users/alahay01/targetregcache.zip binutils-users/alahay01/targetregcache.tar.gz binutils-users/alahay01/targetregcache.tar.bz2 |
[PATCH 7/7]: Regcache: Refactor raw_set_cached_valueusers/alahay01/targetregcache
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index f4408a5..f45ab71 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -79,14 +79,6 @@ extern void regcache_raw_write_unsigned (struct regcache *regcache, extern LONGEST regcache_raw_get_signed (struct regcache *regcache, int regnum); -/* Set a raw register's value in the regcache's buffer. Unlike - regcache_raw_write, this is not write-through. The intention is - allowing to change the buffer contents of a read-only regcache - allocated with regcache_xmalloc. */ - -extern void regcache_raw_set_cached_value - (struct regcache *regcache, int regnum, const gdb_byte *buf); - /* Partial transfer of raw registers. These perform read, modify, write style operations. The read variant returns the status of the register. */ @@ -301,8 +293,6 @@ public: virtual enum register_status get_register_status (int regnum) const; - void raw_set_cached_value (int regnum, const gdb_byte *buf); - void invalidate (int regnum); enum register_status raw_read_part (int regnum, int offset, int len, @@ -339,6 +329,10 @@ protected: gdb_byte *register_buffer (int regnum) const; + /* Get/Set the cached contents of the regcache. */ + void raw_set_cached_reg (int regnum, const gdb_byte *buf); + enum register_status raw_get_cached_reg (int regnum, gdb_byte *buf) const; + struct regcache_descr *m_descr; /* The address space of this register cache (for registers where it |