12.8.1. Procedure when using the generic breakpoint dialog box

To delay the activation of a breakpoint until an expression is either true or false:

  1. Open the Create Breakpoint or Edit Breakpoint dialog box as appropriate.

  2. Click More... on the breakpoint dialog box you are using. The breakpoint behavior controls are displayed. Figure 12.14 shows an example:

    Figure 12.14. Breakpoint behavior controls

    Breakpoint behavior controls

  3. Click Add in the Conditions group to open the Add Condition dialog box. Figure 12.15 shows an example:

    Figure 12.15. Add Condition dialog box

    Add Condition dialog box

  4. Select the required expression condition:

    • When Expression True, to delay activation until an expression is true

    • When Expression False, to delay activation until an expression is false.

  5. Enter the required expression to be tested before the breakpoint is to activate.

    Note

    If you specify a variable, then it must be in scope when the breakpoint is hit.

    For example, enter loop_count>=5 & loop_count<10:

    • When used to test for a True condition, the breakpoint activates only when loop_count has values from five to nine.

    • When used to test for a False condition, the breakpoint activates only when loop_count has values from one to four and greater than nine.

  6. Click OK to close the Add Condition dialog box. The condition is added to the breakpoint conditions list.

  7. Click OK to set the conditional breakpoint and close the breakpoint dialog box you are using.

    The breakpoint is identified by a yellow disc.

See also

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