11.16.8. Breaking on accesses at multiple locations

To set memory access breakpoints on accesses at multiple locations:

  1. Connect to the target.

  2. Load an executable image.

    This procedure uses the dhrystone image provided in the RVDS examples to demonstrate memory access breakpoints.

  3. Select Debug → Breakpoints → Hardware → HW Break if X, then if Y... from the Code window main menu to display the HW Break if X, then if Y dialog box. Figure 11.33 shows an example.

    Figure 11.33. HW break if X, then if Y dialog box

    HW break if X, then if Y dialog box

  4. Choose the type of hardware breakpoint that you want to set for the first breakpoint unit. The default is HW Read.

  5. Specify the location for the first breakpoint unit (X), which can be:

    • a specific address, which can be the address of a variable or function, or an address returned from a macro

    • an address range

    • a function.

  6. Choose the type of hardware breakpoint that you want to set for the second breakpoint unit. The default is HW Read.

  7. Specify the location for the second breakpoint unit (Y), which can be:

    • a specific address, which can be the address of a variable or function, or an address returned from a macro

    • an address range

    • a function.

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

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

Figure 11.34. Chained breakpoints

Chained breakpoints

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential