summaryrefslogtreecommitdiffstats
path: root/gdb/go32-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-11-15 06:43:10 +0000
committerAndrew Cagney <cagney@redhat.com>2001-11-15 06:43:10 +0000
commit193cb69f7b359809cc83c0d57149a478d1e803c7 (patch)
treec0393e743008d5bacc55b5135a9a394f513c24c6 /gdb/go32-nat.c
parent7c2b59d0e8cd59974289c1a167e93810e9137021 (diff)
downloadppe42-binutils-193cb69f7b359809cc83c0d57149a478d1e803c7.tar.gz
ppe42-binutils-193cb69f7b359809cc83c0d57149a478d1e803c7.zip
* 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 3f56088aed..612ff3eb3a 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,
OpenPOWER on IntegriCloud