aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-07-09 16:50:43 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-07-09 16:50:43 +0000
commit2fcdae93aafbc5de1a370169ed673cc75e17d022 (patch)
tree8a40bc57c5ecf24cb7c44b1f17255da846862781 /gdb/mips-tdep.c
parenta40fe908ce5d4366286cebcff3317b59c3ce5e25 (diff)
downloadgdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.zip
gdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.tar.gz
gdb-2fcdae93aafbc5de1a370169ed673cc75e17d022.tar.bz2
* defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
* mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc is at the start of the dummy code.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index b86fea9..8da1f8a 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -331,7 +331,7 @@ init_extra_frame_info(fci)
/* Fixup frame-pointer - only needed for top frame */
/* This may not be quite right, if proc has a real frame register */
- if (fci->pc == PROC_LOW_ADDR(proc_desc))
+ if (fci->pc == PROC_LOW_ADDR(proc_desc) && !PROC_DESC_IS_DUMMY(proc_desc))
fci->frame = read_register (SP_REGNUM);
else
fci->frame = READ_FRAME_REG(fci, PROC_FRAME_REG(proc_desc))
@@ -688,36 +688,6 @@ mips_frame_num_args(fip)
#endif
return -1;
}
-
-
-/* Bad floats: Returns 0 if P points to a valid IEEE floating point number,
- 1 if P points to a denormalized number or a NaN. LEN says whether this is
- a single-precision or double-precision float */
-#define SINGLE_EXP_BITS 8
-#define DOUBLE_EXP_BITS 11
-int
-isa_NAN(p, len)
- int *p, len;
-{
- int exponent;
- if (len == 4)
- {
- exponent = *p;
- exponent = exponent << 1 >> (32 - SINGLE_EXP_BITS - 1);
- return ((exponent == -1) || (exponent == 0 && ((*p << 1) != 0)));
- }
- else if (len == 8)
- {
-#if TARGET_BYTE_ORDER == BIG_ENDIAN
- exponent = *p;
-#else
- exponent = *(p+1);
-#endif
- exponent = exponent << 1 >> (32 - DOUBLE_EXP_BITS - 1);
- return ((exponent == -1) || (! exponent && *p * *(p+1)));
- }
- else return 1;
-}
/* To skip prologues, I use this predicate. Returns either PC
itself if the code at PC does not look like a function prologue;