gdb.info: Tracepoint Variables
Go backward to Analyze Collected Data
Go up to Tracepoints
Go to the top op gdb
Convenience Variables for Tracepoints
The current trace snapshot (a.k.a. "frame") number, or -1 if no
snapshot is selected.
The tracepoint for the current trace snapshot.
The line number for the current trace snapshot.
`(char ) $trace_file'
The source file for the current trace snapshot.
`(char ) $trace_func'
The name of the function containing `$tracepoint'.
Note: `$trace_file' is not suitable for use in `printf', use
Here's a simple example of using these convenience variables for
stepping through all the trace snapshots and printing some of their
(gdb) tfind start
(gdb) while $trace_frame != -1
> output $trace_file
> printf ", line %d (tracepoint #%d)\n", $trace_line, $tracepoint
Created Mon Nov 8 17:42:37 2004 on tillpc with info_to_html version 0.9.6.