blob: 9eaa82fa8deda396a91828b20893f0967ec75fae [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>Adding a variable, expression, or register to the Memory view</title>
</head>
<body>
<h1>Adding a variable, expression, or register to the Memory view</h1>
<p>You can add a register, variable name, or expression (such as a raw address, for example, 0x00000234) to a memory monitor from the Memory view.</p>
<p>To add a new memory monitor from the Memory view:</p>
<ol>
<li>Click the Memory view <strong>Add Memory Monitor</strong> push button (<img src="images/task-memory-add-monitor.gif" alt="Add Memory Monitor button">). This button is located in the <strong>Monitors</strong> pane.</li>
<li>In the Monitor Memory dialog box, enter the address or expression in the field (expressions must evaluate to an address). This entry does not need to be case-sensitive. Alternatively, if you have previously monitored the address or expression when debugging this application, choose it from the pull down list. Depending on the debug engine that the debugger user interface is connected to, examples of valid expressions include register names, variables, and HEX addresses.
<p><strong>Note:</strong> When adding a register to a memory monitor, the Registers view is a convenient location to see the names of all registers in your application. You can make note of the name of a register from the view and then use it when adding a memory monitor.</p>
</li>
<li>Click <strong>OK</strong>.</li>
</ol>
<p>After adding the new memory monitor you can choose the memory format that you want to display in the <strong>Renderings</strong> pane.</p>
<p>You can also add a new memory monitor from the Memory view <strong>Renderings</strong> pane:</p>
<ol>
<li>Click the Memory view <strong>Add Rendering(s)</strong> push button (<img alt="Add Memory Monitor button" src="images/task-memory-add-monitor.gif">). This button is located in the <strong>Renderings</strong> pane.</li>
<li>In the Add Memory Rendering dialog box, select an existing memory monitor from the pull-down list - or add a new memory monitor by clicking <strong>Add New</strong>. If you add a new memory monitor, you will be prompted via the Monitor Memory dialog box to enter an address or expression to monitor. Click <strong>OK</strong> to return to the Add Memory Rendering dialog box.</li>
<li>Do one of the following:
<ul>
<li>Select the memory rendering that you want to display for the memory monitor and click <strong>OK</strong>.</li>
<li>Click <strong>Cancel</strong> and then choose the memory rendering that you want to display right from the <strong>Renderings</strong> pane.</li>
</ul>
</li>
</ol>
</body>
</html>