aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-02-27 09:58:35 +0000
committerAlan Hayward <alan.hayward@arm.com>2017-02-27 09:58:35 +0000
commit8e3681243c642d667164bd23ae9a376620da0780 (patch)
treea2311ff7b18870d84e8685aabc08d85692067c09 /gdb/regcache.h
parenta0aa382843fc5ccbeebf99d8d3c3075ca13e8125 (diff)
downloadgdb-8e3681243c642d667164bd23ae9a376620da0780.zip
gdb-8e3681243c642d667164bd23ae9a376620da0780.tar.gz
gdb-8e3681243c642d667164bd23ae9a376620da0780.tar.bz2
Remove MAX_REGISTER_SIZE from remote.c
gdb/ * regcache.c (regcache_raw_update): New function. (regcache_raw_read): Move code to regcache_raw_update. * regcache.h (regcache_raw_update): New declaration. * remote.c (remote_prepare_to_store): Call regcache_raw_update.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index e5a7cf5..e1495f6 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -50,6 +50,10 @@ extern struct address_space *get_regcache_aspace (const struct regcache *);
enum register_status regcache_register_status (const struct regcache *regcache,
int regnum);
+/* 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. */