llvm::DWARFDataExtractor

A DWARFDataExtractor (typically for an in-memory copy of an object-file section) plus a relocation map for that section, if there is one.

Synopsis

Declared in <llvm/DebugInfo/DWARF/DWARFDataExtractor.h>

class DWARFDataExtractor
    : public DWARFDataExtractorBase<DWARFDataExtractor>

Base Classes

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

Member Functions

NameDescription
DWARFDataExtractor [constructor]Constructors
getAddress getAddress overloads
getAddressSize Get the address size for this extractor.
getEncodedPointer Extract a DWARF-encoded pointer at Offset using Encoding.
getInitialLength getInitialLength overloads
getRelocatedAddress getRelocatedAddress overloads
getRelocatedValue getRelocatedValue overloads
getRelocatedValueImpl Extracts a value and applies a relocation to the result if one exists for the given offset.
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
DWARFDataExtractor Inherit base DWARFDataExtractorBase constructors.

Non-Member Functions

NameDescription
readAbbrevAttributeRead the next attribute/form spec from an abbreviation declaration.
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.