Community
Participate
Working Groups
CDT caches the "editable" attribute of varobjs forever, even though it can change. This problem is currently shadowed by another bug in GDB on which I am working right now. Once the GDB bug is resolved, I will add steps to reproduce the current bug.
Here is my patch awaiting review on the GDB ML: https://sourceware.org/ml/gdb-patches/2014-09/msg00645.html From memory, here are the steps (roughly): 1- Using the test case in [1], try to expand p_outer while it it 0 (this is what will fail with the current gdb). 2- Under p_outer, try to change some values. You shouldn't be able because gdb should mark them as non-editable. 3- Step to make p_outer point to a valid location. 4- Try to edit the same values again. You won't be able, even though you should now because p_outer points to a valid area. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=17416
The GDB bug is now fixed (https://sourceware.org/bugzilla/show_bug.cgi?id=17416)