Bug 445016 - CDT doesn't refresh the "editable" attributes of variable objects
Summary: CDT doesn't refresh the "editable" attributes of variable objects
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-24 16:12 EDT by Simon Marchi CLA
Modified: 2020-09-04 15:25 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Marchi CLA 2014-09-24 16:12:15 EDT
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.
Comment 1 Simon Marchi CLA 2014-10-20 14:26:44 EDT
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
Comment 2 Marc-André Laperle CLA 2015-05-02 09:33:49 EDT
The GDB bug is now fixed (https://sourceware.org/bugzilla/show_bug.cgi?id=17416)