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

Methods

void clear()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:54

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)

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

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:62

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:61

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

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

Description

Verify that the given length is valid for this table.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:86

void invalidateLength()

Description

Invalidate Length field to stop further processing.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h:89