2.7.7. 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.

Figure 2.13. Trace on X after A==B dialog box

Trace on X after A==B dialog box

Setting a Trace on X after A==B tracepoint chain

To set a conditional Trace on X after A==B tracepoint:

  1. 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.

  2. For the first tracepoint unit:

    1. Select the type of tracepoint type that you want to set, for example Trigger (see Tracepoint types).

    2. Select the tracepoint comparison type (see Tracepoint comparison types), for example Data Access.

    3. 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.

  3. Set the second tracepoint unit:

    1. Select the tracepoint comparison type, for example Data Access.

    2. Specify a variable name or data value address (see Entering data value comparisons).

    3. 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.

  4. Click OK to set the tracepoint as specified.

Copyright © 2006 ARM Limited. All rights reserved.ARM DUI 0335A
Non-Confidential