diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 73a13d3e576..687e2fe6494 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-22 Jan Kratochvil + + * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address + for reference entry value target data value. + 2014-07-22 Jan Kratochvil * stack.c (read_frame_arg): Verify value_optimized_out before calling diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index fcab9b91556..b1c7ee1a6dc 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -1312,7 +1312,6 @@ value_of_dwarf_reg_entry (struct type *type, struct frame_info *frame, struct value *outer_val, *target_val, *val; struct call_site_parameter *parameter; struct dwarf2_per_cu_data *caller_per_cu; - CORE_ADDR addr; parameter = dwarf_expr_reg_to_entry_parameter (frame, kind, kind_u, &caller_per_cu); @@ -1335,14 +1334,6 @@ value_of_dwarf_reg_entry (struct type *type, struct frame_info *frame, target_type, caller_frame, caller_per_cu); - /* value_as_address dereferences TYPE_CODE_REF. */ - addr = extract_typed_address (value_contents (outer_val), checked_type); - - /* The target entry value has artificial address of the entry value - reference. */ - VALUE_LVAL (target_val) = lval_memory; - set_value_address (target_val, addr); - release_value (target_val); val = allocate_computed_value (type, &entry_data_value_funcs, target_val /* closure */);