Home
last modified time | relevance | path

Searched refs:DWARFUnit (Results 1 – 25 of 91) sorted by relevance

1234

/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugInfoEntry.h45 void BuildFunctionAddressRangeTable(DWARFUnit *cu,
49 const DWARFUnit *cu, lldb::offset_t *offset_ptr);
52 size_t GetAttributes(DWARFUnit *cu, DWARFAttributes &attrs,
58 GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr,
64 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value,
68 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
72 const DWARFUnit *cu, const dw_attr_t attr,
76 const DWARFUnit *cu, const dw_attr_t attr,
80 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
84 GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value,
[all …]
H A DDWARFUnit.cpp33 DWARFUnit::DWARFUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, in DWARFUnit() function in DWARFUnit
41 DWARFUnit::~DWARFUnit() = default;
44 void DWARFUnit::ExtractUnitDIENoDwoIfNeeded() { in ExtractUnitDIENoDwoIfNeeded()
71 void DWARFUnit::ExtractUnitDIEIfNeeded() { in ExtractUnitDIEIfNeeded()
88 DWARFUnit *dwo_cu = dwo_symbol_file->GetDWOCompileUnitForHash(*m_dwo_id); in ExtractUnitDIEIfNeeded()
135 m_dwo = std::shared_ptr<DWARFUnit>(std::move(dwo_symbol_file), dwo_cu); in ExtractUnitDIEIfNeeded()
140 void DWARFUnit::ExtractDIEsIfNeeded() { in ExtractDIEsIfNeeded()
160 DWARFUnit::ScopedExtractDIEs DWARFUnit::ExtractDIEsScoped() { in ExtractDIEsScoped()
180 DWARFUnit::ScopedExtractDIEs::ScopedExtractDIEs(DWARFUnit &cu) : m_cu(&cu) { in ScopedExtractDIEs()
184 DWARFUnit::ScopedExtractDIEs::~ScopedExtractDIEs() { in ~ScopedExtractDIEs()
[all …]
H A DDWARFBaseDIE.h21 class DWARFUnit; variable
30 DWARFBaseDIE(DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE()
33 DWARFBaseDIE(const DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE()
34 : m_cu(const_cast<DWARFUnit *>(cu)), m_die(die) {} in DWARFBaseDIE()
36 DWARFBaseDIE(DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE()
39 DWARFBaseDIE(const DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE()
40 : m_cu(const_cast<DWARFUnit *>(cu)), in DWARFBaseDIE()
55 DWARFUnit *GetCU() const { return m_cu; } in GetCU()
61 void Set(DWARFUnit *cu, DWARFDebugInfoEntry *die) { in Set()
122 DWARFUnit *m_cu = nullptr;
H A DDWARFFormValue.h16 class DWARFUnit; variable
42 DWARFFormValue(const DWARFUnit *unit) : m_unit(unit) {} in DWARFFormValue()
43 DWARFFormValue(const DWARFUnit *unit, dw_form_t form) in DWARFFormValue()
45 const DWARFUnit *GetUnit() const { return m_unit; } in GetUnit()
46 void SetUnit(const DWARFUnit *unit) { m_unit = unit; } in SetUnit()
59 const DWARFUnit *u);
75 lldb::offset_t *offset_ptr, const DWARFUnit *unit);
85 const DWARFUnit *m_unit = nullptr; // Unit for this form
H A DDWARFDebugInfo.cpp65 DWARFUnit *cu = GetUnitAtIndex(idx); in GetCompileUnitAranges()
84 llvm::Expected<DWARFUnitSP> unit_sp = DWARFUnit::extract( in ParseUnitsFor()
118 DWARFUnit *DWARFDebugInfo::GetUnitAtIndex(size_t idx) { in GetUnitAtIndex()
119 DWARFUnit *cu = nullptr; in GetUnitAtIndex()
143 DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section, in GetUnitAtOffset()
147 DWARFUnit *result = GetUnitAtIndex(idx); in GetUnitAtOffset()
157 DWARFUnit *DWARFDebugInfo::GetUnit(const DIERef &die_ref) { in GetUnit()
161 DWARFUnit *
165 DWARFUnit *result = GetUnitAtIndex(idx); in GetUnitContainingDIEOffset()
189 DWARFUnit *cu = GetUnit(die_ref); in GetDIE()
H A DDWARFUnit.h21 class DWARFUnit; variable
27 typedef std::shared_ptr<DWARFUnit> DWARFUnitSP;
84 class DWARFUnit : public lldb_private::UserID {
93 virtual ~DWARFUnit();
103 DWARFUnit *m_cu;
106 ScopedExtractDIEs(DWARFUnit &cu);
184 DWARFUnit &GetNonSkeletonUnit();
186 static uint8_t GetAddressByteSize(const DWARFUnit *cu);
290 DWARFUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid,
322 std::shared_ptr<DWARFUnit> m_dwo;
[all …]
H A DDWARFDebugInfoEntry.cpp42 const DWARFUnit *cu, in Extract()
211 static DWARFRangeList GetRangesOrReportError(DWARFUnit &unit, in GetRangesOrReportError()
236 DWARFUnit *cu, const char *&name, const char *&mangled, in GetDIENamesAndRanges()
412 size_t DWARFDebugInfoEntry::GetAttributes(DWARFUnit *cu, in GetAttributes()
476 const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &form_value, in GetAttributeValue()
533 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, in GetAttributeValueAsString()
546 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsUnsigned()
557 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsOptionalUnsigned()
571 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsReference()
581 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsAddress()
[all …]
H A DDWARFDebugInfo.h29 DWARFUnit *cu,
38 DWARFUnit *GetUnitAtIndex(size_t idx);
39 DWARFUnit *GetUnitAtOffset(DIERef::Section section, dw_offset_t cu_offset,
41 DWARFUnit *GetUnitContainingDIEOffset(DIERef::Section section,
43 DWARFUnit *GetUnit(const DIERef &die_ref);
H A DDWARFTypeUnit.h15 class DWARFTypeUnit : public DWARFUnit {
25 static bool classof(const DWARFUnit *unit) { return unit->IsTypeUnit(); } in classof()
32 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {} in DWARFTypeUnit()
34 friend class DWARFUnit; variable
H A DDWARFCompileUnit.h15 class DWARFCompileUnit : public DWARFUnit {
21 static bool classof(const DWARFUnit *unit) { return !unit->IsTypeUnit(); } in classof()
32 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {} in DWARFCompileUnit()
37 friend class DWARFUnit; variable
H A DSymbolFileDWARF.h248 bool Supports_DW_AT_APPLE_objc_complete_type(DWARFUnit *cu);
279 GetDwoSymbolFileForCompileUnit(DWARFUnit &dwarf_cu,
302 lldb_private::FileSpec GetFile(DWARFUnit &unit, size_t file_idx);
304 static llvm::Expected<lldb::TypeSystemSP> GetTypeSystem(DWARFUnit &unit);
306 static DWARFASTParser *GetDWARFParser(DWARFUnit &unit);
321 static lldb::LanguageType GetLanguage(DWARFUnit &unit);
323 static lldb::LanguageType GetLanguageFamily(DWARFUnit &unit);
380 DWARFUnit *GetNextUnparsedDWARFCompileUnit(DWARFUnit *prev_cu);
398 bool ParseSupportFiles(DWARFUnit &dwarf_cu, const lldb::ModuleSP &module,
H A DDWARFAttribute.h17 class DWARFUnit; variable
51 DWARFUnit *CompileUnitAtIndex(uint32_t i) const { return m_infos[i].cu; } in CompileUnitAtIndex()
71 DWARFUnit *cu; // Keep the compile unit with each attribute in
H A DDWARFFormValue.cpp21 class DWARFUnit;
49 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue()
192 const DWARFUnit *u) { in GetFixedSize()
212 const DWARFUnit *unit) { in SkipValue()
246 *offset_ptr += DWARFUnit::GetAddressByteSize(unit); in SkipValue()
519 return const_cast<DWARFUnit *>(m_unit)->GetDIE(value); in Reference()
522 DWARFUnit *ref_cu = in Reference()
H A DDWARFDebugRanges.h15 class DWARFUnit; variable
25 bool FindRanges(const DWARFUnit *cu, dw_offset_t debug_ranges_offset,
H A DManualDWARFIndex.h36 GetGlobalVariables(DWARFUnit &unit,
162 void IndexUnit(DWARFUnit &unit, SymbolFileDWARFDwo *dwp, IndexSet &set);
164 static void IndexUnitImpl(DWARFUnit &unit,
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFUnit.cpp78 -> std::unique_ptr<DWARFUnit> { in addUnitsImpl()
100 std::unique_ptr<DWARFUnit> U; in addUnitsImpl()
136 DWARFUnit *DWARFUnitVector::addUnit(std::unique_ptr<DWARFUnit> Unit) { in addUnit()
138 [](const std::unique_ptr<DWARFUnit> &LHS, in addUnit()
139 const std::unique_ptr<DWARFUnit> &RHS) { in addUnit()
145 DWARFUnit *DWARFUnitVector::getUnitForOffset(uint64_t Offset) const { in getUnitForOffset()
149 [](uint64_t LHS, const std::unique_ptr<DWARFUnit> &RHS) { in getUnitForOffset()
157 DWARFUnit *
168 [](uint64_t LHS, const std::unique_ptr<DWARFUnit> &RHS) { in getUnitForIndexEntry()
187 DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFSection &Section, in DWARFUnit() function in DWARFUnit
[all …]
H A DDWARFAbbreviationDeclaration.cpp149 uint32_t AttrIndex, uint64_t DIEOffset, const DWARFUnit &U) const { in getAttributeOffsetFromIndex()
167 uint32_t AttrIndex, uint64_t Offset, const DWARFUnit &U) const { in getAttributeValueFromOffset()
187 const DWARFUnit &U) const { in getAttributeValue()
200 const DWARFUnit &U) const { in getByteSize()
212 const DWARFUnit &U) const { in getByteSize()
225 const DWARFUnit &U) const { in getFixedAttributesByteSize()
/openbsd-src/gnu/llvm/lldb/include/lldb/Expression/
H A DDWARFExpression.h21 class DWARFUnit; variable
75 lldb::addr_t GetLocation_DW_OP_addr(const DWARFUnit *dwarf_cu,
78 bool Update_DW_OP_addr(const DWARFUnit *dwarf_cu, lldb::addr_t file_addr);
83 bool ContainsThreadLocalStorage(const DWARFUnit *dwarf_cu) const;
86 const DWARFUnit *dwarf_cu,
139 const DWARFUnit *dwarf_cu,
145 static bool ParseDWARFLocationList(const DWARFUnit *dwarf_cu,
H A DDWARFExpressionList.h16 class DWARFUnit; variable
27 DWARFExpressionList(lldb::ModuleSP module_sp, const DWARFUnit *dwarf_cu, in DWARFExpressionList()
33 const DWARFUnit *dwarf_cu) in DWARFExpressionList()
139 const DWARFUnit *m_dwarf_cu = nullptr;
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFUnit.h39 class DWARFUnit; variable
119 bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U);
123 class DWARFUnitVector final : public SmallVector<std::unique_ptr<DWARFUnit>, 1> {
124 std::function<std::unique_ptr<DWARFUnit>(uint64_t, DWARFSectionKind,
131 using UnitVector = SmallVectorImpl<std::unique_ptr<DWARFUnit>>;
138 DWARFUnit *getUnitForOffset(uint64_t Offset) const;
139 DWARFUnit *getUnitForIndexEntry(const DWARFUnitIndex::Entry &E);
157 DWARFUnit *addUnit(std::unique_ptr<DWARFUnit> Unit);
206 class DWARFUnit {
224 DWARFUnit *SU;
[all …]
H A DDWARFAbbreviationDeclaration.h23 class DWARFUnit; variable
82 std::optional<int64_t> getByteSize(const DWARFUnit &U) const;
145 const DWARFUnit &U) const;
155 const DWARFUnit &U) const;
166 const DWARFUnit &U) const;
174 std::optional<size_t> getFixedAttributesByteSize(const DWARFUnit &U) const;
199 size_t getByteSize(const DWARFUnit &U) const;
H A DDWARFExpression.h18 class DWARFUnit; variable
96 const DWARFExpression *Expr, DWARFUnit *U) const;
99 static bool verify(const Operation &Op, DWARFUnit *U);
149 void print(raw_ostream &OS, DIDumpOptions DumpOpts, DWARFUnit *U,
160 bool verify(DWARFUnit *U);
166 static bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
H A DDWARFFormValue.h23 class DWARFUnit; variable
61 const DWARFUnit *U = nullptr; /// Remember the DWARFUnit at extract time.
74 static DWARFFormValue createFromUnit(dwarf::Form F, const DWARFUnit *Unit,
81 const DWARFUnit *getUnit() const { return U; } in getUnit()
98 const DWARFUnit *Unit = nullptr);
101 dwarf::FormParams FormParams, const DWARFUnit *U) { in extractValue()
109 DWARFUnit *Unit;
H A DDWARFCompileUnit.h22 class DWARFCompileUnit : public DWARFUnit {
30 : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS, in DWARFCompileUnit()
38 static bool classof(const DWARFUnit *U) { return !U->isTypeUnit(); } in classof()
H A DDWARFTypeUnit.h24 class DWARFTypeUnit : public DWARFUnit {
32 : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS, in DWARFTypeUnit()
40 static bool classof(const DWARFUnit *U) { return U->isTypeUnit(); } in classof()

1234