Add support for target specific command line switches to old-style simualtors.
[deliverable/binutils-gdb.git] / gdb / doublest.h
index d3955b37955b2f4aa83facfc716e693bcee91eb1..920d7026db4fe74d9307de4a5debbbf40586133e 100644 (file)
@@ -35,8 +35,6 @@
 
 #include "floatformat.h"       /* For struct floatformat */
 
-extern const struct floatformat floatformat_unknown;
-
 /* Use `long double' if the host compiler supports it.  (Note that this is not
    necessarily any longer than `double'.  On SunOS/gcc, it's the same as
    double.)  This is necessary because GDB internally converts all floating
@@ -61,13 +59,25 @@ extern int floatformat_is_negative (const struct floatformat *, char *);
 extern int floatformat_is_nan (const struct floatformat *, char *);
 extern char *floatformat_mantissa (const struct floatformat *, char *);
 
-/* Use extract_typed_float() and store_typed_float(). */
-extern DOUBLEST extract_floating (const void *in, int); /* DEPRECATED */
-extern void store_floating (void *, int, DOUBLEST); /* DEPRECATED */
+/* These two functions are deprecated in favour of
+   extract_typed_floating and store_typed_floating.  See comments in
+   'doublest.c' for details.  */
+
+extern DOUBLEST extract_floating (const void *addr, int len);
+extern void store_floating (void *addr, int len, DOUBLEST val);
+
+/* Given TYPE, return its floatformat.  TYPE_FLOATFORMAT() may return
+   NULL.  type_floatformat() detects that and returns a floatformat
+   based on the type size when FLOATFORMAT is NULL.  */
+
+const struct floatformat *floatformat_from_type (const struct type *type);
 
 extern DOUBLEST extract_typed_floating (const void *addr,
                                        const struct type *type);
 extern void store_typed_floating (void *addr, const struct type *type,
                                  DOUBLEST val);
+extern void convert_typed_floating (const void *from,
+                                   const struct type *from_type,
+                                    void *to, const struct type *to_type);
 
 #endif
This page took 0.026806 seconds and 4 git commands to generate.