summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-01-19 12:51:04 +0000
committerMark Kettenis <kettenis@gnu.org>2002-01-19 12:51:04 +0000
commitefc676299abe17c53e549af15eb81633f06570a3 (patch)
treefb1831b4f0960307b359aa6a5926df1b2c24c24a
parentcd414b31d777176fafbadd36ee4bd3b90abf8c6b (diff)
downloadgdb-efc676299abe17c53e549af15eb81633f06570a3.tar.gz
* 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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i386gnu-nat.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cb4aa19d6c9..1ce0b5a6197 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-19 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.
+
2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
* alpha-tdep.c (frame_extra_info): New.
diff --git a/gdb/i386gnu-nat.c b/gdb/i386gnu-nat.c
index cc7d6e5ffc7..9188ea4c654 100644
--- a/gdb/i386gnu-nat.c
+++ b/gdb/i386gnu-nat.c
@@ -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;