X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fdoublest.h;h=920d7026db4fe74d9307de4a5debbbf40586133e;hb=de4112fa387b662c7c7a1dd3e334a1274ca54d28;hp=ccd92336275250abf622333873adb231a4b59f5c;hpb=43686d6411284a401e84ab2f0227b0b51c2aab21;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/doublest.h b/gdb/doublest.h index ccd9233627..920d7026db 100644 --- a/gdb/doublest.h +++ b/gdb/doublest.h @@ -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 @@ -68,6 +66,12 @@ extern char *floatformat_mantissa (const struct floatformat *, char *); 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,