Software

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 the instruction address, function name, source filename, 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. Use the navigation keys Up, Down, Left, Right, and Tab to locate the source/disassembly view for the trace records.

The program trace shown in the TraceStack view is, by default, reduced to the latest 20,000 records. 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 as expected. 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 by using the up and down arrow buttons in the trace view window toolbar.

There are some exceptional cases where missing some program traces. If so, there will be a packet with red color, representing 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 continue without any break except for adding a red-colored packet with a sequence number.

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