llvm::DWARFDataExtractorSimple

Synopsis

Declared in <llvm/DebugInfo/DWARF/LowLevel/DWARFDataExtractorSimple.h>

class DWARFDataExtractorSimple
    : public DWARFDataExtractorBase<DWARFDataExtractorSimple>

Base Classes

NameDescription
DWARFDataExtractorBase<DWARFDataExtractorSimple>A DataExtractor suitable use for parsing dwarf from memory. Clients use Relocator::getRelocatedValueImpl to relocate values as appropriate.

Member Functions

NameDescription
getAddress getAddress overloads
getAddressSize Get the address size for this extractor.
getEncodedPointer Extracts a DWARF-encoded pointer in Offset using Encoding. There is a DWARF encoding that uses a PC-relative adjustment. For these values, AbsPosOffset is used to fix them, which should reflect the absolute address of this pointer.
getInitialLength getInitialLength overloads
getRelocatedAddress Extracts an address-sized value.
getRelocatedValue getRelocatedValue overloads
getRelocatedValueImpl
isValidOffsetForAddress Test the availability of enough bytes of data for an address from Offset. The size of an address is getAddressSize().
setAddressSize Set the address size for this extractor.

Using Declarations

NameDescription
DWARFDataExtractorSimple Inherit constructors from DWARFDataExtractorBase.

Non-Member Functions

NameDescription
readAbbrevAttributeRead the next (attribute, form) specification from an abbreviation declaration at Offset, advancing Offset past it. ImplicitConst is set to the inline value of a DW_FORM_implicit_const attribute and to std::nullopt otherwise. Returns false on the terminating (0, 0) pair.
xray::loadTraceThis function will attempt to load XRay trace records from the provided DataExtractor.
xray::readBinaryFormatHeaderConvenience function for loading the file header given a data extractor at a specified offset.