summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorabidh <abidh>2013-02-14 10:19:38 +0000
committerabidh <abidh>2013-02-14 10:19:38 +0000
commit32d784b33026d7800a88ff5b2dfc25c42140261e (patch)
tree7628fb857811d024c70d1d6753eb476a14adc01b /gdb/tracepoint.h
parent5f51babfc7c8e0275abf428d1bac9c686cb53438 (diff)
downloadgdb-32d784b33026d7800a88ff5b2dfc25c42140261e.tar.gz
2013-02-14 Pedro Alves <pedro@codesourcery.com>
Hafiz Abid Qadeer <abidh@codesourcery.com> gdb/ * tracepoint.h (validate_trace_state_variable_name): Declare. * tracepoint.c (validate_trace_state_variable_name): New. (trace_variable_command): Parse the trace state variable's name without using parse_expression. Do several validations. * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the trace state variable's name with parse_expression. Validate it. gdb/testsuite/ * gdb.trace/tsv.exp: Adjust tests, and add a few more.
Diffstat (limited to 'gdb/tracepoint.h')
-rw-r--r--gdb/tracepoint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index f95bb545b2c..4a3df39e308 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -243,6 +243,7 @@ extern void encode_actions (struct breakpoint *t, struct bp_location *tloc,
char ***tdp_actions, char ***stepping_actions);
extern void validate_actionline (char **, struct breakpoint *);
+extern void validate_trace_state_variable_name (const char *name);
extern struct trace_state_variable *find_trace_state_variable (const char *name);
extern struct trace_state_variable *create_trace_state_variable (const char *name);