summaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-07-24 19:43:43 +0000
committerAndrew Cagney <cagney@redhat.com>2002-07-24 19:43:43 +0000
commit6230d2b50c1d671d4abd517d60cb08ef2e4f1b3c (patch)
tree3e888e094ec3850d2edd7aa76ff6cbad1074bc97 /gdb/regcache.h
parentb24830d4f1b1f9322484cd831039a9bf808cdf6d (diff)
downloadgdb-6230d2b50c1d671d4abd517d60cb08ef2e4f1b3c.tar.gz
2002-07-24 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_raw_write): Change buf parameter to a constant void pointer. (regcache_raw_read): Change buf parameter to a void pointer. (legacy_write_register_gen): Change myaddr parameter a constant void pointer. (supply_register): Change val parameter to a const void pointer. * regcache.h (regcache_raw_write): Update declaration. (regcache_raw_read): Update declaration. (supply_register): Update declaration.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 7de8e2ebe37..cd5bb83ee30 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -35,8 +35,9 @@ struct regcache *regcache_xmalloc (struct gdbarch *gdbarch);
/* Transfer a raw register [0..NUM_REGS) between core-gdb and the
regcache. */
-void regcache_raw_read (struct regcache *regcache, int rawnum, char *buf);
-void regcache_raw_write (struct regcache *regcache, int rawnum, char *buf);
+void regcache_raw_read (struct regcache *regcache, int rawnum, void *buf);
+void regcache_raw_write (struct regcache *regcache, int rawnum,
+ const void *buf);
int regcache_valid_p (struct regcache *regcache, int regnum);
CORE_ADDR regcache_raw_read_as_address (struct regcache *regcache, int rawnum);
@@ -44,7 +45,7 @@ CORE_ADDR regcache_raw_read_as_address (struct regcache *regcache, int rawnum);
target. These functions are called by the target in response to a
target_fetch_registers() or target_store_registers(). */
-extern void supply_register (int regnum, char *val);
+extern void supply_register (int regnum, const void *val);
extern void regcache_collect (int regnum, void *buf);