6.4. Setting a trace start and end point

Trace start and end points enable you to start and stop trace capture at specific locations. Any functions that are called between the start and end points are also traced.

To set a trace start or end point:

  1. In a source or disassembly view, right-click on the gray margin to the left of the required location to display the context menu.

  2. Select Insert Tracepoint... from the context menu to open the New Tracepoint dialog box. Figure 6.2 shows an example:

    Figure 6.2. New Tracepoint dialog box

    New Tracepoint dialog box

    Note

    The options that appear in this dialog box depend on the available resources and on the target that you are using. In some cases, you must clear an existing tracepoint or range to free up the resources you might require for a new tracepoint or range.

  3. Select the required tracepoint type from the New Tracepoint dialog box:

    Trace Start Point

    Sets a trace start point at the selected location in the source or disassembly view.

    Note

    If you do not set a Trace End Point in combination with a Trace Start Point, all-inclusive trace information is returned from the start point onward.

    This option is not available for RVISS targets.

    Trace Start Point (Instruction Only)

    Sets a trace start point at the selected location in the source or disassembly view. Tracing begins at the start point, and instructions only are traced.

    Note

    If you do not set a Trace End Point in combination with a Trace Start Point, all-inclusive trace information is returned from the start point onward.

    This option is only available for RVISS targets.

    Trace Start Point (Instruction and Data)

    Sets a trace start point at the selected location in the source or disassembly view. Tracing begins at the start point, and both instructions and data are traced.

    Note

    If you do not set a Trace End Point in combination with a Trace Start Point, all-inclusive trace information is returned from the start point onward.

    This option is only available for RVISS targets.

    Trace End Point

    Sets a trace end point at the selected location in the source or disassembly view. That is, the point where trace collection stops.

    Note

    Setting a trace end point but no trace start point results in different behavior depending on your system:

    • If you are using an ETM-based system, no trace information is returned, and a warning is displayed in the Cmd tab of the Output view.

    • If you are using a simulator, tracing begins immediately and trace information is returned up until the trace end point is traced.

  4. Click OK. The selected tracepoint is set as follows:

    • for a trace start point, an arrow is placed in the left margin next to the line of code you have selected

    • for a trace end point, an arrow is placed in the left margin next to the line of code you have selected.

Note

For hardware targets, you can set trace ranges in conjunction with trace start and end points.

See also:

Copyright © 2006-2011 ARM. All rights reserved.ARM DUI 0322G
Non-ConfidentialID052111