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 | 193cb69f7b359809cc83c0d57149a478d1e803c7 (patch) | |
tree | c0393e743008d5bacc55b5135a9a394f513c24c6 /gdb/regcache.h | |
parent | 7c2b59d0e8cd59974289c1a167e93810e9137021 (diff) | |
download | fsf-binutils-gdb-193cb69f7b359809cc83c0d57149a478d1e803c7.zip fsf-binutils-gdb-193cb69f7b359809cc83c0d57149a478d1e803c7.tar.gz fsf-binutils-gdb-193cb69f7b359809cc83c0d57149a478d1e803c7.tar.bz2 |
* 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 93fbbc7..4e854d3 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 */ |