This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

[PATCH] Fix compilation of i386gnu-nat.c


Committed.

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* i386gnu-nat.c: Include "i386-tdep.h".
	(fetch_fpregs): Simplify code dealing with uninitialized floating
	point states such that it doesn't require FP7_REGNUM.

Index: i386gnu-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386gnu-nat.c,v
retrieving revision 1.7
diff -u -p -r1.7 i386gnu-nat.c
--- i386gnu-nat.c 2001/07/22 20:35:14 1.7
+++ i386gnu-nat.c 2002/01/19 12:50:39
@@ -33,6 +33,8 @@
 #include <mach/message.h>
 #include <mach/exception.h>
 
+#include "i386-tdep.h"
+
 #include "gnu-nat.h"
 #include "i387-nat.h"
 
@@ -76,9 +78,7 @@ fetch_fpregs (struct proc *thread)
     {
       int i;
 
-      for (i = FP0_REGNUM; i <= FP7_REGNUM; i++)
-	supply_register (i, NULL);
-      for (i = FCTRL_REGNUM; i <= FOP_REGNUM; i++)
+      for (i = FP0_REGNUM; i <= FOP_REGNUM; i++)
 	supply_register (i, NULL);
 
       return;


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