Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gdb Make sure to write back correct FP st...
details: https://anonhg.NetBSD.org/src/rev/be886ba077ab
branches: trunk
changeset: 536502:be886ba077ab
user: toshii <toshii%NetBSD.org@localhost>
date: Tue Sep 17 07:05:09 2002 +0000
description:
Make sure to write back correct FP state. Fixes port-i386/17927.
diffstat:
gnu/dist/toolchain/gdb/i386nbsd-nat.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r fc6f4e680671 -r be886ba077ab gnu/dist/toolchain/gdb/i386nbsd-nat.c
--- a/gnu/dist/toolchain/gdb/i386nbsd-nat.c Tue Sep 17 06:32:49 2002 +0000
+++ b/gnu/dist/toolchain/gdb/i386nbsd-nat.c Tue Sep 17 07:05:09 2002 +0000
@@ -59,8 +59,8 @@
{
unsigned short control;
unsigned short status;
+ unsigned char tag; /* abridged */
unsigned char r0;
- unsigned char tag; /* abridged */
unsigned short opcode;
unsigned long eip;
unsigned short code_seg;
@@ -308,6 +308,7 @@
RS (FCOFF_REGNUM, inferior_xmmregisters.eip);
RS (FDS_REGNUM, inferior_xmmregisters.operand_seg);
RS (FDOFF_REGNUM, inferior_xmmregisters.operand);
+ RS (FOP_REGNUM, inferior_xmmregisters.opcode);
/* GDB has provided as the "tag" info in i387 format, but the
kernel expects it to be in XMM format; convert it. */
@@ -327,7 +328,7 @@
#endif
for (i = 0; i < 8; i++)
{
- RF (FP0_REGNUM + i, inferior_fpregisters.regs[i]);
+ RS (FP0_REGNUM + i, inferior_fpregisters.regs[i]);
}
RS (FCTRL_REGNUM, inferior_fpregisters.control);
Home |
Main Index |
Thread Index |
Old Index