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/go32-nat.c | |
parent | 7c2b59d0e8cd59974289c1a167e93810e9137021 (diff) | |
download | gdb-193cb69f7b359809cc83c0d57149a478d1e803c7.zip gdb-193cb69f7b359809cc83c0d57149a478d1e803c7.tar.gz 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/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 3f56088..612ff3e 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, |