Value of pointer not updated after allocation.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Value of pointer not updated after allocation.

Sai Krishna Tati Pati

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.

http://www.cadence.com/mail/footer_gray_640.gif

http://www.cadence.com/mail/footer_logocdns2.jpg

 

Sai Krishna Tati Pati   |   Software Engineer II

P: 020 6707 3500   M: 8412094712   www.cadence.com

 

http://www.cadence.com/mail/footer_gray_640.gif

 

 


_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: Value of pointer not updated after allocation.

Simon Marchi
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
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev