| |||
| Home > Setting Unconditional Tracepoints > 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:
In a source or disassembly view, right-click on the gray margin to the left of the required location to display the context menu.
Select Insert Tracepoint... from the context menu to open the New Tracepoint dialog box. Figure 6.2 shows an example:
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.
Select the required tracepoint type from the New Tracepoint dialog box:
Sets a trace start point at the selected location in the source or disassembly view.
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.
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.
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.
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.
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.
Sets a trace end point at the selected location in the source or disassembly view. That is, the point where trace collection stops.
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.
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.
For hardware targets, you can set trace ranges in conjunction with trace start and end points.
See also: