Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Add variable to memory monitor
Add variable to memory monitor [message #516710] Wed, 24 February 2010 16:29 Go to next message
Eclipse UserFriend
I've read this help page on using the Memory Monitor Window, but I am still getting errors adding structure members to the memory window. http:// help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc .user/tasks/cdt_t_memory.htm

I can add an array or local variable to the memory window with out a problem. I get an error when trying to add a pointer inside a structure.

typedef struct _page_data_
{
   INT16U data_len;
   INT8U  addr;
   INT8U  page;
   INT8U  *data;
}COMPACT_PAGE_DATA;

COMPACT_PAGE_DATA *tool;


When I try to add tool->data to the memory window I get the following error.

Add Memory Monitor Failed.
Expression 'tool->data' evaluated to invalid address value: 0x201fa180

Address 0x201fa180 is the address that 'data' points to, it is where the data I want to see is located!

If I add '&tool->data' to the memory monitor, I get the location where the tool->data pointer is stored
Re: Add variable to memory monitor [message #517502 is a reply to message #516710] Sun, 28 February 2010 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Jason M Liszewski wrote:
> I've read this help page on using the Memory Monitor Window, but I am
> still getting errors adding structure members to the memory window.
> http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. cdt.doc.user/tasks/cdt_t_memory.htm
>
> I can add an array or local variable to the memory window with out a
> problem. I get an error when trying to add a pointer inside a structure.
>
>
> typedef struct _page_data_
> {
> INT16U data_len;
> INT8U addr;
> INT8U page;
> INT8U *data;
> }COMPACT_PAGE_DATA;
>
> COMPACT_PAGE_DATA *tool;
>
>
> When I try to add tool->data to the memory window I get the following
> error.
>
> Add Memory Monitor Failed.
> Expression 'tool->data' evaluated to invalid address value: 0x201fa180
>
> Address 0x201fa180 is the address that 'data' points to, it is where the
> data I want to see is located!
>
> If I add '&tool->data' to the memory monitor, I get the location where
> the tool->data pointer is stored
Have you tried *(tool->data)
Re: Add variable to memory monitor [message #517635 is a reply to message #517502] Mon, 01 March 2010 10:15 Go to previous message
Eclipse UserFriend
When I try *(tool->data) I get the following error.

Expression '*(tool->data)' evaluated to invalid address value: 80 'P'.
Previous Topic:Bulid 32bit binaries on 64bit Linux using 64bit CDT and GCC toolchain
Next Topic:Issues with SWT plugin while installing CDT
Goto Forum:
  


Current Time: Tue Jul 29 13:00:46 EDT 2025

Powered by FUDForum. Page generated in 0.25131 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top