C++: Debugging the value of "this" [message #152553] |
Mon, 29 August 2005 11:29  |
Eclipse User |
|
|
|
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 #152765 is a reply to message #152741] |
Wed, 31 August 2005 15:16  |
Eclipse User |
|
|
|
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.
>>>
>>
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07385 seconds