Tracepoint is a point in the target program where start or stop triggers are set at a line of the source code or the assembly code or on the memory address. The start and stop tracepoints are triggers for enabling and disabling the trace output. Tracepoints are used for optimizing trace collection by tracing only on the code of interest and discarding the rest of the code.
The advantage of setting start and stop tracepoints is that the trace data can be captured from the specific part of the program. This solves the problem of tracing a large application because a full trace is sometimes extremely difficult to follow. Tracepoints reduce intrusiveness and help collecting the trace data closer to the point of interest.
The trace data displays the trace result based on the tracepoints. This chapter explains how to set start and stop tracepoints and how to enable and disable a tracepoint.
The tracepoints for the HCS08 target can be set on:
The tracepoints on addresses and source files can be set in the editor area and the Disassembly view. The source line tracepoint is set in the editor area, and the address tracepoint is set in the Disassembly view.
The tracepoints on data and memory can be set from the Variables and Memory views.
This chapter consists of the following topics: