From 193cb69f7b359809cc83c0d57149a478d1e803c7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 15 Nov 2001 06:43:10 +0000 Subject: * 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. --- gdb/go32-nat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/go32-nat.c') 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, -- cgit v1.1