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] Add lookup by name to SBValue through new member property (llvm#118814)
Introduces a `member` property to `SBValue`. This property provides pythonic access to a
value's members, by name. The expression `value.member["name"]` will be an alternate
form form of writing `value.GetChildMemberWithName("name")`.
(cherry-picked from commit 53fd724)
children = property(get_value_child_list, None, doc='''A read only property that returns a list() of lldb.SBValue objects for the children of the value.''')
52
65
child = property(get_child_access_object, None, doc='''A read only property that returns an object that can access children of a variable by index (child_value = value.children[12]).''')
66
+
member = property(get_member_access_object, None, doc='''A read only property that returns an object that can access child members by name.''')
53
67
name = property(GetName, None, doc='''A read only property that returns the name of this value as a string.''')
54
68
type = property(GetType, None, doc='''A read only property that returns a lldb.SBType object that represents the type for this value.''')
55
69
size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this value.''')
0 commit comments