3.8. Viewing trace output with source code

When you have captured your trace data, you can view it in the Trace window. Trace decompression occurs only for the sections of trace data that are required by the currently displayed page of the Trace window.

Show the Trace window by selecting View Trace from the Trace menu. Trace information is shown in the Trace window when all of the following are true:

You can choose to display:

Addresses and data

This shows the sequence of ARM or Thumb instructions captured by the ETM, with the oldest executed instructions at the top of the view. See Displaying only traced instructions and data.

Sync view

Do this by synchronizing the Trace window to the source file view. Activate a debugger window for the relevant source file, and select (checkmark) Sync view on the Trace window context menu. See Displaying trace information in one window, source lines in another.

Interleave source

Do this by clicking Interleave source in the Trace window context menu. See Displaying trace information mixed with corresponding source lines.

The Trace window context menu items relating to locating source and changing view options are disabled until trace information is available.

The Trace window shows a view of the decoded trace information. One of the lines in the Trace window is highlighted, and this is called the trace cursor. You can show different parts of the trace information in any of the following ways:

The information shown in the Trace window can also provide a location for the debugger memory, source, or disassembly windows:

To keep a debugger window in step with the Trace window, so that when the Trace window cursor moves the debugger window contents change as well, checkmark the Sync view item on the Trace context menu. You cannot synchronize a source and a disassembly view to the trace cursor at the same time.

Copyright © 2000-2002 ARM Limited. All rights reserved.ARM DUI 0118C
Non-Confidential