aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2001-12-06 08:15:37 +0000
committerPierre Muller <muller@sourceware.org>2001-12-06 08:15:37 +0000
commit284a190e5223c2b011878741af6b12178b1da66f (patch)
tree4a7ac5b24c07e0601f03649718ba94a9ad8b92ae
parent2858ef35b49cd3f242c4faa855fb8fd7d4978388 (diff)
downloadfsf-binutils-gdb-284a190e5223c2b011878741af6b12178b1da66f.zip
fsf-binutils-gdb-284a190e5223c2b011878741af6b12178b1da66f.tar.gz
fsf-binutils-gdb-284a190e5223c2b011878741af6b12178b1da66f.tar.bz2
2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
* go32-nat.c (go32_fetch_registers): Remove call to register_buffer (which is now a static function in regcache.c) and use regcache_collect instead.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/go32-nat.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8db9b6b..02da383 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
+ (which is now a static function in regcache.c)
+ and use regcache_collect instead.
+
2001-12-05 Andrew Cagney <cagney@redhat.com>
* target.c (cleanup_target): Do not initialize to_query to
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 5dd1ad2..e744235 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -492,12 +492,8 @@ go32_fetch_registers (int regno)
static void
store_register (int regno)
{
- void *rp;
- void *v = (void *) register_buffer (regno);
-
if (regno < FP0_REGNUM)
- memcpy ((char *) &a_tss + regno_mapping[regno].tss_ofs,
- v, regno_mapping[regno].size);
+ regcache_collect (regno, (void *) &a_tss + regno_mapping[regno].tss_ofs);
else if (regno <= LAST_FPU_CTRL_REGNUM)
i387_fill_fsave ((char *)&npx, regno);
else