2010-03-17 Stan Shebs <stan@codesourcery.com>
authorStan Shebs <shebs@codesourcery.com>
Wed, 17 Mar 2010 22:04:43 +0000 (22:04 +0000)
committerStan Shebs <shebs@codesourcery.com>
Wed, 17 Mar 2010 22:04:43 +0000 (22:04 +0000)
commit400c6af0377b41453355299e9393a52263f4a834
tree82355d6b37f45abf19392712a0c747cf989c4f6e
parenta3b2a86bb7263eafa4f11a3b7cc0fb3adcfe1d39
2010-03-17 Stan Shebs  <stan@codesourcery.com>

* ax-gdb.h (struct axs_value): New field optimized_out.
(gen_trace_for_var): Add gdbarch argument.
* ax-gdb.c (gen_trace_static_fields): New function.
(gen_traced_pop): Call it, add gdbarch argument.
(gen_trace_for_expr): Update call to it.
(gen_trace_for_var): Ditto, and report optimized-out variables.
(gen_struct_ref_recursive): Check for optimized-out value.
(gen_struct_elt_for_reference): Ditto.
(gen_static_field): Pass gdbarch instead of expression, assume
optimization if field not found.
(gen_var_ref): Set the optimized_out flag.
(gen_expr): Error on optimized-out variable.
* tracepoint.c (collect_symbol): Handle struct-valued vars as
expressions, skip optimized-out variables with computed locations.
* dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
erroring out if location expression missing.
(loclist_tracepoint_var_ref): Don't error out here.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/ax-gdb.h
gdb/dwarf2loc.c
gdb/tracepoint.c