gdb/gdbserver:
authorYao Qi <yao@codesourcery.com>
Fri, 18 Jan 2013 06:40:58 +0000 (06:40 +0000)
committerYao Qi <yao@codesourcery.com>
Fri, 18 Jan 2013 06:40:58 +0000 (06:40 +0000)
commit5ae4861a11c9487e991607689ebabc2e0008a670
treebf5e32a7baa077facd26ccb53b5f59f6996b65af
parent257e7a09728bb1b846ff4e1a7587832b050d38b9
gdb/gdbserver:

* ax.h (struct eval_agent_expr_context): New.
(gdb_eval_agent_expr): Update declaration.
* ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
TFRAME.  Add new argument CTX.
* server.h (struct eval_agent_expr_context): Declare.
(agent_mem_read, agent_tsv_read): Update declaration.
(agent_mem_read_string): Likewise.
* tracepoint.c (eval_tracepoint_agent_expr): Remove.
(add_traceframe_block): Add new argument TPOINT.
Increase TPOINT->traceframe_usage.
(do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
eval_tracepoint_agent_expr.
(condition_true_at_tracepoint): Likewise.
(agent_mem_read): Remove argument TFRAME.  Add argument CTX.
(agent_mem_read_string, agent_tsv_read): Likewise.
Callers update.

gdb/testsuite:

* gdb.trace/infotrace.exp: Check 'traceframe usage' in the
output of 'info tracepoints'.
* gdb.trace/disconnected-tracing.exp (disconnected_tracing):
Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
* gdb.trace/disconnected-tracing.c (struct foo): New.
gdb/gdbserver/ChangeLog
gdb/gdbserver/ax.c
gdb/gdbserver/ax.h
gdb/gdbserver/mem-break.c
gdb/gdbserver/server.h
gdb/gdbserver/tracepoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/disconnected-tracing.c
gdb/testsuite/gdb.trace/disconnected-tracing.exp
gdb/testsuite/gdb.trace/infotrace.exp
gdb/testsuite/gdb.trace/tstatus.exp