Trace Stack View

Trace Stack View is populated with program trace information while the target is in a running or debugging state.

Trace Stack View contains a sequence number, source and destination address, and a repeat count. A new program trace record is shown when a branching instruction happens on the target, for example as a function call or a return from a function.

The source and destination contain instruction address, function name, source file name, and line number. If the source line cannot be mapped only the instruction address is given. Double-clicking on the source or destination navigates the cursor in the editor to the appropriate line. Navigation keys Up, Down, Left, Right, and Tab can be used to locate the source/disassembly view for the trace records.

The program trace that is shown in the TraceStack view is cut down to the latest 20,000 records by default. The threshold value can be changed using the slider.

The program trace records are highlighted with a yellow color when the branching instruction was not an expected one. Unexpected branches usually happen due to some exception, and the entry and exit of the exception handler are highlighted with yellow color. The branching inside the exception is not highlighted.

Figure 1. Exception Record

Tip:

The next and previous exception records can be easily navigated to by using the up and down arrow buttons in the trace view window toolbar.

There are some exceptional cases where some program traces could be missed. In that case, there will be a packet with red color which represents that there is some discontinuation of the program trace information in the sequence. Since the number of missed packets is unknown, the sequence number shown in the Trace Stack view will be continued without any break except adding a red colored packet with a sequence number for it.

Note: The disassembly view is not supported when navigation keys are used, but it is supported when the record is double-clicked using a mouse.