aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-03-07 16:09:03 +0000
committerMark Kettenis <kettenis@gnu.org>2001-03-07 16:09:03 +0000
commit39424bef9143202f0b7fc25b73c81db580eb253c (patch)
treeb0005bf91d34da2269e757c75722bbd9ed51139f /gdb/defs.h
parentbcdd92f3e09bfbb42f46281bab7619f8c40d10a3 (diff)
downloadgdb-39424bef9143202f0b7fc25b73c81db580eb253c.zip
gdb-39424bef9143202f0b7fc25b73c81db580eb253c.tar.gz
gdb-39424bef9143202f0b7fc25b73c81db580eb253c.tar.bz2
* defs.h: Provide prototypes for floatformat_is_negative,
floatformat_is_nan and floatformat_mantissa. * utils.c: Include "gdb_assert.h". (floatformat_is_negative): New function. (floatformat_is_nan): New function. (floatformat_mantissa): New function. * valprint.c: Include "floatformat.h". (print_floating): Get rid of the Linux-specific TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the help these new functions. Print NaN's in a format conforming to ISO C99.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 6974fe2..c6a4637 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1124,8 +1124,12 @@ extern void floatformat_to_doublest (const struct floatformat *,
char *, DOUBLEST *);
extern void floatformat_from_doublest (const struct floatformat *,
DOUBLEST *, char *);
-extern DOUBLEST extract_floating (void *, int);
+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 *);
+
+extern DOUBLEST extract_floating (void *, int);
extern void store_floating (void *, int, DOUBLEST);
/* On some machines there are bits in addresses which are not really