Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] [Variables View bug] Variables View can not display array elements in a loop

You did not declare this as array but as pointer. You need to cast it
to array or use display as array option. This is not the right place
for such post. Ether use users news group or open a bug if you think
it does not work.

2010/10/8 邢云 <mouzonherry@xxxxxxx>:
> Hi guys:
> The Variables View can not display elements of an array within a loop.
> Environment:
>                   Eclipse 3.6
>                   CDT 7.0.2
>                   OS: Linux
>                   GDB: 6.0
>                   C/C++ application debugging is launched.
>         How to reproduce:
>                  Please check the source code in attachment,  debug it and
> have a look at:
>
> X * myXpointer = XArray[0];
>
> for (int i = 0 ; i < SomeNumber, i++)
> {
>     myXpointer[i] = somevalue;  //  line 31 in variables view, there should
> be as many elements as myXpointer[] has, right?
> }
>        Bugzilla:
>               No match found, the only one is pretty
> early: https://bugs.eclipse.org/bugs/show_bug.cgi?id=120665
>        Possible reason:
> GDB version is too old?
>        Thanks a lot!
> Regards
> 邢云
>
>
> ________________________________
> 全国最低价,天天在家冲照片,24小时发货上门!
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>


Back to the top