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/go32-nat.c | |
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/go32-nat.c')
-rw-r--r-- | gdb/go32-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 3f56088aed3..612ff3eb3ad 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -493,7 +493,8 @@ static void store_register (int regno) { void *rp; - void *v = (void *) register_buffer (regno); + void *v = alloca (MAX_REGISTER_RAW_SIZE); + regcache_collect (regno, v); if (regno < FP0_REGNUM) memcpy ((char *) &a_tss + regno_mapping[regno].tss_ofs, |