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