aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-11 18:33:12 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-11 18:33:12 +0000
commitf68e69315863b5b8b46d4562ce600bcab4613035 (patch)
tree933bdd507f79b9d7fe4145eac0faf7ec4df39598 /gdb
parent91c87211d6ecd30611e8488ca812f32f404ea0d5 (diff)
downloadgdb-f68e69315863b5b8b46d4562ce600bcab4613035.zip
gdb-f68e69315863b5b8b46d4562ce600bcab4613035.tar.gz
gdb-f68e69315863b5b8b46d4562ce600bcab4613035.tar.bz2
* mips-tdep.c (isa_NAN): Don't return true on -0.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/mips-tdep.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index a853cd6..b86fea9 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -26,33 +26,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "value.h"
#include "gdbcmd.h"
#include "language.h"
-
-#ifdef USG
-#include <sys/types.h>
-#endif
-
-#include <sys/param.h>
-#include <signal.h>
-#include <sys/ioctl.h>
-
#include "gdbcore.h"
#include "symfile.h"
#include "objfiles.h"
-#ifndef MIPSMAGIC
-#ifdef MIPSEL
-#define MIPSMAGIC MIPSELMAGIC
-#else
-#define MIPSMAGIC MIPSEBMAGIC
-#endif
-#endif
-
#define VM_MIN_ADDRESS (unsigned)0x400000
-
-#include <sys/user.h> /* After a.out.h */
-#include <sys/file.h>
-#include <sys/stat.h>
-
/* Some MIPS boards don't support floating point, so we permit the
user to turn it off. */
@@ -726,7 +704,7 @@ isa_NAN(p, len)
{
exponent = *p;
exponent = exponent << 1 >> (32 - SINGLE_EXP_BITS - 1);
- return ((exponent == -1) || (! exponent && *p));
+ return ((exponent == -1) || (exponent == 0 && ((*p << 1) != 0)));
}
else if (len == 8)
{