Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/gnu/dist/toolchain/gdb Pull up revision 1.7 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/0db10b4ea864
branches:  netbsd-1-6
changeset: 529141:0db10b4ea864
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 13 22:25:25 2002 +0000

description:
Pull up revision 1.7 (requested by toshii in ticket #841):
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 cd6932c16b6a -r 0db10b4ea864 gnu/dist/toolchain/gdb/i386nbsd-nat.c
--- a/gnu/dist/toolchain/gdb/i386nbsd-nat.c     Thu Oct 03 03:39:04 2002 +0000
+++ b/gnu/dist/toolchain/gdb/i386nbsd-nat.c     Sun Oct 13 22:25:25 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