[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Value of pointer not updated after allocation.
|
On 17-04-03 07:48 AM, Sai Krishna Tati Pati wrote:
> Hi,
>
>
>
> Recently I faced a problem where, the value of a pointer declared using typedef was not getting updated in the Variable View.
>
>
>
> Int my_var=10;
>
> typedef int *p_test_t;
>
> p_test_t = &my_var;
>
>
>
> After some googling, I found this bug -> https://bugs.eclipse.org/bugs/show_bug.cgi?id=399494#c9
>
>
>
> Now, it is mentioned in the link that, the side effects of removing isModifiable() is not known. Using the patch, solves the problem, but it makes every single entity inside a complex type update - able. This is a concern if the complex type is a struct with a million arrays, then, the variable view takes forever to load.
>
>
>
> Is there a way to study the side effects and provide a more elegant solution to the bug?
>
>
>
> Thanks.
Hi,
Is this the patch you are trying?
https://git.eclipse.org/r/#/c/89639/
If so, can you provide an example of file that is problematic (struct with millions of arrays)?
Thanks,
Simon