* tracepoint.c (tfile_get_trace_state_variable_value): Look for
authorYao Qi <yao@codesourcery.com>
Wed, 13 Mar 2013 03:40:27 +0000 (03:40 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 13 Mar 2013 03:40:27 +0000 (03:40 +0000)
commit8ddb196517f30b5e304663e428f345daf030230b
treec7d0996f2f0192f644f105aa7c6e111b50060c27
parent045dd51fd8dd7ae16b74d5154156b2d984d021b9
* tracepoint.c (tfile_get_trace_state_variable_value): Look for
the last matched 'V' blcok in trace frame.

gdb/gdbserver:

* tracepoint.c (traceframe_read_tsv): Look for the last matched
'V' block in trace frame.

gdb/testsuite:

* gdb.trace/tsv.exp (check_tsv): New.
(top level): Save a tfile on current trace session. Call
check_tsv on live target.  Load the tfile with target tfile
and call check_tsv again.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tsv.exp
gdb/tracepoint.c