[lldb-dev] [Bug 32100] New: [lldb] Member variables not updating using var objects

via lldb-dev lldb-dev at lists.llvm.org
Wed Mar 1 06:26:11 PST 2017


http://bugs.llvm.org/show_bug.cgi?id=32100

            Bug ID: 32100
           Summary: [lldb] Member variables not updating using var objects
           Product: lldb
           Version: 4.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: malaperle at gmail.com
                CC: llvm-bugs at lists.llvm.org

Using LLDB-MI built from trunk (also seen with older versions)

Using this sample code:

class MyClass {
public:
        int field;
};

int main() {
        MyClass obj;
        obj.field = 5;
        obj.field = 4;
}

In Eclipse, if I step through the code, the value of 'obj.field' is not updated
in the views. Looking at the MI traces, it looks like when the -var-create is
done on 'obj', correctly but -var-update doesn’t report the change:

Using LLDB-MI (macOS):
994,853 30-var-create --thread 1 --frame 0 - * obj
994,856
30^done,name="var0",numchild="1",value="{...}",type="MyClass",thread-id="1",has_more="0"
...
581,399 48-var-update 1 var0
581,403
48^done,changelist=[{name="var0",value="{...}",in_scope="true",type_changed="false",has_more\
="0"}]

Using GDB (Linux):
980,932 40-var-create --thread 1 --frame 0 - * obj
980,939
40^done,name="var1",numchild="1",value="{...}",type="MyClass",thread-id="1",has_more="0"
....
749,655 56-var-update 1 var1
749,655
56^done,changelist=[{name="var1.public.field",value="4",in_scope="true",type_changed="false"\
,has_more="0"}]


This is a major issue because it makes debugging non-trivial programs almost
impossible.

Originating Eclips bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=503302

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170301/5dbb9ce4/attachment.html>


More information about the lldb-dev mailing list