| |||
| Home > Setting Breakpoints > Setting breakpoints for memory accesses > Breaking on accesses at multiple locations | |||
To set memory access breakpoints on accesses at multiple locations:
Select Debug ? Breakpoints ? Hardware ? HW Break if X, then if Y... from the Code window main menu.
The HW Break if X, then if Y dialog box, shown in Figure 10.27, is displayed.
Choose the type of hardware breakpoint that you want to set for the first breakpoint unit:
HW Access
HW Read
HW Write
HW Instr.
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 (see Specifying address ranges)
a function (see Setting breakpoints on functions).
Choose the type of hardware breakpoint that you want to set for the second breakpoint unit. The options are:
HW Access
HW Read
HW Write
HW Instr.
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 (see Specifying address ranges)
a function (see Setting breakpoints on functions).
Click OK to set the breakpoint units, and close the dialog box.
This creates a breakpoint chain (see Chaining hardware breakpoints for more details), shown in Figure 10.28. Chained breakpoints activate only when all breakpoint units have activated.