aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386gnu-nat.c
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
commit4604bcad46e5f1dc5aa75bd730e15169b2d1d68c (patch)
tree5980247133fd398a51e37b877dff1a85f21161b8 /gdb/i386gnu-nat.c
parentbc89618bd82ffbdf6d9f8957f30765cfe7743e7b (diff)
downloadgdb-4604bcad46e5f1dc5aa75bd730e15169b2d1d68c.zip
gdb-4604bcad46e5f1dc5aa75bd730e15169b2d1d68c.tar.gz
gdb-4604bcad46e5f1dc5aa75bd730e15169b2d1d68c.tar.bz2
* 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.
Diffstat (limited to 'gdb/i386gnu-nat.c')
-rw-r--r--gdb/i386gnu-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i386gnu-nat.c b/gdb/i386gnu-nat.c
index cc7d6e5..9188ea4 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;