aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-01-17 22:30:29 +0000
committerJim Blandy <jimb@codesourcery.com>2006-01-17 22:30:29 +0000
commit4e38b3864ce96e88108671bd271c71ee461e9404 (patch)
treee67a318d3dcc422bb30eeffc3137a04a32922a1b /gdb/findvar.c
parent1193688db202f828c9e3331ed42e2362004cacb8 (diff)
downloadgdb-4e38b3864ce96e88108671bd271c71ee461e9404.zip
gdb-4e38b3864ce96e88108671bd271c71ee461e9404.tar.gz
gdb-4e38b3864ce96e88108671bd271c71ee461e9404.tar.bz2
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/findvar.c')
-rw-r--r--gdb/findvar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 7d06085..0cda35e 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -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;
}