* 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.
This commit is contained in:
Mark Kettenis 2002-01-19 12:51:04 +00:00
parent bc89618bd8
commit 4604bcad46
2 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -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;