diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-11-15 06:43:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-11-15 06:43:10 +0000 |
commit | a183a2ca0e8e21176deff41486a9c6a9220cdedb (patch) | |
tree | 4f44b031036e21a1c09d6d3d4ddaf0b66ef9e12d /gdb/regcache.h | |
parent | ad3e1601bdb0013dacad2c6347ab9b79c98b2417 (diff) | |
download | gdb-a183a2ca0e8e21176deff41486a9c6a9220cdedb.tar.gz |
* TODO (register_buffer): Delete.
* regcache.c (register_buffer): Make static.
(regcache_collect): New function.
* regcache.h (register_buffer): Delete declaration.
(regcache_collect): Declare.
* remote.c (store_register_using_P): Rewrite using
regcache_collect.
(remote_store_registers): Ditto.
* go32-nat.c (store_register): Ditto.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index 93fbbc7c68a..4e854d31667 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -28,6 +28,14 @@ void regcache_read (int rawnum, char *buf); void regcache_write (int rawnum, char *buf); +/* Transfer a raw register [0..NUM_REGS) between the regcache and the + 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 regcache_collect (int regnum, void *buf); + + /* DEPRECATED: Character array containing an image of the inferior programs' registers for the most recently referenced thread. */ @@ -45,11 +53,6 @@ extern void set_register_cached (int regnum, int state); extern void register_changed (int regnum); -/* DEPRECATED: Functional interface returning pointer into registers[] - array. */ - -extern char *register_buffer (int regnum); - extern void registers_changed (void); extern void registers_fetched (void); @@ -76,6 +79,4 @@ extern void write_register (int regnum, LONGEST val); extern void write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid); -extern void supply_register (int regnum, char *val); - #endif /* REGCACHE_H */ |