* gdb.base/Makefile.in (clean): Remove callf-info.exp.
[deliverable/binutils-gdb.git] / gdb / i386-tdep.c
index e6ee9ce0928d21b51aa4b3c8d63fcf7367508666..a02eace9a5f5860a99916007dd29d04746e104f3 100644 (file)
@@ -22,6 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "inferior.h"
 #include "gdbcore.h"
 #include "target.h"
+#include "floatformat.h"
 #include "symtab.h"
 
 static long
@@ -618,12 +619,11 @@ i386_extract_return_value(type, regbuf, valbuf)
 {
   if (TYPE_CODE_FLT == TYPE_CODE(type))
     {
-      extern struct ext_format ext_format_i387;
       double d;
       /* 387 %st(0), gcc uses this */
-      ieee_extended_to_double (&ext_format_i387,
-                              &regbuf[REGISTER_BYTE(FP0_REGNUM)],
-                              &d);
+      floatformat_to_double (&floatformat_i387_ext,
+                            &regbuf[REGISTER_BYTE(FP0_REGNUM)],
+                            &d);
       store_floating (valbuf, TYPE_LENGTH (type), d);
     }
   else
@@ -650,9 +650,9 @@ i386v4_sigtramp_saved_pc (frame)
     {
       if (STREQ (name, "_sigreturn"))
        saved_pc_offset = 132 + 14 * 4;
-      if (STREQ (name, "_sigacthandler"))
+      else if (STREQ (name, "_sigacthandler"))
        saved_pc_offset = 80 + 14 * 4;
-      if (STREQ (name, "sigvechandler"))
+      else if (STREQ (name, "sigvechandler"))
        saved_pc_offset = 120 + 14 * 4;
     }
 
This page took 0.024786 seconds and 4 git commands to generate.