Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
Show First 20 Lines • Show All 1,859 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
} | } | ||||
void ObjectFileELF::CreateSections(SectionList &unified_section_list) { | void ObjectFileELF::CreateSections(SectionList &unified_section_list) { | ||||
if (m_sections_up) | if (m_sections_up) | ||||
return; | return; | ||||
m_sections_up = llvm::make_unique<SectionList>(); | m_sections_up = llvm::make_unique<SectionList>(); | ||||
VMAddressProvider address_provider(CalculateType()); | VMAddressProvider address_provider(GetType()); | ||||
size_t LoadID = 0; | size_t LoadID = 0; | ||||
for (const auto &EnumPHdr : llvm::enumerate(ProgramHeaders())) { | for (const auto &EnumPHdr : llvm::enumerate(ProgramHeaders())) { | ||||
const ELFProgramHeader &PHdr = EnumPHdr.value(); | const ELFProgramHeader &PHdr = EnumPHdr.value(); | ||||
if (PHdr.p_type != PT_LOAD) | if (PHdr.p_type != PT_LOAD) | ||||
continue; | continue; | ||||
auto InfoOr = address_provider.GetAddressInfo(PHdr); | auto InfoOr = address_provider.GetAddressInfo(PHdr); | ||||
▲ Show 20 Lines • Show All 1,504 Lines • Show Last 20 Lines |