diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-08 17:18:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-08 17:18:16 +0000 |
commit | 5ef2d0aac2c4d4f24104d79669f833b05b80252f (patch) | |
tree | 7200d8180e4f01414794855cc8ef246da957962e /gdb/doublest.c | |
parent | c6fee705095d5ea5f03ff36a043333b805bd0551 (diff) | |
download | gdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.zip gdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.tar.gz gdb-5ef2d0aac2c4d4f24104d79669f833b05b80252f.tar.bz2 |
2004-08-08 Andrew Cagney <cagney@gnu.org>
* gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
(builtin_type_ieee_double, builtin_type_ia64_quad)
(builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
BE/LE floating-point types.
* gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
(builtin_type_ieee_double, builtin_type_ia64_quad)
(builtin_type_ia64_spill): Declare.
* doublest.c (_initialize_doublest, floatformat_ieee_single)
(floatformat_ieee_double, floatformat_arm_ext)
(floatformat_ia64_spill, floatformat_ia64_quad): Add tables
of LE/BE floatformats.
* doublest.h: (struct floatformat, floatformat_ieee_single)
(floatformat_ieee_double, floatformat_arm_ext)
(floatformat_ia64_spill, floatformat_ia64_quad): Declare.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r-- | gdb/doublest.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c index e4dbb2a..8991241 100644 --- a/gdb/doublest.c +++ b/gdb/doublest.c @@ -811,3 +811,26 @@ convert_typed_floating (const void *from, const struct type *from_type, floatformat_from_doublest (to_fmt, &d, to); } } + +const struct floatformat *floatformat_ieee_single[BFD_ENDIAN_UNKNOWN]; +const struct floatformat *floatformat_ieee_double[BFD_ENDIAN_UNKNOWN]; +const struct floatformat *floatformat_arm_ext[BFD_ENDIAN_UNKNOWN]; +const struct floatformat *floatformat_ia64_spill[BFD_ENDIAN_UNKNOWN]; +const struct floatformat *floatformat_ia64_quad[BFD_ENDIAN_UNKNOWN]; + +extern void _initialize_doublest (void); + +extern void +_initialize_doublest (void) +{ + floatformat_ieee_single[BFD_ENDIAN_LITTLE] = &floatformat_ieee_single_little; + floatformat_ieee_single[BFD_ENDIAN_BIG] = &floatformat_ieee_single_big; + floatformat_ieee_double[BFD_ENDIAN_LITTLE] = &floatformat_ieee_double_little; + floatformat_ieee_double[BFD_ENDIAN_BIG] = &floatformat_ieee_double_big; + floatformat_arm_ext[BFD_ENDIAN_LITTLE] = &floatformat_arm_ext_littlebyte_bigword; + floatformat_arm_ext[BFD_ENDIAN_BIG] = &floatformat_arm_ext_big; + floatformat_ia64_spill[BFD_ENDIAN_LITTLE] = &floatformat_ia64_spill_little; + floatformat_ia64_spill[BFD_ENDIAN_BIG] = &floatformat_ia64_spill_big; + floatformat_ia64_quad[BFD_ENDIAN_LITTLE] = &floatformat_ia64_quad_little; + floatformat_ia64_quad[BFD_ENDIAN_BIG] = &floatformat_ia64_quad_big; +} |