Index: lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h =================================================================== --- lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h +++ lldb/trunk/include/lldb/Core/ValueObjectConstResultChild.h @@ -63,6 +63,9 @@ lldb::ValueObjectSP AddressOf(Status &error) override; + lldb::addr_t GetAddressOf(bool scalar_is_load_address = true, + AddressType *address_type = nullptr) override; + size_t GetPointeeData(DataExtractor &data, uint32_t item_idx = 0, uint32_t item_count = 1) override; Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py =================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py +++ lldb/trunk/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py @@ -153,6 +153,9 @@ val_s = target.EvaluateExpression('s') val_a = target.EvaluateExpression('a') self.assertTrue( + val_s.GetChildMemberWithName('a').GetAddress().IsValid(), + VALID_VARIABLE) + self.assertTrue( val_s.GetChildMemberWithName('a').AddressOf(), VALID_VARIABLE) self.assertTrue( Index: lldb/trunk/source/Core/ValueObjectConstResultChild.cpp =================================================================== --- lldb/trunk/source/Core/ValueObjectConstResultChild.cpp +++ lldb/trunk/source/Core/ValueObjectConstResultChild.cpp @@ -52,6 +52,11 @@ return m_impl.AddressOf(error); } +lldb::addr_t ValueObjectConstResultChild::GetAddressOf( + bool scalar_is_load_address, AddressType* address_type) { + return m_impl.GetAddressOf(scalar_is_load_address, address_type); +} + ValueObject *ValueObjectConstResultChild::CreateChildAtIndex( size_t idx, bool synthetic_array_member, int32_t synthetic_index) { return m_impl.CreateChildAtIndex(idx, synthetic_array_member,