value against the lengths of the target's floating-point types,
not the host's. Add support for `long double'.
+2001-12-07 Jim Blandy <jimb@redhat.com>
+
+ * printcmd.c (print_scalar_formatted): Compare the length of the
+ value against the lengths of the target's floating-point types,
+ not the host's. Add support for `long double'.
+
2001-12-07 Martin M. Hunt <hunt@redhat.com>
* configure.in: Check for sys/filio.h
break;
case 'f':
- if (len == sizeof (float))
+ if (len == TYPE_LENGTH (builtin_type_float))
type = builtin_type_float;
- else if (len == sizeof (double))
+ else if (len == TYPE_LENGTH (builtin_type_double))
type = builtin_type_double;
+ else if (len == TYPE_LENGTH (builtin_type_long_double))
+ type = builtin_type_long_double;
print_floating (valaddr, type, stream);
break;