This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix compilation of i386gnu-nat.c
- From: Mark Kettenis <kettenis at kettenis dot dyndns dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 19 Jan 2002 13:52:00 +0100 (CET)
- Subject: [PATCH] Fix compilation of i386gnu-nat.c
- Reply-to: kettenis at chello dot nl
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;