9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
13#include "llvm/ADT/SmallVector.h"
24#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
28#define DIE_SIBLING_IDX_BITSIZE 31
56 Recurse recurse = Recurse::yes)
const {
66 bool check_specification_or_abstract_origin =
false)
const;
70 bool check_specification_or_abstract_origin =
false)
const;
74 bool check_specification_or_abstract_origin =
false)
const;
78 bool check_specification_or_abstract_origin =
false)
const;
82 bool check_specification_or_abstract_origin =
false)
const;
86 bool check_specification_or_abstract_origin =
false)
const;
90 bool check_specification_or_abstract_origin =
false)
const;
95 bool check_specification_or_abstract_origin =
false)
const;
99 bool check_specification_or_abstract_origin =
false)
const;
104 bool substitute_name_allowed =
true)
const;
109 DWARFUnit *cu,
const char *&name,
const char *&mangled,
111 std::optional<int> &decl_line, std::optional<int> &decl_column,
112 std::optional<int> &call_file, std::optional<int> &call_line,
113 std::optional<int> &call_column,
116 const llvm::DWARFAbbreviationDeclaration *
192 uint32_t curr_depth)
const;
DWARFDebugInfoEntry objects assume that they are living in one big vector and do pointer arithmetic o...
bool operator==(const DWARFDebugInfoEntry &rhs) const
std::optional< uint64_t > GetAttributeValueAsOptionalUnsigned(const DWARFUnit *cu, const dw_attr_t attr, bool check_specification_or_abstract_origin=false) const
dw_offset_t GetOffset() const
dw_tag_t m_tag
A copy of the DW_TAG value so we don't have to go through the compile unit abbrev table.
const char * GetAttributeValueAsString(const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, bool check_specification_or_abstract_origin=false) const
dw_offset_t GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &formValue, dw_offset_t *end_attr_offset_ptr=nullptr, bool check_specification_or_abstract_origin=false) const
bool operator!=(const DWARFDebugInfoEntry &rhs) const
void SetHasChildren(bool b)
bool Extract(const lldb_private::DWARFDataExtractor &data, const DWARFUnit *cu, lldb::offset_t *offset_ptr)
DWARFDIE GetParentDeclContextDIE(DWARFUnit *cu) const
DWARFDeclContext GetDWARFDeclContext(DWARFUnit *cu) const
bool GetAttributeAddressRange(const DWARFUnit *cu, dw_addr_t &lo_pc, dw_addr_t &hi_pc, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
bool IsGlobalOrStaticScopeVariable() const
std::vector< DWARFDebugInfoEntry > collection
bool GetDIENamesAndRanges(DWARFUnit *cu, const char *&name, const char *&mangled, DWARFRangeList &rangeList, std::optional< int > &decl_file, std::optional< int > &decl_line, std::optional< int > &decl_column, std::optional< int > &call_file, std::optional< int > &call_line, std::optional< int > &call_column, lldb_private::DWARFExpressionList *frame_base=nullptr) const
const DWARFDebugInfoEntry * GetParent() const
const char * GetMangledName(const DWARFUnit *cu, bool substitute_name_allowed=true) const
dw_addr_t GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
void BuildFunctionAddressRangeTable(DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const
This function is builds a table very similar to the standard .debug_aranges table,...
void SetParentIndex(uint32_t idx)
const DWARFDebugInfoEntry * GetFirstChild() const
DWARFDIE GetAttributeValueAsReference(const DWARFUnit *cu, const dw_attr_t attr, bool check_specification_or_abstract_origin=false) const
uint64_t GetAttributeValueAsUnsigned(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
collection::iterator iterator
const char * GetPubname(const DWARFUnit *cu) const
const llvm::DWARFAbbreviationDeclaration * GetAbbreviationDeclarationPtr(const DWARFUnit *cu) const
uint64_t GetAttributeValueAsAddress(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
DWARFDebugInfoEntry * GetFirstChild()
const char * GetName(const DWARFUnit *cu) const
DWARFAttributes GetAttributes(DWARFUnit *cu, Recurse recurse=Recurse::yes) const
DWARFDebugInfoEntry * GetSibling()
void SetSiblingIndex(uint32_t idx)
const DWARFDebugInfoEntry * GetSibling() const
static DWARFDeclContext GetDWARFDeclContextStatic(const DWARFDebugInfoEntry *die, DWARFUnit *cu)
DWARFRangeList GetAttributeAddressRanges(DWARFUnit *cu, bool check_hi_lo_pc, bool check_specification_or_abstract_origin=false) const
collection::const_iterator const_iterator
lldb::offset_t GetFirstAttributeOffset() const
DWARFDebugInfoEntry * GetParent()
"lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file address range to a single ...
#define DW_INVALID_OFFSET
llvm::dwarf::Tag dw_tag_t
#define DW_DIE_OFFSET_MAX_BITSIZE
llvm::dwarf::Attribute dw_attr_t