* dwarf2loc.c (locexpr_tracepoint_var_ref)
(loclist_tracepoint_var_ref): Handle optimized out values.
This commit is contained in:
parent
cce7e648b9
commit
cabe9ab66e
|
@ -1,3 +1,8 @@
|
||||||
|
2010-07-01 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* dwarf2loc.c (locexpr_tracepoint_var_ref)
|
||||||
|
(loclist_tracepoint_var_ref): Handle optimized out values.
|
||||||
|
|
||||||
2010-07-01 Pedro Alves <pedro@codesourcery.com>
|
2010-07-01 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
|
* breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
|
||||||
|
|
|
@ -2416,6 +2416,9 @@ locexpr_tracepoint_var_ref (struct symbol *symbol, struct gdbarch *gdbarch,
|
||||||
struct dwarf2_locexpr_baton *dlbaton = SYMBOL_LOCATION_BATON (symbol);
|
struct dwarf2_locexpr_baton *dlbaton = SYMBOL_LOCATION_BATON (symbol);
|
||||||
unsigned int addr_size = dwarf2_per_cu_addr_size (dlbaton->per_cu);
|
unsigned int addr_size = dwarf2_per_cu_addr_size (dlbaton->per_cu);
|
||||||
|
|
||||||
|
if (dlbaton->data == NULL || dlbaton->size == 0)
|
||||||
|
value->optimized_out = 1;
|
||||||
|
else
|
||||||
compile_dwarf_to_ax (ax, value, gdbarch, addr_size,
|
compile_dwarf_to_ax (ax, value, gdbarch, addr_size,
|
||||||
dlbaton->data, dlbaton->data + dlbaton->size,
|
dlbaton->data, dlbaton->data + dlbaton->size,
|
||||||
dlbaton->per_cu);
|
dlbaton->per_cu);
|
||||||
|
@ -2568,7 +2571,9 @@ loclist_tracepoint_var_ref (struct symbol *symbol, struct gdbarch *gdbarch,
|
||||||
unsigned int addr_size = dwarf2_per_cu_addr_size (dlbaton->per_cu);
|
unsigned int addr_size = dwarf2_per_cu_addr_size (dlbaton->per_cu);
|
||||||
|
|
||||||
data = find_location_expression (dlbaton, &size, ax->scope);
|
data = find_location_expression (dlbaton, &size, ax->scope);
|
||||||
|
if (data == NULL || size == 0)
|
||||||
|
value->optimized_out = 1;
|
||||||
|
else
|
||||||
compile_dwarf_to_ax (ax, value, gdbarch, addr_size, data, data + size,
|
compile_dwarf_to_ax (ax, value, gdbarch, addr_size, data, data + size,
|
||||||
dlbaton->per_cu);
|
dlbaton->per_cu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue