Monitoring memory

Use the memory view to change the contents of memory or memory areas used by your program.

Add a new memory monitor from the Variables view, Monitors view, Registers view, or editor

Procedure

  1. In the Variables view, Monitors view, or Registers view, right click the variable, expression, or register for which you want to monitor memory. Or, in the editor, highlight and right-click the expression for which you want to monitor memory.
    Note: If the expression is a pointer, the value of the expression will be used to address memory. If the expression is an lvalue (with an address in memory), its address will be used to address memory. Otherwise, the value of the expression will be used as the address. For example, given the declaration int i = 0x44;, if the expression is i, the memory monitor will be at the address of i. If the expression is i+1, the memory monitor will be at the location given by the value of the expression i+1, which is 0x45.
  2. Select Monitor Memory > <rendering> from the pop-up menu, where <rendering> is the rendering that you want to display in the Renderings portion of the Memory view.

Add a new memory monitor for an expression from the Memory view

Procedure

  1. Click Add Memory Monitor Add Memory Monitor button.
  2. In the Monitor Memory dialog box, enter the expression in the field (the expression must evaluate to an address).
  3. Click OK.

    The Monitors (left-hand) portion of the Memory view displays the expression that you entered for monitoring. If you have multiple memory monitors, this section displays a list of expressions that you are monitoring.

    The Renderings (right-hand) portion of the Memory view populates with HEX and ASCII renderings.