diff options
author | Jim Blandy <jimb@codesourcery.com> | 2000-02-22 19:18:53 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2000-02-22 19:18:53 +0000 |
commit | da82773e77c8bab85c3a5cd54838c47ac2a090df (patch) | |
tree | 05bffe4a74c9ba434cdbe8f236d4475040b12b7c /gdb/value.h | |
parent | e10a46ea6474ba025a97f438f27b65b675af91f0 (diff) | |
download | gdb-da82773e77c8bab85c3a5cd54838c47ac2a090df.tar.gz |
Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.
* valops.c (COERCE_FLOAT_TO_DOUBLE): Rework definition to be
more function-like.
(default_coerce_float_to_double, standard_coerce_float_to_double):
New functions.
(value_arg_coerce): Adjust for new definition.
* value.h (default_coerce_float_to_double,
standard_coerce_float_to_double): New declarations for the above.
* gdbarch.sh (coerce_float_to_double): New entry, replacing macro.
* gdbarch.c, gdbarch.h: Regenerated.
* tm-alpha.h, tm-fr30.h, tm-m32r.h, tm-mips.h, tm-hppa.h,
tm-rs6000.h, tm-sh.h, tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Change
definitions.
* mips-tdep.c (mips_coerce_float_to_double): Supply our own custom
function here.
(mips_gdbarch_init): Install that as our coerce_float_to_double
function.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index ab22573a480..9b6989a28c2 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -549,6 +549,10 @@ extern value_ptr value_slice PARAMS ((value_ptr, int, int)); extern value_ptr call_function_by_hand PARAMS ((value_ptr, int, value_ptr *)); +extern int default_coerce_float_to_double (struct type *, struct type *); + +extern int standard_coerce_float_to_double (struct type *, struct type *); + extern value_ptr value_literal_complex PARAMS ((value_ptr, value_ptr, struct type *)); extern void find_rt_vbase_offset PARAMS ((struct type *, struct type *, char *, int, int *, int *)); |