Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/API/SBSymbol.cpp
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | if (m_opaque_ptr && m_opaque_ptr->ValueIsAddress()) { | ||||
if (range_size > 0) { | if (range_size > 0) { | ||||
addr.SetAddress(m_opaque_ptr->GetAddressRef()); | addr.SetAddress(m_opaque_ptr->GetAddressRef()); | ||||
addr->Slide(m_opaque_ptr->GetByteSize()); | addr->Slide(m_opaque_ptr->GetByteSize()); | ||||
} | } | ||||
} | } | ||||
return addr; | return addr; | ||||
} | } | ||||
uint64_t SBSymbol::GetValue() { | |||||
LLDB_INSTRUMENT_VA(this); | |||||
if (m_opaque_ptr) | |||||
return m_opaque_ptr->GetRawValue(); | |||||
return 0; | |||||
} | |||||
uint64_t SBSymbol::GetSize() { | |||||
LLDB_INSTRUMENT_VA(this); | |||||
if (m_opaque_ptr && m_opaque_ptr->GetByteSizeIsValid()) | |||||
return m_opaque_ptr->GetByteSize(); | |||||
return 0; | |||||
} | |||||
uint32_t SBSymbol::GetPrologueByteSize() { | uint32_t SBSymbol::GetPrologueByteSize() { | ||||
LLDB_INSTRUMENT_VA(this); | LLDB_INSTRUMENT_VA(this); | ||||
if (m_opaque_ptr) | if (m_opaque_ptr) | ||||
return m_opaque_ptr->GetPrologueByteSize(); | return m_opaque_ptr->GetPrologueByteSize(); | ||||
return 0; | return 0; | ||||
} | } | ||||
Show All 23 Lines |