LLDB mainline
|
#include <DWARFContext.h>
Classes | |
struct | SectionData |
Public Member Functions | |
DWARFContext (SectionList *main_section_list, SectionList *dwo_section_list) | |
const DWARFDataExtractor & | getOrLoadAbbrevData () |
const DWARFDataExtractor & | getOrLoadAddrData () |
const DWARFDataExtractor & | getOrLoadArangesData () |
const DWARFDataExtractor & | getOrLoadDebugInfoData () |
const DWARFDataExtractor & | getOrLoadLineData () |
const DWARFDataExtractor & | getOrLoadLineStrData () |
const DWARFDataExtractor & | getOrLoadLocData () |
const DWARFDataExtractor & | getOrLoadLocListsData () |
const DWARFDataExtractor & | getOrLoadMacroData () |
const DWARFDataExtractor & | getOrLoadRangesData () |
const DWARFDataExtractor & | getOrLoadRngListsData () |
const DWARFDataExtractor & | getOrLoadStrData () |
const DWARFDataExtractor & | getOrLoadStrOffsetsData () |
const DWARFDataExtractor & | getOrLoadDebugTypesData () |
bool | isDwo () |
llvm::DWARFContext & | GetAsLLVM () |
Private Member Functions | |
const DWARFDataExtractor & | LoadOrGetSection (std::optional< lldb::SectionType > main_section_type, std::optional< lldb::SectionType > dwo_section_type, SectionData &data) |
const DWARFDataExtractor & | getOrLoadCuIndexData () |
const DWARFDataExtractor & | getOrLoadTuIndexData () |
Definition at line 21 of file DWARFContext.h.
|
inlineexplicit |
Definition at line 58 of file DWARFContext.h.
llvm::DWARFContext & DWARFContext::GetAsLLVM | ( | ) |
Definition at line 128 of file DWARFContext.cpp.
References getOrLoadCuIndexData(), getOrLoadDebugInfoData(), getOrLoadDebugTypesData(), getOrLoadLineStrData(), getOrLoadTuIndexData(), isDwo(), and m_llvm_context.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::extract(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDWOCompileUnitForHash(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeUnitSupportFiles(), ParseLLVMLineTable(), ParseLLVMLineTablePrologue(), and lldb_private::plugin::dwarf::SymbolFileDWARFDwo::SymbolFileDWARFDwo().
const DWARFDataExtractor & DWARFContext::getOrLoadAbbrevData | ( | ) |
Definition at line 55 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugAbbrev, lldb::eSectionTypeDWARFDebugAbbrevDwo, LoadOrGetSection(), and m_data_debug_abbrev.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::DebugAbbrev().
const DWARFDataExtractor & DWARFContext::getOrLoadAddrData | ( | ) |
Definition at line 65 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugAddr, LoadOrGetSection(), and m_data_debug_addr.
Referenced by lldb_private::plugin::dwarf::DWARFFormValue::Address(), lldb_private::plugin::dwarf::DWARFUnit::FindRnglistFromOffset(), and lldb_private::plugin::dwarf::DWARFUnit::ReadAddressFromDebugAddrSection().
const DWARFDataExtractor & DWARFContext::getOrLoadArangesData | ( | ) |
Definition at line 60 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugAranges, LoadOrGetSection(), and m_data_debug_aranges.
Referenced by lldb_private::plugin::dwarf::DWARFDebugInfo::GetCompileUnitAranges().
|
private |
Definition at line 45 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugCuIndex, LoadOrGetSection(), and m_data_debug_cu_index.
Referenced by GetAsLLVM().
const DWARFDataExtractor & DWARFContext::getOrLoadDebugInfoData | ( | ) |
Definition at line 70 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugInfo, lldb::eSectionTypeDWARFDebugInfoDwo, LoadOrGetSection(), and m_data_debug_info.
Referenced by GetAsLLVM(), lldb_private::plugin::dwarf::DWARFUnit::GetData(), and lldb_private::plugin::dwarf::DWARFDebugInfo::ParseUnitsFor().
const DWARFDataExtractor & DWARFContext::getOrLoadDebugTypesData | ( | ) |
Definition at line 123 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugTypes, lldb::eSectionTypeDWARFDebugTypesDwo, LoadOrGetSection(), and m_data_debug_types.
Referenced by GetAsLLVM(), lldb_private::plugin::dwarf::DWARFUnit::GetData(), and lldb_private::plugin::dwarf::DWARFDebugInfo::ParseUnitsFor().
const DWARFDataExtractor & DWARFContext::getOrLoadLineData | ( | ) |
Definition at line 75 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugLine, LoadOrGetSection(), and m_data_debug_line.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeUnitSupportFiles(), ParseLLVMLineTable(), and ParseLLVMLineTablePrologue().
const DWARFDataExtractor & DWARFContext::getOrLoadLineStrData | ( | ) |
Definition at line 80 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugLineStr, LoadOrGetSection(), and m_data_debug_line_str.
Referenced by lldb_private::plugin::dwarf::DWARFFormValue::AsCString(), and GetAsLLVM().
const DWARFDataExtractor & DWARFContext::getOrLoadLocData | ( | ) |
Definition at line 85 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugLoc, lldb::eSectionTypeDWARFDebugLocDwo, LoadOrGetSection(), and m_data_debug_loc.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::GetLocationData().
const DWARFDataExtractor & DWARFContext::getOrLoadLocListsData | ( | ) |
Definition at line 90 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugLocLists, lldb::eSectionTypeDWARFDebugLocListsDwo, LoadOrGetSection(), and m_data_debug_loclists.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::GetLocationData(), lldb_private::plugin::dwarf::DWARFUnit::GetLoclistOffset(), and lldb_private::plugin::dwarf::DWARFUnit::SetLoclistsBase().
const DWARFDataExtractor & DWARFContext::getOrLoadMacroData | ( | ) |
Definition at line 96 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugMacro, LoadOrGetSection(), and m_data_debug_macro.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::ParseDebugMacros().
const DWARFDataExtractor & DWARFContext::getOrLoadRangesData | ( | ) |
Definition at line 101 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugRanges, LoadOrGetSection(), and m_data_debug_ranges.
Referenced by lldb_private::plugin::dwarf::DWARFDebugRanges::Extract(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetDebugRanges().
const DWARFDataExtractor & DWARFContext::getOrLoadRngListsData | ( | ) |
Definition at line 106 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugRngLists, lldb::eSectionTypeDWARFDebugRngListsDwo, LoadOrGetSection(), and m_data_debug_rnglists.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::GetRnglistData().
const DWARFDataExtractor & DWARFContext::getOrLoadStrData | ( | ) |
Definition at line 112 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugStr, lldb::eSectionTypeDWARFDebugStrDwo, LoadOrGetSection(), and m_data_debug_str.
Referenced by lldb_private::plugin::dwarf::DWARFFormValue::AsCString(), lldb_private::plugin::dwarf::SymbolFileDWARF::InitializeObject(), and lldb_private::plugin::dwarf::SymbolFileDWARF::ParseDebugMacros().
const DWARFDataExtractor & DWARFContext::getOrLoadStrOffsetsData | ( | ) |
Definition at line 117 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugStrOffsets, lldb::eSectionTypeDWARFDebugStrOffsetsDwo, LoadOrGetSection(), and m_data_debug_str_offsets.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::GetStringOffsetSectionItem(), and lldb_private::plugin::dwarf::DWARFUnit::SetDwoStrOffsetsBase().
|
private |
Definition at line 50 of file DWARFContext.cpp.
References lldb::eSectionTypeDWARFDebugTuIndex, LoadOrGetSection(), and m_data_debug_tu_index.
Referenced by GetAsLLVM().
|
inline |
Definition at line 78 of file DWARFContext.h.
References m_dwo_section_list.
Referenced by lldb_private::plugin::dwarf::DWARFUnit::extract(), and GetAsLLVM().
|
private |
Definition at line 33 of file DWARFContext.cpp.
References lldb_private::plugin::dwarf::DWARFContext::SectionData::data, and lldb_private::plugin::dwarf::DWARFContext::SectionData::flag.
Referenced by getOrLoadAbbrevData(), getOrLoadAddrData(), getOrLoadArangesData(), getOrLoadCuIndexData(), getOrLoadDebugInfoData(), getOrLoadDebugTypesData(), getOrLoadLineData(), getOrLoadLineStrData(), getOrLoadLocData(), getOrLoadLocListsData(), getOrLoadMacroData(), getOrLoadRangesData(), getOrLoadRngListsData(), getOrLoadStrData(), getOrLoadStrOffsetsData(), and getOrLoadTuIndexData().
|
private |
Definition at line 32 of file DWARFContext.h.
Referenced by getOrLoadAbbrevData().
|
private |
Definition at line 33 of file DWARFContext.h.
Referenced by getOrLoadAddrData().
|
private |
Definition at line 34 of file DWARFContext.h.
Referenced by getOrLoadArangesData().
|
private |
Definition at line 35 of file DWARFContext.h.
Referenced by getOrLoadCuIndexData().
|
private |
Definition at line 36 of file DWARFContext.h.
Referenced by getOrLoadDebugInfoData().
|
private |
Definition at line 37 of file DWARFContext.h.
Referenced by getOrLoadLineData().
|
private |
Definition at line 38 of file DWARFContext.h.
Referenced by getOrLoadLineStrData().
|
private |
Definition at line 39 of file DWARFContext.h.
Referenced by getOrLoadLocData().
|
private |
Definition at line 40 of file DWARFContext.h.
Referenced by getOrLoadLocListsData().
|
private |
Definition at line 41 of file DWARFContext.h.
Referenced by getOrLoadMacroData().
|
private |
Definition at line 42 of file DWARFContext.h.
Referenced by getOrLoadRangesData().
|
private |
Definition at line 43 of file DWARFContext.h.
Referenced by getOrLoadRngListsData().
|
private |
Definition at line 44 of file DWARFContext.h.
Referenced by getOrLoadStrData().
|
private |
Definition at line 45 of file DWARFContext.h.
Referenced by getOrLoadStrOffsetsData().
|
private |
Definition at line 46 of file DWARFContext.h.
Referenced by getOrLoadTuIndexData().
|
private |
Definition at line 47 of file DWARFContext.h.
Referenced by getOrLoadDebugTypesData().
|
private |
Definition at line 24 of file DWARFContext.h.
Referenced by isDwo().
|
mutableprivate |
Definition at line 25 of file DWARFContext.h.
Referenced by GetAsLLVM().
|
private |
Definition at line 23 of file DWARFContext.h.