class SymbolRef

Defined at line 48 of file ../../src/developer/debug/zxdb/symbols/index_node.h

A reference to a DIE that doesn't need the unit or the underlying llvm::DwarfDebugInfoEntry to

be kept. This allows the discarding of the full parsed DIE structures after indexing. It can be

converted back to a DIE, which will cause the DWARFUnit to be re-parsed.

The offset stored in this structure is the offset from the beginning of the .debug_info

section, which is the same as the offset stored in the llvm::DWARFDebugInfoEntry.

Random code reading the index can convert a SymbolRef to a Symbol object using

ModuleSymbols::IndexSymbolRefToSymbol().

TODO(bug 53091) in the future we may want to add ELF symbol support to this class.

Public Members

static const int32_t kMainBinary

Public Methods

void SymbolRef ()

Defined at line 59 of file ../../src/developer/debug/zxdb/symbols/index_node.h

void SymbolRef (Kind kind, int32_t dwo_index, uint64_t offset)

Defined at line 60 of file ../../src/developer/debug/zxdb/symbols/index_node.h

Kind kind ()

Defined at line 63 of file ../../src/developer/debug/zxdb/symbols/index_node.h

bool is_declaration ()

Defined at line 64 of file ../../src/developer/debug/zxdb/symbols/index_node.h

int32_t dwo_index ()

The DWO index is the index into the child DWO files (when using debug fission) of this

binary. Set to -1 to indicate the symbol is in the main binary instead. When nonnegative,

this is an index into the ModuleSymbolsImpl::dwos_ array.

Defined at line 69 of file ../../src/developer/debug/zxdb/symbols/index_node.h

bool is_main_binary ()

Defined at line 70 of file ../../src/developer/debug/zxdb/symbols/index_node.h

uint64_t offset ()

Defined at line 72 of file ../../src/developer/debug/zxdb/symbols/index_node.h

Enumerations

enum Kind
Name Value
kNull 0
kDwarf 1
kDwarfDeclaration 2

Defined at line 50 of file ../../src/developer/debug/zxdb/symbols/index_node.h