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:
Jim Blandy
2006-01-17 22:30:29 +00:00
parent 1193688db2
commit 4e38b3864c
5 changed files with 14 additions and 8 deletions

View File

@@ -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;
}