<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [lldb] Member variables not updating using var objects"
   href="http://bugs.llvm.org/show_bug.cgi?id=32100">32100</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[lldb] Member variables not updating using var objects
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>malaperle@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=503302">https://bugs.eclipse.org/bugs/show_bug.cgi?id=503302</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>