mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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.
This commit is contained in:
@@ -433,9 +433,7 @@ read_var_value (struct symbol *var, struct frame_info *frame)
|
||||
|
||||
case LOC_CONST_BYTES:
|
||||
{
|
||||
char *bytes_addr;
|
||||
bytes_addr = SYMBOL_VALUE_BYTES (var);
|
||||
memcpy (value_contents_raw (v), bytes_addr, len);
|
||||
memcpy (value_contents_raw (v), SYMBOL_VALUE_BYTES (var), len);
|
||||
VALUE_LVAL (v) = not_lval;
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user