aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-21 17:54:50 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-21 17:54:50 +0000
commit65585be4ba50233f681efd81e16046dd58042c28 (patch)
tree50c4182f4a2793b9d09f11cbee090b29608cd337 /gdb
parentd9b023ccd41c119362f440ab9dabc61613beb577 (diff)
downloadgdb-65585be4ba50233f681efd81e16046dd58042c28.zip
gdb-65585be4ba50233f681efd81e16046dd58042c28.tar.gz
gdb-65585be4ba50233f681efd81e16046dd58042c28.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/alpha-tdep.c4
-rw-r--r--gdb/config/alpha/tm-alpha.h13
3 files changed, 10 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4e6b926..f98f343 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index dfefa46..b2454a4 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -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);
diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h
index 450b2ec..d1806f5 100644
--- a/gdb/config/alpha/tm-alpha.h
+++ b/gdb/config/alpha/tm-alpha.h
@@ -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.