From c5c157b9e8b83fa1da7316890a8bfc7deaa9f350 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 18 Jun 2005 15:22:55 +0000 Subject: [PATCH] * regcache.c (regcache_raw_supply, regcache_raw_collect): Change type of last argument back to `void *'. * regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/regcache.c | 6 ++---- gdb/regcache.h | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cecc31a746..3a1e05e460 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-06-18 Mark Kettenis + + * regcache.c (regcache_raw_supply, regcache_raw_collect): Change + type of last argument back to `void *'. + * regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise. + 2005-06-18 Nick Roberts * mi/mi-cmds.c (mi_cmds): Remove entry for -stack-info-frame. diff --git a/gdb/regcache.c b/gdb/regcache.c index 0150223f9c..e023f839f8 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -1002,8 +1002,7 @@ write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid) /* Supply register REGNUM, whose contents are stored in BUF, to REGCACHE. */ void -regcache_raw_supply (struct regcache *regcache, int regnum, - const gdb_byte *buf) +regcache_raw_supply (struct regcache *regcache, int regnum, const void *buf) { void *regbuf; size_t size; @@ -1036,8 +1035,7 @@ regcache_raw_supply (struct regcache *regcache, int regnum, /* Collect register REGNUM from REGCACHE and store its contents in BUF. */ void -regcache_raw_collect (const struct regcache *regcache, int regnum, - gdb_byte *buf) +regcache_raw_collect (const struct regcache *regcache, int regnum, void *buf) { const void *regbuf; size_t size; diff --git a/gdb/regcache.h b/gdb/regcache.h index d02e4114b2..707f7307c9 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -98,9 +98,9 @@ void regcache_cooked_write_part (struct regcache *regcache, int regnum, target_fetch_registers() or target_store_registers(). */ extern void regcache_raw_supply (struct regcache *regcache, - int regnum, const gdb_byte *buf); + int regnum, const void *buf); extern void regcache_raw_collect (const struct regcache *regcache, - int regnum, gdb_byte *buf); + int regnum, void *buf); /* The register's ``offset''. -- 2.11.0