class DWARFDebugAddrTable
Declaration
class DWARFDebugAddrTable { /* full declaration omitted */ };
Description
A class representing an address table as specified in DWARF v5. The table consists of a header followed by an array of address values from .debug_addr section.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:29
Method Overview
- public void clear()
- public void dump(llvm::raw_ostream & OS, llvm::DIDumpOptions DumpOpts = {}) const
- public llvm::Error extract(llvm::DWARFDataExtractor Data, uint64_t * OffsetPtr, uint16_t Version, uint8_t AddrSize, std::function<void (Error)> WarnCallback)
- public Expected<uint64_t> getAddrEntry(uint32_t Index) const
- public uint8_t getAddrSize() const
- public uint32_t getDataSize() const
- public uint64_t getHeaderOffset() const
- public uint8_t getHeaderSize() const
- public uint32_t getLength() const
- public bool hasValidLength() const
- public void invalidateLength()
Methods
¶void clear()
void clear()
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:54
¶void dump(llvm::raw_ostream& OS,
llvm::DIDumpOptions DumpOpts = {}) const
void dump(llvm::raw_ostream& OS,
llvm::DIDumpOptions DumpOpts = {}) const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:63
Parameters
- llvm::raw_ostream& OS
- llvm::DIDumpOptions DumpOpts = {}
¶llvm::Error extract(
llvm::DWARFDataExtractor Data,
uint64_t* OffsetPtr,
uint16_t Version,
uint8_t AddrSize,
std::function<void(Error)> WarnCallback)
llvm::Error extract(
llvm::DWARFDataExtractor Data,
uint64_t* OffsetPtr,
uint16_t Version,
uint8_t AddrSize,
std::function<void(Error)> WarnCallback)
Description
Extract an entire table, including all addresses.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:57
Parameters
- llvm::DWARFDataExtractor Data
- uint64_t* OffsetPtr
- uint16_t Version
- uint8_t AddrSize
- std::function<void(Error)> WarnCallback
¶Expected<uint64_t> getAddrEntry(
uint32_t Index) const
Expected<uint64_t> getAddrEntry(
uint32_t Index) const
Description
Return the address based on a given index.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:66
Parameters
- uint32_t Index
¶uint8_t getAddrSize() const
uint8_t getAddrSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:62
¶uint32_t getDataSize() const
uint32_t getDataSize() const
Description
Returns the length of the array of addresses.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:92
¶uint64_t getHeaderOffset() const
uint64_t getHeaderOffset() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:61
¶uint8_t getHeaderSize() const
uint8_t getHeaderSize() const
Description
Return the size of the table header including the length but not including the addresses.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:70
¶uint32_t getLength() const
uint32_t getLength() const
Description
Returns the length of this table, including the length field, or 0 if the length has not been determined (e.g. because the table has not yet been parsed, or there was a problem in parsing).
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:83
¶bool hasValidLength() const
bool hasValidLength() const
Description
Verify that the given length is valid for this table.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:86
¶void invalidateLength()
void invalidateLength()
Description
Invalidate Length field to stop further processing.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:89