Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.
authorJim Blandy <jimb@codesourcery.com>
Tue, 22 Feb 2000 19:18:53 +0000 (19:18 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 22 Feb 2000 19:18:53 +0000 (19:18 +0000)
commitb9a8e3bfd40ae4b14d2ff3a6d7f8704f5782eba8
tree1ba9faebd0ce345f35eba3024e8e794a99f757ba
parent87f398dd6a71a1d10f378be4ad51da680034260f
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.
13 files changed:
gdb/config/alpha/tm-alpha.h
gdb/config/fr30/tm-fr30.h
gdb/config/m32r/tm-m32r.h
gdb/config/mips/tm-mips.h
gdb/config/pa/tm-hppa.h
gdb/config/rs6000/tm-rs6000.h
gdb/config/sh/tm-sh.h
gdb/config/sparc/tm-sparc.h
gdb/gdbarch.c
gdb/gdbarch.h
gdb/mips-tdep.c
gdb/valops.c
gdb/value.h