diff options
author | Jim Blandy <jimb@codesourcery.com> | 2006-01-17 22:30:29 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2006-01-17 22:30:29 +0000 |
commit | 39ca65a96dfab23c80a73405ee9ac27adc7d361b (patch) | |
tree | b73942784189d124a0885f5338c3fe72355fa783 /gdb/stabsread.c | |
parent | 1861774ed3ebffc2fbc369bf3fdf4ae32549f72b (diff) | |
download | gdb-39ca65a96dfab23c80a73405ee9ac27adc7d361b.tar.gz |
gdb/ChangeLog:
2006-01-17 Jim Blandy <jimb@redhat.com>
* symtab.h (struct general_symbol_info): Use gdb_byte for
value.bytes.
* stabsread.c (define_symbol): Use gdb_byte for the buffer holding
a floating-point constant's value.
* dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
to char *.
* findvar.c (read_var_value): Eliminate needless temporary.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index e346ad285fd..428cbc2e8bf 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -722,7 +722,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, case 'r': { double d = atof (p); - char *dbl_valu; + gdb_byte *dbl_valu; /* FIXME-if-picky-about-floating-accuracy: Should be using target arithmetic to get the value. real.c in GCC @@ -737,7 +737,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, SYMBOL_TYPE (sym) = lookup_fundamental_type (objfile, FT_DBL_PREC_FLOAT); - dbl_valu = (char *) + dbl_valu = obstack_alloc (&objfile->objfile_obstack, TYPE_LENGTH (SYMBOL_TYPE (sym))); store_typed_floating (dbl_valu, SYMBOL_TYPE (sym), d); |