diff options
author | Daniel Jacobowitz <dan@debian.org> | 2003-09-15 20:15:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2003-09-15 20:15:19 +0000 |
commit | a5c06136568cfc1f85faeeaadbc6f2fedfae55c6 (patch) | |
tree | bf02f4a4b3246fd74221fb24f7d729e5663bee67 /gdb/values.c | |
parent | a007b69544e49c4d785efe619ea230afe88b3674 (diff) | |
download | gdb-a5c06136568cfc1f85faeeaadbc6f2fedfae55c6.tar.gz |
* values.c (unpack_double): Call floatformat_is_valid.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c index 7b6ce6fc210..652a7a93a52 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -739,7 +739,14 @@ unpack_double (struct type *type, const char *valaddr, int *invp) also not defined either. Oops! Hopefully someone will add both the missing floatformat - definitions and floatformat_is_invalid() function. */ + definitions and the new cases for floatformat_is_valid (). */ + + if (!floatformat_is_valid (floatformat_from_type (type), valaddr)) + { + *invp = 1; + return 0.0; + } + return extract_typed_floating (valaddr, type); } else if (nosign) |