summaryrefslogtreecommitdiff
path: root/gdb/go32-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2001-12-06 08:15:37 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2001-12-06 08:15:37 +0000
commit330a28ff9fcd75615fdca00381c66983cea6f2be (patch)
tree8571aece9672ac59e0448eaac82bb1f731e7ba1c /gdb/go32-nat.c
parent686c015e352bb535eedacecf81727094ea300585 (diff)
downloadgdb-330a28ff9fcd75615fdca00381c66983cea6f2be.tar.gz
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.
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r--gdb/go32-nat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 5dd1ad23471..e7442358c12 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