aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 2f07114..60a34be 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -623,10 +623,16 @@ print_floating (valaddr, type, stream)
high &= 0xfffff;
}
else
- /* Extended. We can't detect NaNs for extendeds yet. Also note
- that currently extendeds get nuked to double in
- REGISTER_CONVERTIBLE. */
- is_nan = 0;
+ {
+#ifdef TARGET_ANALYZE_FLOATING
+ TARGET_ANALYZE_FLOATING;
+#else
+ /* Extended. We can't detect extended NaNs for this target.
+ Also note that currently extendeds get nuked to double in
+ REGISTER_CONVERTIBLE. */
+ is_nan = 0;
+#endif
+ }
if (is_nan)
{
@@ -635,7 +641,7 @@ print_floating (valaddr, type, stream)
(in an implementation-defined manner) distinguish between
signaling and quiet NaN's. */
if (high)
- fprintf_filtered (stream, "-NaN(0x%lx%.8lx)" + nonnegative,
+ fprintf_filtered (stream, "-NaN(0x%lx%.8lx)" + !!nonnegative,
high, low);
else
fprintf_filtered (stream, "-NaN(0x%lx)" + nonnegative, low);