aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/disconnected-tracing.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-01-18 06:40:58 +0000
committerYao Qi <yao@codesourcery.com>2013-01-18 06:40:58 +0000
commit5ae4861a11c9487e991607689ebabc2e0008a670 (patch)
treebf5e32a7baa077facd26ccb53b5f59f6996b65af /gdb/testsuite/gdb.trace/disconnected-tracing.c
parent257e7a09728bb1b846ff4e1a7587832b050d38b9 (diff)
downloadgdb-5ae4861a11c9487e991607689ebabc2e0008a670.zip
gdb-5ae4861a11c9487e991607689ebabc2e0008a670.tar.gz
gdb-5ae4861a11c9487e991607689ebabc2e0008a670.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.trace/disconnected-tracing.c')
-rw-r--r--gdb/testsuite/gdb.trace/disconnected-tracing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/disconnected-tracing.c b/gdb/testsuite/gdb.trace/disconnected-tracing.c
index 9776a61..f7de31f 100644
--- a/gdb/testsuite/gdb.trace/disconnected-tracing.c
+++ b/gdb/testsuite/gdb.trace/disconnected-tracing.c
@@ -19,6 +19,14 @@ void
end (void)
{}
+struct foo
+{
+ int bar1;
+ long bar2;
+};
+
+struct foo foo;
+
void
start (void)
{}