summaryrefslogtreecommitdiff
path: root/gdb/doublest.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-08 17:18:16 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-08 17:18:16 +0000
commit147dc21021c29ee2c0547b3c3ace8d031424a592 (patch)
tree5268cc1a5941ee8a3d3de30140c6a453fca1aa67 /gdb/doublest.h
parent717afe869537d5737e29f0ba5730609e8eeef980 (diff)
downloadgdb-147dc21021c29ee2c0547b3c3ace8d031424a592.tar.gz
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.h')
-rw-r--r--gdb/doublest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h
index 668efa71cf3..a568862e25e 100644
--- a/gdb/doublest.h
+++ b/gdb/doublest.h
@@ -25,6 +25,7 @@
#define DOUBLEST_H
struct type;
+struct floatformat;
/* Setup definitions for host and target floating point formats. We need to
consider the format for `float', `double', and `long double' for both target
@@ -87,4 +88,11 @@ extern void convert_typed_floating (const void *from,
const struct type *from_type,
void *to, const struct type *to_type);
+/* Table of convenient float-formats. */
+extern const struct floatformat *floatformat_ieee_single[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ieee_double[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_arm_ext[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ia64_spill[BFD_ENDIAN_UNKNOWN];
+extern const struct floatformat *floatformat_ia64_quad[BFD_ENDIAN_UNKNOWN];
+
#endif