2013-02-14 Pedro Alves <pedro@codesourcery.com>
authorHafiz Abid Qadeer <abidh@codesourcery.com>
Thu, 14 Feb 2013 10:19:39 +0000 (10:19 +0000)
committerHafiz Abid Qadeer <abidh@codesourcery.com>
Thu, 14 Feb 2013 10:19:39 +0000 (10:19 +0000)
commit1773c82c922d001ce8756eb9d7843c7a4abf4fd2
tree928a8882b0323ad7e2ea6162e08e869d7b88afc5
parent53778a978f6a16eddc0532b0f6990c586612ce2c
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.
gdb/ChangeLog
gdb/mi/mi-main.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tsv.exp
gdb/tracepoint.c
gdb/tracepoint.h