9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
13#include "llvm/ADT/SmallVector.h"
23#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
27class DWARFDeclContext;
29#define DIE_SIBLING_IDX_BITSIZE 31
57 Recurse recurse = Recurse::yes)
const {
67 bool check_specification_or_abstract_origin =
false)
const;
71 bool check_specification_or_abstract_origin =
false)
const;
75 bool check_specification_or_abstract_origin =
false)
const;
79 bool check_specification_or_abstract_origin =
false)
const;
83 bool check_specification_or_abstract_origin =
false)
const;
87 bool check_specification_or_abstract_origin =
false)
const;
91 bool check_specification_or_abstract_origin =
false)
const;
96 bool check_specification_or_abstract_origin =
false)
const;
100 bool check_specification_or_abstract_origin =
false)
const;
105 bool substitute_name_allowed =
true)
const;
111 std::optional<int> &decl_file,
112 std::optional<int> &decl_line,
113 std::optional<int> &decl_column,
114 std::optional<int> &call_file,
115 std::optional<int> &call_line,
116 std::optional<int> &call_column,
119 const llvm::DWARFAbbreviationDeclaration *
186 uint32_t curr_depth)
const;
"lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file address range to a single ...
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
void SetHasChildren(bool b)
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
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
void SetParentIndex(uint32_t idx)
DWARFAttributes GetAttributes(DWARFUnit *cu, Recurse recurse=Recurse::yes) const
const char * GetMangledName(const DWARFUnit *cu, bool substitute_name_allowed=true) const
const llvm::DWARFAbbreviationDeclaration * GetAbbreviationDeclarationPtr(const DWARFUnit *cu) const
DWARFDebugInfoEntry * GetSibling()
dw_addr_t GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
DWARFDebugInfoEntry * GetParent()
void BuildFunctionAddressRangeTable(DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const
This function is builds a table very similar to the standard .debug_aranges table,...
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
const char * GetPubname(const DWARFUnit *cu) const
bool Extract(const DWARFDataExtractor &data, const DWARFUnit &cu, lldb::offset_t *offset_ptr)
uint64_t GetAttributeValueAsAddress(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_specification_or_abstract_origin=false) const
collection::const_iterator const_iterator
std::vector< DWARFDebugInfoEntry > collection
const char * GetName(const DWARFUnit *cu) const
void SetSiblingIndex(uint32_t idx)
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, DWARFExpressionList *frame_base=nullptr) const
const DWARFDebugInfoEntry * GetParent() const
DWARFDebugInfoEntry * GetFirstChild()
DWARFRangeList GetAttributeAddressRanges(DWARFUnit *cu, bool check_hi_lo_pc, bool check_specification_or_abstract_origin=false) const
collection::iterator iterator
lldb::offset_t GetFirstAttributeOffset() const
const DWARFDebugInfoEntry * GetSibling() const
#define DW_INVALID_OFFSET
llvm::dwarf::Tag dw_tag_t
#define DW_DIE_OFFSET_MAX_BITSIZE
llvm::dwarf::Attribute dw_attr_t