11.18.5. Breaking in a function or range that also depends on a data value

To set a breakpoint in a function or range that also depends on a data value:

  1. Connect to the target.

  2. Load an executable image.

    This procedure uses the dhrystone image provided in the RVDS examples.

  3. Select Debug → Breakpoints → Hardware → HW While in function/range, Break if X... from the Code window main menu to open the HW While in function/range, Break if X dialog box. Figure 11.36 shows an example:

    Figure 11.36. HW While in func/range, Break if X dialog box

    HW While in func/range, Break if X dialog box

  4. Specify the location for the first breakpoint unit, which can be:

    • an address range

    • a function.

    For example:

    @dhrystone\\DHRY_2\Proc_8

  5. For the second breakpoint unit, choose the type of hardware breakpoint that you want to set. The default is HW Access.

  6. Enter the data address expression that must be accessed to activate the breakpoint.

    For example, enter &Int_Glob.

  7. If you also want to match on a specific data value:

    1. Select the And if Data Value matches check box.

    2. Enter the required data value in the data field.

  8. Click OK to set up the breakpoint units and close the dialog box.

This creates a breakpoint chain. Figure 11.37 shows an example. Chained breakpoints activate only when all breakpoint units have activated.

Figure 11.37. Chained breakpoint

Chained breakpoint

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111