| |||
| Home > Tracing with RealView Debugger > Setting conditional tracepoints > Using the Trace on X after A==B dialog box | |||
This Trace on X after A==B dialog box, shown in Figure 2.13, enables you to specify a tracepoint chain that only becomes active after a specified value is written to or read from a specified memory location. For example, you can set a tracepoint on a specified function being executed but only after zero has been written to a specified variable.
To set a conditional Trace on X after A==B tracepoint:
Select Debug → Tracepoints → Trace on X after A==B... from the Code window main menu to display the Trace on X after A==B dialog box.
For the first tracepoint unit:
Select the type of tracepoint type that you want to set, for example Trigger (see Tracepoint types).
Select the tracepoint comparison type (see Tracepoint comparison types), for example Data Access.
Specify the location to test. The location can be:
a line number in the source code, with or without a module name prefix
the address of an instruction, variable, or data value, or a range of addresses (see Entering addresses, address ranges, and data address comparisons)
a function name, for example, Func_1
a function entry point, for example, Func_1\@entry (see
the RealView Developer Kit v2.2 Command Line Reference
Guide for more details on using the @entry symbol).
This tracepoint unit adds the hw_and:”then-next” command
qualifier to the CLI command generated by RealView Debugger, and is the
first tracepoint in the chain.
Set the second tracepoint unit:
Select the tracepoint comparison type, for example Data Access.
Specify a variable name or data value address (see Entering data value comparisons).
Specify the value you want to compare the variable against (see Entering data value comparisons). You must enter a value in this field.
This tracepoint unit adds the hw_and:”then-prev” command
qualifier to the CLI command generated by RealView Debugger, and is the
second tracepoint in the chain.
Click OK to set the tracepoint as specified.