carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_memory.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<meta name="ProgId" content="FrontPage.Editor.Document">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<title>Working with memory</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<h1>Working with memory</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<p>You can inspect and change process memory.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<p>The Memory view supports the same addressing as the C and C++ languages. You can address memory using expressions
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
such as:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
 <li><samp>0x0847d3c</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
 <li><samp>(&amp;y)+1024</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
 <li><samp>*ptr</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
<p> You can configure your output to
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
display hexadecimal, ascii and/or signed/unsigned decimal. You can also set the
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
size of the rendering columns. You can configure each memory monitor renderings
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
independently.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
<p> You can customize the Memory view to colors and fonts displayed.  </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
<p>To monitor process memory:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
<li> In the Debug view, select a debug session. Selecting a thread or stack frame automatically
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
selects the associated session.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<li> Select <strong>"Add Memory Monitor"</strong> in the context menu of the Memory Monitors pane.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
The <strong>"Memory Monitor"</strong> dialog appears.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
<li> Type the address or expression that specifies the memory section you want to monitor and
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
press <strong>"OK"</strong>. The monitor appears in the monitor list and the Memory Renderings
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
pane displays the contents of memory locations beginning at the specified address.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
<p>To view memory in a different rendering: </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<li> Select <strong>"Add Rendering"</strong> in the context menu of the Memory Renderings pane.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
The <strong>"Add Memory Rendering"</strong> dialog appears.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
<li> Select renderings from the list and press <strong>"OK"</strong>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
<p>To change process memory:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
<p><b>Warning:</b>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
Changing process memory can cause a program to crash.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
 <li> In the Debug view, select a debug session. Selecting a thread or stack frame automatically
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
     selects the associated session.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
 <li> In the Memory Monitors pane, add a new monitor or select an existing monitor.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
 <li> In the Memory Renderings pane add a new rendering or select an existing one.  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
 <li> Type a new value for memory.  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
<a href="cdt_o_debug.htm">Debugging</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
</html>