|
LLVM
5.0.0
|
DWARFContext This data structure is the top level entity that deals with dwarf debug information parsing. More...
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
Public Types | |
| using | cu_iterator_range = DWARFUnitSection< DWARFCompileUnit >::iterator_range |
| using | tu_iterator_range = DWARFUnitSection< DWARFTypeUnit >::iterator_range |
| using | tu_section_iterator_range = iterator_range< decltype(TUs)::iterator > |
Public Types inherited from llvm::DIContext | |
| enum | DIContextKind { CK_DWARF, CK_PDB } |
Static Public Member Functions | |
| static bool | classof (const DIContext *DICtx) |
| static bool | isSupportedVersion (unsigned version) |
DWARFContext This data structure is the top level entity that deals with dwarf debug information parsing.
The actual data is supplied through pure virtual methods that a concrete implementation provides.
Definition at line 52 of file DWARFContext.h.
Definition at line 111 of file DWARFContext.h.
Definition at line 112 of file DWARFContext.h.
| using llvm::DWARFContext::tu_section_iterator_range = iterator_range<decltype(TUs)::iterator> |
Definition at line 113 of file DWARFContext.h.
|
inline |
Definition at line 99 of file DWARFContext.h.
|
delete |
Definition at line 103 of file DWARFContext.h.
References llvm::DIContext::CK_DWARF, and llvm::DIContext::getKind().
|
inline |
Get compile units in this context.
Definition at line 116 of file DWARFContext.h.
Referenced by llvm::DWARFDebugAranges::generate().
|
overridevirtual |
Implements llvm::DIContext.
Definition at line 191 of file DWARFContext.cpp.
References llvm::DWARFDebugLine::LineTable::clear(), D, llvm::DIDT_Abbrev, llvm::DIDT_AbbrevDwo, llvm::DIDT_All, llvm::DIDT_AppleNames, llvm::DIDT_AppleNamespaces, llvm::DIDT_AppleObjC, llvm::DIDT_AppleTypes, llvm::DIDT_Aranges, llvm::DIDT_CUIndex, llvm::DIDT_Frames, llvm::DIDT_GdbIndex, llvm::DIDT_GnuPubnames, llvm::DIDT_GnuPubtypes, llvm::DIDT_Info, llvm::DIDT_InfoDwo, llvm::DIDT_Line, llvm::DIDT_LineDwo, llvm::DIDT_Loc, llvm::DIDT_LocDwo, llvm::DIDT_Macro, llvm::DIDT_Pubnames, llvm::DIDT_Pubtypes, llvm::DIDT_Ranges, llvm::DIDT_Str, llvm::DIDT_StrDwo, llvm::DIDT_StrOffsets, llvm::DIDT_StrOffsetsDwo, llvm::DIDT_TUIndex, llvm::DIDT_Types, llvm::DIDT_TypesDwo, llvm::DWARFDebugArangeSet::dump(), llvm::DWARFDebugPubTable::dump(), llvm::DWARFDebugRangeList::dump(), llvm::DWARFDebugLine::LineTable::dump(), dumpAccelSection(), llvm::DIDumpOptions::DumpEH, dumpStringOffsetsSection(), llvm::DIDumpOptions::DumpType, llvm::DWARFDebugArangeSet::extract(), llvm::DWARFDebugRangeList::extract(), llvm::format(), llvm::DataExtractor::getCStr(), llvm::DWARFDebugLine::Prologue::parse(), llvm::DWARFDebugLine::LineTable::parse(), llvm::DWARFDebugLine::LineTable::Prologue, llvm::DIDumpOptions::SummarizeTypes, and llvm::dwarf::toSectionOffset().
|
inline |
Get compile units in the DWO context.
Definition at line 128 of file DWARFContext.h.
|
inline |
Get type units in the DWO context.
Definition at line 134 of file DWARFContext.h.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parse(), and llvm::DWARFUnitSectionBase::parseDWO().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFDebugAranges::generate().
|
inline |
Get the compile unit at the specified index for this compile unit.
Definition at line 164 of file DWARFContext.h.
| const DWARFUnitIndex & DWARFContext::getCUIndex | ( | ) |
Definition at line 432 of file DWARFContext.cpp.
References llvm::DW_SECT_INFO.
Referenced by llvm::getDWARFUnitIndex().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
| const DWARFDebugAbbrev * DWARFContext::getDebugAbbrev | ( | ) |
Get a pointer to the parsed DebugAbbrev object.
Definition at line 464 of file DWARFContext.cpp.
Referenced by llvm::DWARFUnitSectionBase::parse().
| const DWARFDebugAbbrev * DWARFContext::getDebugAbbrevDWO | ( | ) |
Get a pointer to the parsed dwo abbreviations object.
Definition at line 475 of file DWARFContext.cpp.
Referenced by llvm::DWARFUnitSectionBase::parseDWO().
| const DWARFDebugAranges * DWARFContext::getDebugAranges | ( | ) |
Get a pointer to the parsed DebugAranges object.
Definition at line 509 of file DWARFContext.cpp.
References llvm::DWARFDebugAranges::generate().
| const DWARFDebugFrame * DWARFContext::getDebugFrame | ( | ) |
Get a pointer to the parsed frame information object.
Definition at line 518 of file DWARFContext.cpp.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
| const DWARFDebugLoc * DWARFContext::getDebugLoc | ( | ) |
Get a pointer to the parsed DebugLoc object.
Definition at line 485 of file DWARFContext.cpp.
| const DWARFDebugLocDWO * DWARFContext::getDebugLocDWO | ( | ) |
Get a pointer to the parsed DebugLoc object.
Definition at line 499 of file DWARFContext.cpp.
References llvm::Data.
| const DWARFDebugMacro * DWARFContext::getDebugMacro | ( | ) |
Get a pointer to the parsed DebugMacro object.
Definition at line 549 of file DWARFContext.cpp.
References llvm::dwarf::syntax::Macro.
Get a DIE given an exact offset.
Definition at line 407 of file DWARFContext.cpp.
|
inline |
Get the compile unit at the specified index for the DWO compile units.
Definition at line 170 of file DWARFContext.h.
| DWARFCompileUnit * DWARFContext::getDWOCompileUnitForHash | ( | uint64_t | Hash | ) |
Definition at line 398 of file DWARFContext.cpp.
References fuzzer::Hash().
| std::shared_ptr< DWARFContext > DWARFContext::getDWOContext | ( | StringRef | AbsolutePath | ) |
Definition at line 783 of file DWARFContext.cpp.
References llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), llvm::Expected< T >::get(), getFileName(), and llvm::Expected< T >::takeError().
| const DWARFDebugFrame * DWARFContext::getEHFrame | ( | ) |
Get a pointer to the parsed eh frame information object.
Definition at line 538 of file DWARFContext.cpp.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
| DWARFGdbIndex & DWARFContext::getGdbIndex | ( | ) |
Definition at line 454 of file DWARFContext.cpp.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
overridevirtual |
Implements llvm::DIContext.
Definition at line 718 of file DWARFContext.cpp.
References llvm::DIInliningInfo::addFrame(), llvm::DILineInfo::Column, llvm::DILineInfo::Discriminator, llvm::DILineInfo::FileName, llvm::DILineInfoSpecifier::FLIKind, llvm::DILineInfoSpecifier::FNKind, llvm::DILineInfo::FunctionName, llvm::DWARFDie::getCallerFrame(), llvm::DWARFUnit::getCompilationDir(), llvm::DWARFDie::getDeclLine(), llvm::DWARFDebugLine::LineTable::getFileLineInfoForAddress(), llvm::DWARFDebugLine::LineTable::getFileNameByIndex(), llvm::DWARFUnit::getInlinedChainForAddress(), llvm::DWARFDie::getSubroutineName(), if(), llvm::DILineInfo::Line, Name, llvm::None, llvm::SmallVectorTemplateCommon< T >::size(), and llvm::DILineInfo::StartLine.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parseDWO().
|
overridevirtual |
Implements llvm::DIContext.
Definition at line 653 of file DWARFContext.cpp.
References llvm::DILineInfoSpecifier::FLIKind, llvm::DILineInfoSpecifier::FNKind, llvm::DILineInfo::FunctionName, llvm::DWARFUnit::getCompilationDir(), getFunctionNameAndStartLineForAddress(), llvm::None, and llvm::DILineInfo::StartLine.
|
overridevirtual |
Implements llvm::DIContext.
Definition at line 672 of file DWARFContext.cpp.
References llvm::DWARFDebugLine::Row::Address, llvm::DILineInfo::Column, llvm::DWARFDebugLine::Row::Column, llvm::DWARFDebugLine::Row::File, llvm::DILineInfo::FileName, llvm::DILineInfoSpecifier::FLIKind, llvm::DILineInfoSpecifier::FNKind, llvm::DILineInfo::FunctionName, llvm::DWARFUnit::getCompilationDir(), llvm::DWARFDebugLine::LineTable::getFileNameByIndex(), getFunctionNameAndStartLineForAddress(), llvm::DILineInfo::Line, llvm::DWARFDebugLine::Row::Line, llvm::DWARFDebugLine::LineTable::lookupAddressRange(), llvm::None, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::DWARFDebugLine::LineTable::Rows, and llvm::DILineInfo::StartLine.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parse().
| const DWARFLineTable * DWARFContext::getLineTableForUnit | ( | DWARFUnit * | cu | ) |
Get a pointer to a parsed line table corresponding to a compile unit.
Definition at line 560 of file DWARFContext.cpp.
References llvm::DWARFSection::Data, llvm::DWARFUnit::getAddressByteSize(), llvm::DWARFUnit::getLineSection(), llvm::DWARFUnit::getLineTableOffset(), llvm::DWARFUnit::getUnitDIE(), llvm::StringRef::size(), and llvm::dwarf::toSectionOffset().
Referenced by dumpAttribute().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
inline |
Definition at line 180 of file DWARFContext.h.
|
inline |
Get the number of compile units in this context.
Definition at line 140 of file DWARFContext.h.
|
inline |
Get the number of compile units in the DWO context.
Definition at line 152 of file DWARFContext.h.
|
inline |
Get the number of compile units in the DWO context.
Definition at line 158 of file DWARFContext.h.
|
inline |
Get the number of compile units in this context.
Definition at line 146 of file DWARFContext.h.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parseDWO().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parse().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parseDWO().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parseDWO().
|
pure virtual |
DWARF v5.
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parse().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFUnitSectionBase::parse().
| const DWARFUnitIndex & DWARFContext::getTUIndex | ( | ) |
Definition at line 443 of file DWARFContext.cpp.
References llvm::DW_SECT_TYPES.
Referenced by llvm::getDWARFUnitIndex().
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
|
pure virtual |
Implemented in llvm::DWARFContextInMemory.
Referenced by llvm::DWARFDebugAranges::generate(), llvm::DWARFUnitSectionBase::parse(), and llvm::DWARFUnitSectionBase::parseDWO().
Definition at line 268 of file DWARFContext.h.
Referenced by llvm::DWARFUnit::extractImpl().
|
delete |
|
inline |
Definition at line 182 of file DWARFContext.h.
References llvm::IndexedInstrProf::Version.
Referenced by llvm::DWARFUnit::extractImpl().
|
inline |
Get type units in this context.
Definition at line 122 of file DWARFContext.h.
|
overridevirtual |
Reimplemented from llvm::DIContext.
Definition at line 414 of file DWARFContext.cpp.
References llvm::DIDT_All, llvm::DIDT_AppleNames, llvm::DIDT_Info, llvm::DIDT_Line, llvm::DWARFVerifier::handleAppleNames(), llvm::DWARFVerifier::handleDebugInfo(), llvm::DWARFVerifier::handleDebugLine(), and Success.
1.8.6