2010-04-23 Stan Shebs <stan@codesourcery.com>
authorStan Shebs <shebs@codesourcery.com>
Fri, 23 Apr 2010 23:51:05 +0000 (23:51 +0000)
committerStan Shebs <shebs@codesourcery.com>
Fri, 23 Apr 2010 23:51:05 +0000 (23:51 +0000)
commit35c9c7ba77c07c52aa0c81e62919bb3984b86c3a
tree80168b1331d2d34a8af2b383c82b14872fbaa0d0
parent492928e407c9c69d0cd998a14f82cdd839c8f71a
2010-04-23  Stan Shebs  <stan@codesourcery.com>

* ax.h (struct agent_expr): Merge in agent_reqs fields, add some
comments.
(struct agent_reqs): Remove.
(ax_reg_mask): Declare.
* ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
(free_agent_expr): Free reg_mask.
(ax_print): Add scope and register mask info.
(ax_reqs): Remove agent_reqs argument, use agent expression
fields, and move part of register mask computation to...
(ax_reg_mask): New function.
* ax-gdb.c (gen_trace_static_fields): Call it.
(gen_traced_pop): Ditto.
(is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
(gen_trace_for_var): Pass gdbarch to new_agent_expr.
(gen_trace_for_expr): Ditto, and clear optimized_out flag.
(gen_eval_for_expr): Ditto, and require an rvalue.
(agent_command): Call ax_reqs.
(agent_eval_command): Ditto.
* tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
(validate_action_line): Ditto.
(collect_symbol): Ditto.
(encode_actions_1): Ditto.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/ax-general.c
gdb/ax.h
gdb/tracepoint.c