diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-09-24 17:16:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-09-24 17:16:53 +0000 |
commit | 96d2f608dcfdd177211dbb65b607d3bc03d1b320 (patch) | |
tree | d8af318ce072f6251da5ca6bc159c7a6b490a53d /gdb/values.c | |
parent | 2f8d8971c6c9992e015c50639186db1e6ad2f0c4 (diff) | |
download | gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.zip gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.tar.gz gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.tar.bz2 |
* doublest.h (store_floating, extract_floating): Add comment
indicating these functions are deprecated.
(extract_typed_floating, store_typed_floating): Declare.
* doublest.c: Include "gdbtypes.h".
(extract_typed_floating, store_typed_floating): Define.
* stabsread.c (define_symbol): Use store_typed_floating.
* valarith.c (value_binop): Ditto.
* values.c (unpack_long): Use extract_typed_floating.
(unpack_double): Ditto.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/values.c b/gdb/values.c index c41afb5..ededf9d 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -645,7 +645,7 @@ unpack_long (struct type *type, char *valaddr) return extract_signed_integer (valaddr, len); case TYPE_CODE_FLT: - return extract_floating (valaddr, len); + return extract_typed_floating (valaddr, type); case TYPE_CODE_PTR: case TYPE_CODE_REF: @@ -689,7 +689,7 @@ unpack_double (struct type *type, char *valaddr, int *invp) return 1.234567891011121314; } #endif - return extract_floating (valaddr, len); + return extract_typed_floating (valaddr, type); } else if (nosign) { @@ -1297,7 +1297,7 @@ value_from_double (struct type *type, DOUBLEST num) if (code == TYPE_CODE_FLT) { - store_floating (VALUE_CONTENTS_RAW (val), len, num); + store_typed_floating (VALUE_CONTENTS_RAW (val), base_type, num); } else error ("Unexpected type encountered for floating constant."); |