12.8.2. Procedure when using the Simple Break if X, when Y is True dialog box

To set a breakpoint with the Simple Break if X, when Y is True dialog box:

  1. Select Debug → Breakpoints → Conditional → Break if X, when Y is True... from the Code window main menu. The Simple Break if X, N times dialog box is displayed. The Simple Break if X, when Y is True dialog box is displayed. Figure 12.16 shows an example.

    Figure 12.16. Simple Break if X, when Y is True dialog box

    Simple Break if X, when Y is True dialog box

    This dialog box provides a quick way of creating a breakpoint with the When Expression True condition.

  2. Choose the type of breakpoint that you want to set. The default is SW Instr.

  3. Specify the location where the breakpoint is to be set. This can be:

    • a specific line number in the source code, with or without a module name prefix

    • a specific address, which can be the address of a variable or function

    • a macro that returns an address

    • an address range

    • a function entry point.

    The breakpoint unit activates if the PC equals the corresponding address, or falls within the specified address range. For example, Proc_3.

    Alternatively, you can click the drop-down arrow to the right of these fields to choose the location from your personal Favorites List, or select from a list of previously-used expressions.

  4. Enter the expression to test (given in C format).

    This must give a True or False value as the result. For example, Run_Index==10.

  5. Click OK to set the breakpoint and close the dialog box.

See also

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