11.17.4. Breaking on a variable in the Watch view

To set a memory access breakpoint on a variable in the Watch view:

  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. Run your image, and stop execution at a point of interest.

  4. Select View → Watch from the Code window main menu to open the Watch view.

  5. Right-click on the variable name to display the context menu.

  6. Select the required breakpoint option from the context menu.

    If you select Create Breakpoint At... the Create Breakpoint dialog box is opened, and the address of the chosen variable is entered into the Location field. Do the following:

    1. On the Create Breakpoint dialog box, choose the Breakpoint Type you require. The Hardware Access breakpoint type is selected by default.

      The Value Match field is enabled.

    2. Leave the Value Match field blank.

    3. Click OK to set the breakpoint and close the Create Breakpoint dialog box. A breakpoint indicator is placed at the address of the variable.

    If you select Create Conditional Breakpoint At... to open the Create Conditional Breakpoint dialog box. Do the following:

    1. Select the required breakpoint type that you want to set.

    2. Click OK. The corresponding dialog box is opened, and the address of the chosen variable is entered into the location field.

    Note

    You cannot set a breakpoint for a variable if <@Rn> appears after the value.

  7. On the Create Breakpoint dialog box, choose the Breakpoint Type you require. The Hardware Access breakpoint type is selected by default.

    The Value Match field is enabled.

  8. Leave the Value Match field blank.

  9. Click OK to set the breakpoint and close the Create Breakpoint dialog box. A breakpoint indicator is placed at the address of the global variable.

See also

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