INNER CODE UNIT · Python
item_addr
SpartanJ/eepp · projects/scripts/debug/eepp_lldb.py:98
item_addr = self.data_addr + index * self.type_t.GetByteSize()
return self.valobj.CreateValueFromAddress(f"[{index}]", item_addr, self.type_t)
def has_children(self):
return self.size > 0
def EESmallVectorSummaryProvider(valobj, internal_dict):
"""
Standalone summary provider. It's an LLDB anti-pattern to initialize the
SyntheticProvider class inside here, so we duplicate the tiny bit of logic
needed to read the state efficiently.
"""
# Find m_data, handling base classes
m_data = valobj.GetChildMemberWithName("m_data")
if not m_data or not m_data.IsValid():
for i in range(valobj.GetNumChildren()):
child = valobj.GetChildAtIndex(i)