Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » C++: Debugging the value of "this"
C++: Debugging the value of "this" [message #152553] Mon, 29 August 2005 11:29 Go to next message
Eclipse UserFriend
Is there a way to evaluate the "this" pointer in the variables or
expressions view while debugging? Currently, we simply get:

<incomplete type> in the variables view.

or

"mi_cmd_var_create: unable to create variable object" in the expressions
view.

Thanks,
Chad Barnes
Rockwell Collins, Inc.
Re: Debugging the value of "this" [message #152594 is a reply to message #152553] Mon, 29 August 2005 17:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Can you attach an example? Both messages come from gdb. It seems that gdb
doesn't recognize the class for some reasons.

"Chad Barnes" <cebarne2@rockwellcollins.com> wrote in message
news:dev9kj$n7$1@news.eclipse.org...
> Is there a way to evaluate the "this" pointer in the variables or
> expressions view while debugging? Currently, we simply get:
>
> <incomplete type> in the variables view.
>
> or
>
> "mi_cmd_var_create: unable to create variable object" in the expressions
> view.
>
> Thanks,
> Chad Barnes
> Rockwell Collins, Inc.
>
Re: Debugging the value of "this" [message #152741 is a reply to message #152594] Wed, 31 August 2005 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Mikhail,

Thanks for your help. Here is an example we compile with MinGW gcc using
MSys make. When we set a breakpoint in the printdata function, "this" is
resolved as <incomplete type>.

Thanks,

Chad
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:devuj8$ski$1@news.eclipse.org...
> Can you attach an example? Both messages come from gdb. It seems that gdb
> doesn't recognize the class for some reasons.
>
> "Chad Barnes" <cebarne2@rockwellcollins.com> wrote in message
> news:dev9kj$n7$1@news.eclipse.org...
>> Is there a way to evaluate the "this" pointer in the variables or
>> expressions view while debugging? Currently, we simply get:
>>
>> <incomplete type> in the variables view.
>>
>> or
>>
>> "mi_cmd_var_create: unable to create variable object" in the expressions
>> view.
>>
>> Thanks,
>> Chad Barnes
>> Rockwell Collins, Inc.
>>
>
>


  • Attachment: TestThis.zip
    (Size: 45.76KB, Downloaded 153 times)
Re: Debugging the value of "this" [message #152765 is a reply to message #152741] Wed, 31 August 2005 15:16 Go to previous message
Eclipse UserFriend
We were able to get "this" to resolve when we pass "-gcoff" to the compiler
instead of "-g". Not entirely sure why, but it seems to work now.

Thanks.
"Chad Barnes" <cebarne2@rockwellcollins.com> wrote in message
news:df4be9$22i$1@news.eclipse.org...
> Mikhail,
>
> Thanks for your help. Here is an example we compile with MinGW gcc using
> MSys make. When we set a breakpoint in the printdata function, "this" is
> resolved as <incomplete type>.
>
> Thanks,
>
> Chad
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:devuj8$ski$1@news.eclipse.org...
>> Can you attach an example? Both messages come from gdb. It seems that gdb
>> doesn't recognize the class for some reasons.
>>
>> "Chad Barnes" <cebarne2@rockwellcollins.com> wrote in message
>> news:dev9kj$n7$1@news.eclipse.org...
>>> Is there a way to evaluate the "this" pointer in the variables or
>>> expressions view while debugging? Currently, we simply get:
>>>
>>> <incomplete type> in the variables view.
>>>
>>> or
>>>
>>> "mi_cmd_var_create: unable to create variable object" in the expressions
>>> view.
>>>
>>> Thanks,
>>> Chad Barnes
>>> Rockwell Collins, Inc.
>>>
>>
>>
>
>
>
Previous Topic:Error building with CDT 3.0
Next Topic:Re: Visual C++ and CDT
Goto Forum:
  


Current Time: Wed Jun 18 19:26:01 EDT 2025

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

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

Back to the top