From 782b2b07842dcec0cbd9c4248b155d7acf8c8dbe Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 14 Jul 2009 21:40:34 +0000 Subject: gdb/ Conditional tracepoints. * ax-gdb.h (gen_eval_for_expr): Declare. * ax-gdb.c (gen_expr): Generate bytecodes for BINOP_EQUAL and other comparisons. (gen_eval_for_expr): New function. (agent_eval_command): New maintenance command. (_initialize_ax_gdb): Define the command. * remote.c (struct remote_state): New field cond_tracepoints. (PACKET_ConditionalTracepoints): New packet config type. (remote_cond_tracepoint_feature): New function. (remote_protocol_features): Add ConditionalTracepoints. (remote_supports_cond_tracepoints): New function. (_initialize_remote): Add ConditionalTracepoints. * tracepoint.c (download_tracepoint): Add conditional. * NEWS: Mention conditional tracepoints. gdb/doc/ * gdb.texinfo (Tracepoint Conditions): New section. (General Query Packets): Describe ConditionalTracepoints. (Tracepoint Packets): Describe condition field. (Maintenance Commands): Describe maint agent-eval. * agentexpr.texi (Using Agent Expressions): Mention eval usage. gdb/testsuite/ * gdb.trace/tracecmd.exp: Add basic test of tracepoint conditions. --- gdb/ax-gdb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/ax-gdb.h') diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h index 57e889e..5d03c18 100644 --- a/gdb/ax-gdb.h +++ b/gdb/ax-gdb.h @@ -99,4 +99,6 @@ struct axs_value function to discover which registers the expression uses. */ extern struct agent_expr *gen_trace_for_expr (CORE_ADDR, struct expression *); +extern struct agent_expr *gen_eval_for_expr (CORE_ADDR, struct expression *); + #endif /* AX_GDB_H */ -- cgit v1.1