| |||
| Home > Setting Conditional Tracepoints > Setting a tracepoint that activates after a number of passes | |||
For ETM-based targets, you can delay the activation of a tracepoint until it has been passed over a specific number of times.
To delay the activation of a tracepoint:
In the source or disassembly view, right-click on the gray margin to the left of the required location to display context menu.
Select Create Tracepoint... from the context menu to display the Create Tracepoint dialog box. Figure 7.4 shows an example.
Select the required tracepoint type from the first drop-down list.
Select the required tracepoint comparison type from the second drop-down list. The tracepoint comparison type determines which of the remaining parameters you can set.
Specify the address or address range to be traced as appropriate:
a line number in the
source code, with or without a module name prefix, for example \TRACE\#212:0
an address or address range
a function name, for example, Func_1
a function entry point, for example, Func_1\@entry.
Enter the required number of passes into the Pass text
box. If you do not set this item, it defaults to zero (0),
and the tracepoint is activated on every pass.
If you specify a range in the when location
field, then the ETM counters are decremented on every cycle executed
in that range. ETM counters can be in the range 0 to 65535.
Set any other parameters as required.
Click OK to set the tracepoint and close the Create Tracepoint dialog box.
See also:
Entering addresses, address ranges, and data address comparisons
the following in the RealView Debugger Command Line Reference Guide:
Using
variables in the debugger for details of the @entry symbol.