* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
authorMark Kettenis <kettenis@gnu.org>
Mon, 1 Jul 2002 09:13:09 +0000 (09:13 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 1 Jul 2002 09:13:09 +0000 (09:13 +0000)
* i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
this macro.  Include "value.h".

gdb/ChangeLog
gdb/config/i386/tm-i386sol2.h
gdb/i386-sol2-tdep.c

index 87b12fed9f7c3e79063a0af44e0495cd7aea7daf..6b2edd0dd7f521fdcd9a96a1961c74a9ea479b3d 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
+       * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
+       this macro.  Include "value.h".
+
 2002-06-30  Aidan Skinner  <aidan@velvet.net>
 
        * ada-exp.tab.c: remove as it's a generated file
index a63e8a011ffbf2d16b17c6227374196d552fd6ed..35d63d168659563b63c6dda98b3daa7787b3cacc 100644 (file)
 
 #include "i386/tm-i386v4.h"
 
-/* If the current gcc for for this target does not produce correct
-   debugging information for float parameters, both prototyped and
-   unprototyped, then define this macro.  This forces gdb to always
-   assume that floats are passed as doubles and then converted in the
-   callee. */
-
-#define COERCE_FLOAT_TO_DOUBLE(formal, actual) (1)
-
 /* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
    and for SunPRO 3.0, N_FUN symbols too.  */
 #define SOFUN_ADDRESS_MAYBE_MISSING
index 206e85cfe72cb041c31d64126f6af74b11b85d2d..2244643adff62d2c56c8d4bf5099731fda65f8e5 100644 (file)
@@ -19,6 +19,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
+#include "value.h"
 
 #include "i386-tdep.h"
 
@@ -45,6 +46,10 @@ i386_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_pc_in_sigtramp (gdbarch, i386_sol2_pc_in_sigtramp);
   tdep->sigtramp_saved_pc = i386bsd_sigtramp_saved_pc;
   tdep->sc_pc_offset = 36 + 14 * 4;
+
+  /* Assume that the prototype flag can be trusted.  */
+  set_gdbarch_coerce_float_to_double (gdbarch,
+                                     standard_coerce_float_to_double);
 }
 \f
 
This page took 0.042458 seconds and 4 git commands to generate.