Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse C/C++ Developer Guide
Previous Page Home Next Page

Working with memory

You can inspect and change process memory.

The Memory view supports the same addressing as the C and C++ languages. You can address memory using expressions such as:

  • 0x0847d3c
  • (&y)+1024
  • *ptr

You can configure your output to display hexadecimal, ascii and/or signed/unsigned decimal. You can also set the size of the rendering columns. You can configure each memory monitor renderings independently.

You can customize the Memory view to colors and fonts displayed.

To monitor process memory:

  1. In the Debug view, select a debug session. Selecting a thread or stack frame automatically selects the associated session.
  2. Select "Add Memory Monitor" in the context menu of the Memory Monitors pane. The "Memory Monitor" dialog appears.
  3. Type the address or expression that specifies the memory section you want to monitor and press "OK". The monitor appears in the monitor list and the Memory Renderings pane displays the contents of memory locations beginning at the specified address.

To view memory in a different rendering:

  1. Select "Add Rendering" in the context menu of the Memory Renderings pane. The "Add Memory Rendering" dialog appears.
  2. Select renderings from the list and press "OK".

To change process memory:

Warning: Changing process memory can cause a program to crash.

  1. In the Debug view, select a debug session. Selecting a thread or stack frame automatically selects the associated session.
  2. In the Memory Monitors pane, add a new monitor or select an existing monitor.
  3. In the Memory Renderings pane add a new rendering or select an existing one.
  4. Type a new value for memory.

Related concepts
C/C++ Development perspective

Related tasks
Debugging

Related reference
Debug views

IBM Copyright Statement

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire