9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFOENTRY_H
21#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
22#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
28#define DIE_SIBLING_IDX_BITSIZE 31
76 Recurse recurse = Recurse::yes)
const;
81 bool check_elaborating_dies =
false)
const;
85 const char *fail_value,
86 bool check_elaborating_dies =
false)
const;
91 bool check_elaborating_dies =
false)
const;
95 bool check_elaborating_dies =
false)
const;
99 bool check_elaborating_dies =
false)
const;
104 bool check_elaborating_dies =
false)
const;
108 bool check_elaborating_dies =
false)
const;
112 bool check_elaborating_dies =
false)
const;
114 llvm::Expected<llvm::DWARFAddressRangesVector>
116 bool check_elaborating_dies =
false)
const;
121 bool substitute_name_allowed =
true)
const;
126 DWARFUnit *cu,
const char *&name,
const char *&mangled,
127 llvm::DWARFAddressRangesVector &rangeList, std::optional<int> &decl_file,
128 std::optional<int> &decl_line, std::optional<int> &decl_column,
129 std::optional<int> &call_file, std::optional<int> &call_line,
130 std::optional<int> &call_column,
133 const llvm::DWARFAbbreviationDeclaration *
"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
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.
bool GetAttributeAddressRange(const DWARFUnit *cu, dw_addr_t &lo_pc, dw_addr_t &hi_pc, uint64_t fail_value, bool check_elaborating_dies=false) const
dw_addr_t GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, bool check_elaborating_dies=false) const
bool operator!=(const DWARFDebugInfoEntry &rhs) const
llvm::Expected< llvm::DWARFAddressRangesVector > GetAttributeAddressRanges(DWARFUnit *cu, bool check_hi_lo_pc, bool check_elaborating_dies=false) const
DWARFAttributes GetAttributes(const DWARFUnit *cu, Recurse recurse=Recurse::yes) const
Get all attribute values for a given DIE, optionally following any specifications and abstract origin...
bool IsGlobalOrStaticScopeVariable() const
void SetParentIndex(uint32_t idx)
const char * GetMangledName(const DWARFUnit *cu, bool substitute_name_allowed=true) const
std::optional< uint64_t > GetAttributeValueAsOptionalUnsigned(const DWARFUnit *cu, const dw_attr_t attr, bool check_elaborating_dies=false) const
const llvm::DWARFAbbreviationDeclaration * GetAbbreviationDeclarationPtr(const DWARFUnit *cu) const
DWARFDebugInfoEntry * GetSibling()
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_elaborating_dies=false) const
const char * GetAttributeValueAsString(const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, bool check_elaborating_dies=false) const
bool GetDIENamesAndRanges(DWARFUnit *cu, const char *&name, const char *&mangled, llvm::DWARFAddressRangesVector &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
uint64_t GetAttributeValueAsAddress(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_elaborating_dies=false) const
uint64_t GetAttributeValueAsUnsigned(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_elaborating_dies=false) const
const char * GetPubname(const DWARFUnit *cu) const
bool Extract(const DWARFDataExtractor &data, const DWARFUnit &cu, lldb::offset_t *offset_ptr)
dw_offset_t GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &formValue, dw_offset_t *end_attr_offset_ptr=nullptr, bool check_elaborating_dies=false) const
collection::const_iterator const_iterator
std::vector< DWARFDebugInfoEntry > collection
const char * GetName(const DWARFUnit *cu) const
void SetSiblingIndex(uint32_t idx)
DWARFBaseDIE::Recurse Recurse
const DWARFDebugInfoEntry * GetParent() const
DWARFDebugInfoEntry * GetFirstChild()
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