diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:38 -0400 |
commit | dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c (patch) | |
tree | 681b64140760ae67e7607002b451168fb19db776 /gdb/regcache.h | |
parent | 10eaee5f56611ce5f92ccd305849c0cc6addd130 (diff) | |
download | gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.zip gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.gz gdb-dca08e1fe158d04517ba3ddd7ece9dd1596c8e8c.tar.bz2 |
Remove regcache_cooked_read
Remove regcache_cooked_read, update callers to use
readable_regcache::cooked_read instead.
gdb/ChangeLog:
* regcache.h (regcache_cooked_read): Remove, update callers to
use readable_regcache::cooked_read instead.
* regcache.c (regcache_cooked_read): Remove.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index e9cbcbe..f7228e4 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -67,9 +67,6 @@ void regcache_invalidate (struct regcache *regcache, int regnum); constructed from valid, invalid or unavailable ``raw'' registers. */ -/* Transfer a cooked register [0..NUM_REGS+NUM_PSEUDO_REGS). */ -enum register_status regcache_cooked_read (struct regcache *regcache, - int rawnum, gdb_byte *buf); void regcache_cooked_write (struct regcache *regcache, int rawnum, const gdb_byte *buf); @@ -252,6 +249,8 @@ public: /* Make certain that the register REGNUM is up-to-date. */ virtual void raw_update (int regnum) = 0; + /* Transfer a raw register [0..NUM_REGS+NUM_PSEUDO_REGS) from core-gdb to + this regcache, return its value in *BUF and return its availability status. */ enum register_status cooked_read (int regnum, gdb_byte *buf); template<typename T, typename = RequireLongest<T>> enum register_status cooked_read (int regnum, T *val); |