class DWARFUnitHeader
Declaration
class DWARFUnitHeader { /* full declaration omitted */ };
Description
Base class describing the header of any kind of "unit." Some information is specific to certain unit types. We separate this class out so we can parse the header before deciding what specific kind of unit to construct.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:47
Method Overview
- public bool extract(llvm::DWARFContext & Context, const llvm::DWARFDataExtractor & debug_info, uint64_t * offset_ptr, llvm::DWARFSectionKind Kind = DW_SECT_INFO, const llvm::DWARFUnitIndex * Index = nullptr, const DWARFUnitIndex::Entry * Entry = nullptr)
- public uint64_t getAbbrOffset() const
- public uint8_t getAddressByteSize() const
- public Optional<uint64_t> getDWOId() const
- public uint8_t getDwarfOffsetByteSize() const
- public const dwarf::FormParams & getFormParams() const
- public dwarf::DwarfFormat getFormat() const
- public const DWARFUnitIndex::Entry * getIndexEntry() const
- public uint64_t getLength() const
- public uint64_t getNextUnitOffset() const
- public uint64_t getOffset() const
- public uint8_t getRefAddrByteSize() const
- public uint8_t getSize() const
- public uint64_t getTypeHash() const
- public uint64_t getTypeOffset() const
- public uint8_t getUnitLengthFieldByteSize() const
- public uint8_t getUnitType() const
- public uint16_t getVersion() const
- public bool isTypeUnit() const
- public void setDWOId(uint64_t Id)
Methods
¶bool extract(
llvm::DWARFContext& Context,
const llvm::DWARFDataExtractor& debug_info,
uint64_t* offset_ptr,
llvm::DWARFSectionKind Kind = DW_SECT_INFO,
const llvm::DWARFUnitIndex* Index = nullptr,
const DWARFUnitIndex::Entry* Entry = nullptr)
bool extract(
llvm::DWARFContext& Context,
const llvm::DWARFDataExtractor& debug_info,
uint64_t* offset_ptr,
llvm::DWARFSectionKind Kind = DW_SECT_INFO,
const llvm::DWARFUnitIndex* Index = nullptr,
const DWARFUnitIndex::Entry* Entry = nullptr)
Description
Parse a unit header from \p debug_info starting at \p offset_ptr.
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:73
Parameters
- llvm::DWARFContext& Context
- const llvm::DWARFDataExtractor& debug_info
- uint64_t* offset_ptr
- llvm::DWARFSectionKind Kind = DW_SECT_INFO
- const llvm::DWARFUnitIndex* Index = nullptr
- const DWARFUnitIndex::Entry* Entry = nullptr
¶uint64_t getAbbrOffset() const
uint64_t getAbbrOffset() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:87
¶uint8_t getAddressByteSize() const
uint8_t getAddressByteSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:81
¶Optional<uint64_t> getDWOId() const
Optional<uint64_t> getDWOId() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:88
¶uint8_t getDwarfOffsetByteSize() const
uint8_t getDwarfOffsetByteSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:83
¶const dwarf::FormParams& getFormParams() const
const dwarf::FormParams& getFormParams() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:78
¶dwarf::DwarfFormat getFormat() const
dwarf::DwarfFormat getFormat() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:80
¶const DWARFUnitIndex::Entry* getIndexEntry() const
const DWARFUnitIndex::Entry* getIndexEntry() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:93
¶uint64_t getLength() const
uint64_t getLength() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:86
¶uint64_t getNextUnitOffset() const
uint64_t getNextUnitOffset() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:104
¶uint64_t getOffset() const
uint64_t getOffset() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:77
¶uint8_t getRefAddrByteSize() const
uint8_t getRefAddrByteSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:82
¶uint8_t getSize() const
uint8_t getSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:100
¶uint64_t getTypeHash() const
uint64_t getTypeHash() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:94
¶uint64_t getTypeOffset() const
uint64_t getTypeOffset() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:95
¶uint8_t getUnitLengthFieldByteSize() const
uint8_t getUnitLengthFieldByteSize() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:101
¶uint8_t getUnitType() const
uint8_t getUnitType() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:96
¶uint16_t getVersion() const
uint16_t getVersion() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:79
¶bool isTypeUnit() const
bool isTypeUnit() const
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:97
¶void setDWOId(uint64_t Id)
void setDWOId(uint64_t Id)
Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h:89
Parameters
- uint64_t Id