aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <abidh@codesourcery.com>2013-02-14 10:19:39 +0000
committerHafiz Abid Qadeer <abidh@codesourcery.com>2013-02-14 10:19:39 +0000
commit1773c82c922d001ce8756eb9d7843c7a4abf4fd2 (patch)
tree928a8882b0323ad7e2ea6162e08e869d7b88afc5 /gdb/tracepoint.h
parent53778a978f6a16eddc0532b0f6990c586612ce2c (diff)
downloadgdb-1773c82c922d001ce8756eb9d7843c7a4abf4fd2.zip
gdb-1773c82c922d001ce8756eb9d7843c7a4abf4fd2.tar.gz
gdb-1773c82c922d001ce8756eb9d7843c7a4abf4fd2.tar.bz2
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 f95bb54..4a3df39 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);