A DWARF compile or type unit and its parsed DIEs.
Synopsis
Declared in <llvm/DebugInfo/DWARF/DWARFUnit.h>
class DWARFUnit;
Member Functions
Name |
Description |
|
Construct a unit for |
|
Destroy this unit and release owned DWO state. |
Clear parsed DIE and abbreviation state for this unit. |
|
Release the DWO context owned by this skeleton unit. |
|
Collect address ranges covered by this unit's DIE tree. |
|
Return an iterator range over this unit's DIEs, extracting them if needed. |
|
|
Dump this unit to |
Extract a range list from .debug_ranges for this compile unit. |
|
Return location expressions from the loclist at offset |
|
Return address ranges from the indexed range list at |
|
Return address ranges from the range list at offset |
|
Offset of this unit's abbreviations within .debug_abbrev. |
|
Abbreviation set for this unit, or nullptr if unavailable. |
|
Offset of this unit's abbreviation set within .debug_abbrev. |
|
Base offset of this unit's contribution within .debug_addr, if set. |
|
Look up address |
|
Address size in bytes for this unit. |
|
Unit base address from DW_AT_low_pc or DW_AT_entry_pc, if present. |
|
Return the DW_AT_comp_dir compilation directory string, or nullptr if absent. |
|
Return the DWARF context that owns this unit. |
|
Return the DIE object at the given index |
|
Return the DIE object for a given offset |
|
Return the index of a DIE inside the unit's DIE vector. |
|
Return the DIE index for a given offset |
|
Return the split unit this skeleton unit currently owns, or null if its DWO context is not open. |
|
DWO ID from the unit DIE/header for split DWARF, if present. |
|
Data extractor over this unit's .debug_info/.debug_types bytes. |
|
Byte size of a DWARF section offset for this unit's format (4 or 8). |
|
Byte size of one entry in this unit's string‐offsets contribution. |
|
Return the first child DIE of |
|
Form parameters (version, address size, format) for this unit. |
|
DWARF format (32‐ or 64‐bit) of this unit. |
|
Size in bytes of the parsed unit header. |
|
Returns offset to the indexed address value inside .debug_addr section. |
|
Section containing this unit's .debug_info/.debug_types data. |
|
Fetch the inlined call chain for a given address. |
|
Return the last child DIE of |
|
Length of this unit's contribution from the unit header. |
|
Return the .debug_line section associated with this unit. |
|
Offset of this unit's .debug_line contribution from the package index, or 0. |
|
Return this unit, or its skeleton unit when this is a split DWO unit. |
|
Base offset of this unit's contribution within the location section. |
|
Location list table for this unit. |
|
Return a loclist's offset based on index |
|
Absolute section offset of the unit that follows this one. |
|
Return the split/DWO unit DIE when available, otherwise this unit's DIE. |
|
Returns the number of DIEs in the unit. Parses the unit if necessary. |
|
Byte offset of this unit within its info/types section. |
|
Return the parent DIE of |
|
Return the previous sibling DIE of |
|
Byte size of a DW_FORM_ref_addr value for this unit. |
|
Return a rangelist's offset based on an index. |
|
Return the next sibling DIE of |
|
Data extractor over this unit's .debug_str section bytes. |
|
Return the .debug_str_offsets section associated with this unit. |
|
Look up string‐offset |
|
Base offset of this unit's contribution to .debug_str_offsets. |
|
Return this unit's contribution to .debug_str_offsets (extracting the CU DIE if needed). |
|
Return the .debug_str section associated with this unit. |
|
Return the subprogram DIE whose address range covers |
|
Return the root unit DIE, optionally extracting only that DIE. |
|
DWARF unit type (e.g. DW_UT_compile) from the unit header. |
|
Return the DWARFUnitVector containing this unit. |
|
Return the variable DIE for address |
|
DWARF version number from this unit's header. |
|
True if this unit came from a .dwo/.dwp split DWARF object. |
|
True if this unit's data is little‐endian. |
|
True if this is a type unit (including split type units). |
|
Set the .debug_addr section and this unit's base offset within it. |
|
Set the DWO ID on this unit's header. |
|
Set the .debug_ranges/.debug_rnglists section and this unit's base offset. |
|
Associate skeleton unit |
|
Parse this unit's DIEs if needed; return an error instead of reporting it. |
|
Recursively update address to Die map. |
|
Recursively update address to variable Die map. |
Static Member Functions
Name |
Description |
True if DIE tag |
Protected Member Functions
Name |
Description |
Find this unit's contribution to the string offsets table. |
|
Find this DWO/DWP unit's contribution to the string offsets table. |
|
Return the index of a |
|
Return DWARFDebugInfoEntry for the specified index |
|
Return the first child entry of |
|
Return this unit's parsed header. |
|
Return the last child entry of |
|
Return the parent debug‐info entry of |
|
Return the previous sibling entry of |
|
Return the next sibling entry of |
Friends
Name |
Description |
A DWARF compile unit specialization used by the parallel linker. |
Non-Member Functions
Name |
Description |
Pretty print a register opcode and operands. |
Derived Classes
Name |
Description |
A DWARF compile unit and its parsed DIEs. |
|
A DWARF type unit and its parsed DIEs. |
Created with MrDocs