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"
26class DWARFDeclContext;
28#define DIE_SIBLING_IDX_BITSIZE 31
56 Recurse recurse = Recurse::yes)
const {
65 bool check_elaborating_dies =
false)
const;
69 const char *fail_value,
70 bool check_elaborating_dies =
false)
const;
75 bool check_elaborating_dies =
false)
const;
79 bool check_elaborating_dies =
false)
const;
83 bool check_elaborating_dies =
false)
const;
88 bool check_elaborating_dies =
false)
const;
92 bool check_elaborating_dies =
false)
const;
96 bool check_elaborating_dies =
false)
const;
98 llvm::Expected<llvm::DWARFAddressRangesVector>
100 bool check_elaborating_dies =
false)
const;
105 bool substitute_name_allowed =
true)
const;
110 DWARFUnit *cu,
const char *&name,
const char *&mangled,
111 llvm::DWARFAddressRangesVector &rangeList, std::optional<int> &decl_file,
112 std::optional<int> &decl_line, std::optional<int> &decl_column,
113 std::optional<int> &call_file, std::optional<int> &call_line,
114 std::optional<int> &call_column,
117 const llvm::DWARFAbbreviationDeclaration *
184 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
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
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
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)
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