5.6.1. Setting complex breakpoints

The Complex Breakpoints menu offers:

HW Break if in Range...

Displays a dialog box where you can specify a hardware breakpoint, shown in Figure 5.24.

Figure 5.24. HW Break if in Range dialog box

HW Break if in Range dialog box

Use this to set, or modify, a breakpoint at the specified location. The breakpoint is triggered if the PC is within the given address range.

Select the And if Data Value matches check box if you also want to test a data value to trigger the breakpoint. Enter the data value to test in the data field, shown in Figure 5.24.

HW While in func/range, Break if X...

Displays a dialog box where you can specify a complex breakpoint that uses two breakpoint units, shown in Figure 5.25.

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

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

Specify the function, or the address range, to test for the first breakpoint unit. The breakpoint triggers if the PC falls within the specified range.

Choose the type of breakpoint that you want to set for the second breakpoint unit, for example HW Read. You can click on the drop-down arrow to display a menu of possible breakpoint types.

Select the And if Data Value matches check box if you also want to test a data value to trigger the breakpoint. Enter the data value to test in the data field, shown in Figure 5.25.

Note

Setting a breakpoint this way displays the breakpoint as two entries in the Break/Tracepoints pane.

HW Break if X, then if Y...

Displays a dialog box where you can specify a complex breakpoint that uses two breakpoint units, shown in Figure 5.26.

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

HW break if X, then if Y dialog box

Use this dialog box to set, or modify, a breakpoint based on two conditions being met, that is X and Y. The breakpoint is set at the specified memory location or address range depending on the values read.

Choose the type of breakpoint that you want to set for the first breakpoint unit, for example HW Read. You can click on the drop-down arrow to display a menu of possible breakpoint types.

Specify the address range to test for the first breakpoint unit (X). The breakpoint unit triggers if the PC falls within the specified range.

Specify the second breakpoint unit (Y) in the same way.

Note

Setting a breakpoint this way displays the breakpoint as two entries in the Break/Tracepoints pane.

HW Break on Data Value match...

Displays a dialog box where you can specify a hardware breakpoint, shown in Figure 5.27.

Figure 5.27. HW Break on Data Value match dialog box

HW Break on Data Value match dialog box

Specify the range of data values to test for the breakpoint, for example the low value, and the high value, or use a mask. The breakpoint triggers if the PC falls within the specified range.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential