lldb::addr_t SBAddress::GetOffset () { if (m_opaque_ap.get()) m_opaque_ap->GetOffset(); return 0; } There should be a return before the m_opaque_ap->GetOffset(); Else it always ends up as 0