11.17.3. Breaking on a variable in the Locals view

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

  1. Connect to the target.

  2. Load an executable image.

    This procedure uses the dhrystone image provided in the RealView Development Suite (RVDS) examples to demonstrate memory access breakpoints.

  3. Run your image, and stop execution at a point of interest.

  4. Select View → Locals from the Code window main menu to open the Locals view, which shows the variables that are currently in scope.

  5. Right-click on the global 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 New Conditional Breakpoint type 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.

See also

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