This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFA: gdb/i386-linux-nat.c


The following change needs to be made to fill_fpregset and
supply_fpregset in i386-linux-nat.c:

	* i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
	from/to start of fpregsetp not start of st_space as the first
	stuff we copy is the FP control registers not the actual FP values.

Jim,

Okay to commit?

taylor@texas 528: cvs diff -u i386-linux-nat.c
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/i386-linux-nat.c,v
retrieving revision 1.2
diff -u -r1.2 i386-linux-nat.c
--- i386-linux-nat.c    1999/09/03 08:16:57     1.2
+++ i386-linux-nat.c    1999/10/11 15:19:55
@@ -96,7 +96,7 @@
 {
   register int regi;
   char *from;
-  from = (char *) &(fpregsetp->st_space[0]);
+  from = (char *) fpregsetp;
   for (regi = FPSTART_REGNUM ; regi <= FPEND_REGNUM ; regi++)
     {
       supply_register(regi, from);
@@ -117,7 +117,7 @@
   char *to;
   char *from;
 
-  to = (char *) &(fpregsetp->st_space[0]);
+  to = (char *) fpregsetp;
   for (regi = FPSTART_REGNUM ; regi <= FPEND_REGNUM ; regi++)
     {
       from = (char *) &registers[REGISTER_BYTE (regi)];

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]