forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -1491,7 +1491,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
|
||||
dbl_valu = (char *)
|
||||
obstack_alloc (&objfile->symbol_obstack,
|
||||
TYPE_LENGTH (SYMBOL_TYPE (sym)));
|
||||
store_floating (dbl_valu, TYPE_LENGTH (SYMBOL_TYPE (sym)), d);
|
||||
store_typed_floating (dbl_valu, SYMBOL_TYPE (sym), d);
|
||||
SYMBOL_VALUE_BYTES (sym) = dbl_valu;
|
||||
SYMBOL_CLASS (sym) = LOC_CONST_BYTES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user