OSDN Git Service

* alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
authorJason Thorpe <thorpej@netbsd.org>
Sun, 21 Apr 2002 17:54:50 +0000 (17:54 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Sun, 21 Apr 2002 17:54:50 +0000 (17:54 +0000)
to standard_coerce_float_to_double.
* config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.

gdb/ChangeLog
gdb/alpha-tdep.c
gdb/config/alpha/tm-alpha.h

index 4e6b926..f98f343 100644 (file)
@@ -1,5 +1,11 @@
 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
 
+       * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
+       to standard_coerce_float_to_double.
+       * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
+
+2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
+
        * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
        * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
        from gdbarch_tdep rather than a constant.
index dfefa46..b2454a4 100644 (file)
@@ -2058,6 +2058,10 @@ alpha_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
 
+  /* Floats are always passed as doubles.  */
+  set_gdbarch_coerce_float_to_double (gdbarch,
+                                      standard_coerce_float_to_double);
+
   set_gdbarch_decr_pc_after_break (gdbarch, 4);
   set_gdbarch_frame_args_skip (gdbarch, 0);
 
index 450b2ec..d1806f5 100644 (file)
@@ -103,19 +103,6 @@ extern struct frame_info *alpha_setup_arbitrary_frame (int, CORE_ADDR *);
    where the function itself actually starts.  If not, return 0.  */
 #define SKIP_TRAMPOLINE_CODE(pc)  find_solib_trampoline_target (pc)
 
-/* 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.
-
-   For the alpha, it appears that the debug info marks the parameters as
-   floats regardless of whether the function is prototyped, but the actual
-   values are always passed in as doubles.  Thus by setting this to 1, both
-   types of calls will work. */
-
-#define COERCE_FLOAT_TO_DOUBLE(formal, actual) \
-  standard_coerce_float_to_double ((formal), (actual))
-
 /* Return TRUE if procedure descriptor PROC is a procedure descriptor
    that refers to a dynamically generated sigtramp function.