aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-09-24 17:16:53 +0000
committerAndrew Cagney <cagney@redhat.com>2001-09-24 17:16:53 +0000
commit96d2f608dcfdd177211dbb65b607d3bc03d1b320 (patch)
treed8af318ce072f6251da5ca6bc159c7a6b490a53d /gdb/valarith.c
parent2f8d8971c6c9992e015c50639186db1e6ad2f0c4 (diff)
downloadfsf-binutils-gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.zip
fsf-binutils-gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.tar.gz
fsf-binutils-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/valarith.c')
-rw-r--r--gdb/valarith.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index d421a02..e0598d0 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -763,8 +763,7 @@ value_binop (value_ptr arg1, value_ptr arg2, enum exp_opcode op)
else
val = allocate_value (builtin_type_double);
- store_floating (VALUE_CONTENTS_RAW (val), TYPE_LENGTH (VALUE_TYPE (val)),
- v);
+ store_typed_floating (VALUE_CONTENTS_RAW (val), VALUE_TYPE (val), v);
}
else if (TYPE_CODE (type1) == TYPE_CODE_BOOL
&&