11.18.3. Breaking on a data value match with a modifier

To set a data only breakpoint for a data value match with a modifier:

  1. Connect to the target.

  2. Load an executable image.

    This procedure uses the dhrystone image provided in the RVDS examples.

  3. Select Debug → Breakpoints → Hardware → HW Break on Data Value match... from the Code window main menu. The HW Break on Data Value match dialog box is displayed. Figure 11.38 shows an example.

    Figure 11.38. HW Break on Data Value match dialog box

    HW Break on Data Value match dialog box

  4. Choose the type of hardware data value breakpoint that you want to set for the match:

    • Enter Data Value Access to Match

    • Enter Data Value Read to Match

    • Enter Data Value Write to Match.

  5. Enter the required data value in the data field.

  6. Choose a data value modifier, if your hardware supports it:

    Enter None (no range)

    Match the first data value only. This is the default.

    Enter End Value

    Match values in the range from the first data value and the second data value specified, inclusive.

    Enter Value Length

    Match values in the range from the first data value to the first data value plus the length specified, inclusive.

    For example, if the first data value is 0x10, and the length is 0xF, then the range is from 0x10 to 0x1F, inclusive.

    Enter Value Mask

    Specify a value mask if you are interested only in certain bits of the value. For example, if you have a data field occupying five bits (0x1F), then set a mask of 0x5 if only bits 0 and 2 are of interest.

  7. Enter the required value.

  8. 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