You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(lldb) break 17
(lldb) r
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> d = lldb.frame.EvaluateExpression("d")
>>> d.GetChildMemberWithName("b")
(int) b = 1
>>> d.GetChildMemberWithName("x")
(int) x = 2
We end up getting
>>> d.GetChildMemberWithName("x")
No value
After some poking around, we've worked out that LLDB permits accessing base class members from a derived class, anonymous struct members from the enclosing class, but not a base class' anonymous struct members from a derived class. Since C++ permits this, it would be good for LLDB to support it too.