A DataExtractor suitable use for parsing dwarf from memory. Clients use Relocator::getRelocatedValueImpl to relocate values as appropriate.
Synopsis
Declared in <llvm/DebugInfo/DWARF/LowLevel/DWARFDataExtractorSimple.h>
template<typename Relocator>
class DWARFDataExtractorBase
: public DataExtractor
Base Classes
Name |
Description |
Helper for extracting integers and strings from a binary buffer. |
Types
Name |
Description |
Position in a DataExtractor together with any extraction error. |
Member Functions
Name |
Description |
|
Constructors |
Return true if the cursor is at the end of the buffer. |
|
|
|
Get the address size for this extractor. |
|
|
|
|
|
|
|
Get the data pointed to by this extractor. |
|
Extract a DWARF‐encoded pointer at |
|
Extract a fixed length string from *OffsetPtr and consume Length bytes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Extract an signed integer of size byte_size from *offset_ptr. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get the endianness for this extractor. |
|
Test the validity of offset. |
|
Test the availability of enough bytes of data for an address from Offset. The size of an address is getAddressSize(). |
|
Test the availability of length bytes of data from offset. |
|
Set the address size for this extractor. |
|
Return the number of bytes in the underlying buffer. |
|
Advance the Cursor position by the given number of bytes. No‐op if the cursor is in an error state. |
Protected Static Member Functions
Non-Member Functions
Name |
Description |
Read the next attribute/form spec from an abbreviation declaration. |
|
This function will attempt to load XRay trace records from the provided DataExtractor. |
|
Convenience function for loading the file header given a data extractor at a specified offset. |
Derived Classes
Name |
Description |
A DWARFDataExtractor (typically for an in‐memory copy of an object‐file section) plus a relocation map for that section, if there is one. |
|
Non‐relocating DWARF data extractor for memory‐backed debug info. |
Created with MrDocs