aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-xdep.c
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1991-11-13 04:13:38 +0000
committerSean Eric Fagan <sef@cygnus>1991-11-13 04:13:38 +0000
commit127850e73905a7cc580cd2d8252273df93b10d9b (patch)
tree003ce52fd6aa1ea09e9ca84513f337e50d80a8a3 /gdb/i386-xdep.c
parentcd56d3143630a9e7e005cae3ef19c9632325d6be (diff)
downloadgdb-127850e73905a7cc580cd2d8252273df93b10d9b.zip
gdb-127850e73905a7cc580cd2d8252273df93b10d9b.tar.gz
gdb-127850e73905a7cc580cd2d8252273df93b10d9b.tar.bz2
Ported to SCO's 3.2v2 system.
Diffstat (limited to 'gdb/i386-xdep.c')
-rw-r--r--gdb/i386-xdep.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/i386-xdep.c b/gdb/i386-xdep.c
index 13ac213..2d69d1d 100644
--- a/gdb/i386-xdep.c
+++ b/gdb/i386-xdep.c
@@ -42,6 +42,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/reg.h>
#include "ieee-float.h"
+#include "target.h"
+
extern void print_387_control_word (); /* i387-tdep.h */
extern void print_387_status_word ();
@@ -180,14 +182,14 @@ i386_float_info ()
struct fpstate *fpstatep;
char buf[sizeof (struct fpstate) + 2 * sizeof (int)];
unsigned int uaddr;
- char fpvalid;
+ char fpvalid = 0;
unsigned int rounded_addr;
unsigned int rounded_size;
extern int corechan;
int skip;
uaddr = (char *)&u.u_fpvalid - (char *)&u;
- if (have_inferior_p())
+ if (target_has_execution)
{
unsigned int data;
unsigned int mask;
@@ -198,6 +200,7 @@ i386_float_info ()
fpvalid = ((data & mask) != 0);
}
+#if 0
else
{
if (lseek (corechan, uaddr, 0) < 0)
@@ -206,6 +209,7 @@ i386_float_info ()
perror ("read on core file");
}
+#endif /* no core support yet */
if (fpvalid == 0)
{
@@ -214,7 +218,7 @@ i386_float_info ()
}
uaddr = (char *)&U_FPSTATE(u) - (char *)&u;
- if (have_inferior_p ())
+ if (target_has_execution)
{
int *ip;
@@ -230,6 +234,7 @@ i386_float_info ()
rounded_addr += sizeof (int);
}
}
+#if 0
else
{
if (lseek (corechan, uaddr, 0) < 0)
@@ -238,7 +243,8 @@ i386_float_info ()
perror_with_name ("read from core file");
skip = 0;
}
-
+ #endif /* 0 */
+
fpstatep = (struct fpstate *)(buf + skip);
print_387_status (fpstatep->status, (struct env387 *)fpstatep->state);
}