Next: Trace Files, Previous: Analyze Collected Data, Up: Tracepoints [Contents][Index]
(int) $trace_frameThe current trace snapshot (a.k.a. frame) number, or -1 if no snapshot is selected.
(int) $tracepointThe tracepoint for the current trace snapshot.
(int) $trace_lineThe line number for the current trace snapshot.
(char []) $trace_fileThe source file for the current trace snapshot.
(char []) $trace_funcThe name of the function containing $tracepoint.
Note: $trace_file is not suitable for use in printf,
use output instead.
Here’s a simple example of using these convenience variables for stepping through all the trace snapshots and printing some of their data. Note that these are not the same as trace state variables, which are managed by the target.
(gdb) tfind start (gdb) while $trace_frame != -1 > output $trace_file > printf ", line %d (tracepoint #%d)\n", $trace_line, $tracepoint > tfind > end