Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFUnit.cpp37 DWARFUnit::DWARFUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, in DWARFUnit() function in DWARFUnit
45 DWARFUnit::~DWARFUnit() = default;
48 void DWARFUnit::ExtractUnitDIENoDwoIfNeeded() { in ExtractUnitDIENoDwoIfNeeded()
75 void DWARFUnit::ExtractUnitDIEIfNeeded() { in ExtractUnitDIEIfNeeded()
92 DWARFUnit *dwo_cu = dwo_symbol_file->GetDWOCompileUnitForHash(*m_dwo_id); in ExtractUnitDIEIfNeeded()
146 m_dwo = std::shared_ptr<DWARFUnit>(std::move(dwo_symbol_file), dwo_cu); in ExtractUnitDIEIfNeeded()
151 void DWARFUnit::ExtractDIEsIfNeeded() { in ExtractDIEsIfNeeded()
171 DWARFUnit::ScopedExtractDIEs DWARFUnit::ExtractDIEsScoped() { in ExtractDIEsScoped()
191 DWARFUnit::ScopedExtractDIEs::ScopedExtractDIEs(DWARFUnit &cu) : m_cu(&cu) { in ScopedExtractDIEs()
196 DWARFUnit::ScopedExtractDIEs::~ScopedExtractDIEs() { in ~ScopedExtractDIEs()
[all …]
H A DDWARFDebugInfoEntry.h48 void BuildFunctionAddressRangeTable(DWARFUnit *cu,
51 bool Extract(const DWARFDataExtractor &data, const DWARFUnit &cu,
75 DWARFAttributes GetAttributes(const DWARFUnit *cu,
78 dw_offset_t GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr,
84 GetAttributeValueAsString(const DWARFUnit *cu, const dw_attr_t attr,
89 GetAttributeValueAsUnsigned(const DWARFUnit *cu, const dw_attr_t attr,
94 const DWARFUnit *cu, const dw_attr_t attr,
98 GetAttributeValueAsReference(const DWARFUnit *cu, const dw_attr_t attr,
102 GetAttributeValueAsAddress(const DWARFUnit *cu, const dw_attr_t attr,
106 dw_addr_t GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc,
[all …]
H A DDWARFBaseDIE.h23 class DWARFUnit; variable
34 DWARFBaseDIE(DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE()
37 DWARFBaseDIE(const DWARFUnit *cu, DWARFDebugInfoEntry *die) in DWARFBaseDIE()
38 : m_cu(const_cast<DWARFUnit *>(cu)), m_die(die) {} in DWARFBaseDIE()
40 DWARFBaseDIE(DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE()
43 DWARFBaseDIE(const DWARFUnit *cu, const DWARFDebugInfoEntry *die) in DWARFBaseDIE()
44 : m_cu(const_cast<DWARFUnit *>(cu)), in DWARFBaseDIE()
59 DWARFUnit *GetCU() const { return m_cu; } in GetCU()
65 void Set(DWARFUnit *cu, DWARFDebugInfoEntry *die) { in Set()
129 DWARFUnit *m_cu = nullptr;
H A DDWARFFormValue.h18 class DWARFUnit; variable
34 DWARFFormValue(const DWARFUnit *unit) : m_unit(unit) {} in DWARFFormValue()
35 DWARFFormValue(const DWARFUnit *unit, dw_form_t form) in DWARFFormValue()
37 const DWARFUnit *GetUnit() const { return m_unit; } in GetUnit()
38 void SetUnit(const DWARFUnit *unit) { m_unit = unit; } in SetUnit()
50 const DWARFUnit *u);
57 std::pair<DWARFUnit *, uint64_t> ReferencedUnitAndOffset() const;
72 lldb::offset_t *offset_ptr, const DWARFUnit *unit);
88 const DWARFUnit *m_unit = nullptr; // Unit for this form
H A DDWARFUnit.h27 class DWARFUnit; variable
33 typedef std::shared_ptr<DWARFUnit> DWARFUnitSP;
43 class DWARFUnit : public DWARFExpression::Delegate, public UserID {
52 virtual ~DWARFUnit();
68 DWARFUnit *m_cu;
72 ScopedExtractDIEs(DWARFUnit &cu);
174 DWARFUnit &GetNonSkeletonUnit();
176 static uint8_t GetAddressByteSize(const DWARFUnit *cu);
194 bool LinkToSkeletonUnit(DWARFUnit &skeleton_unit);
293 DWARFUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid,
[all …]
H A DDWARFDebugInfo.h28 typedef dw_offset_t (*Callback)(SymbolFileDWARF *dwarf2Data, DWARFUnit *cu,
36 DWARFUnit *GetUnitAtIndex(size_t idx);
37 DWARFUnit *GetUnitAtOffset(DIERef::Section section, dw_offset_t cu_offset,
39 DWARFUnit *GetUnitContainingDIEOffset(DIERef::Section section,
41 DWARFUnit *GetSkeletonUnit(DWARFUnit *dwo_unit);
70 llvm::DenseMap<uint64_t, DWARFUnit *> m_dwarf5_dwo_id_to_skeleton_unit;
71 llvm::DenseMap<uint64_t, DWARFUnit *> m_dwarf4_dwo_id_to_skeleton_unit;
H A DDWARFDebugInfo.cpp66 DWARFUnit *cu = GetUnitAtIndex(idx); in GetCompileUnitAranges()
87 DWARFUnit::extract(m_dwarf, m_units.size(), data, section, &offset); in ParseUnitsFor()
124 DWARFUnit *DWARFDebugInfo::GetSkeletonUnit(DWARFUnit *dwo_unit) { in GetSkeletonUnit()
157 if (DWARFUnit *unit = GetUnitAtIndex(i)) { in GetSkeletonUnit()
186 DWARFUnit *DWARFDebugInfo::GetUnitAtIndex(size_t idx) { in GetUnitAtIndex()
187 DWARFUnit *cu = nullptr; in GetUnitAtIndex()
211 DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section, in GetUnitAtOffset()
215 DWARFUnit *result = GetUnitAtIndex(idx); in GetUnitAtOffset()
225 DWARFUnit *
229 DWARFUnit *result = GetUnitAtIndex(idx); in GetUnitContainingDIEOffset()
[all …]
H A DDWARFDebugInfoEntry.cpp44 const DWARFUnit &unit, in Extract()
86 GetRanges(DWARFUnit &unit, const DWARFFormValue &value) { in GetRanges()
106 DWARFUnit *cu, const char *&name, const char *&mangled, in GetDIENamesAndRanges()
356 DWARFAttributes DWARFDebugInfoEntry::GetAttributes(const DWARFUnit *cu, in GetAttributes()
389 const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &form_value, in GetAttributeValue()
441 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, in GetAttributeValueAsString()
453 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsUnsigned()
463 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsOptionalUnsigned()
476 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsReference()
485 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsAddress()
[all …]
H A DDWARFTypeUnit.h21 class DWARFTypeUnit : public DWARFUnit {
31 static bool classof(const DWARFUnit *unit) { return unit->IsTypeUnit(); } in classof()
38 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {} in DWARFTypeUnit()
40 friend class DWARFUnit; variable
H A DDWARFCompileUnit.h21 class DWARFCompileUnit : public DWARFUnit {
27 static bool classof(const DWARFUnit *unit) { return !unit->IsTypeUnit(); } in classof()
38 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {} in DWARFCompileUnit()
43 friend class DWARFUnit; variable
H A DSymbolFileDWARF.h253 GetDwoSymbolFileForCompileUnit(DWARFUnit &dwarf_cu,
268 DWARFUnit *GetSkeletonUnit(DWARFUnit *dwo_unit);
294 FileSpec GetFile(DWARFUnit &unit, size_t file_idx);
296 static llvm::Expected<lldb::TypeSystemSP> GetTypeSystem(DWARFUnit &unit);
298 static DWARFASTParser *GetDWARFParser(DWARFUnit &unit);
310 static lldb::LanguageType GetLanguage(DWARFUnit &unit);
312 static lldb::LanguageType GetLanguageFamily(DWARFUnit &unit);
392 DWARFUnit *GetNextUnparsedDWARFCompileUnit(DWARFUnit *prev_cu);
407 bool ParseSupportFiles(DWARFUnit &dwarf_cu, const lldb::ModuleSP &module,
H A DDWARFAttribute.h19 class DWARFUnit;
50 DWARFUnit *CompileUnitAtIndex(uint32_t i) const { return m_infos[i].cu; } in DIEOffsetAtIndex()
70 DWARFUnit *cu; // Keep the compile unit with each attribute in
17 class DWARFUnit; global() variable
H A DManualDWARFIndex.h40 GetGlobalVariables(DWARFUnit &unit,
143 void IndexUnit(DWARFUnit &unit, SymbolFileDWARFDwo *dwp,
146 static void IndexUnitImpl(DWARFUnit &unit,
H A DDWARFFormValue.cpp47 data.GetMaxU64(offset_ptr, DWARFUnit::GetAddressByteSize(m_unit)); in ExtractValue()
189 const DWARFUnit *u) { in GetFixedSize()
209 const DWARFUnit *unit) { in SkipValue()
242 *offset_ptr += DWARFUnit::GetAddressByteSize(unit); in SkipValue()
497 std::pair<DWARFUnit *, uint64_t>
514 return {const_cast<DWARFUnit *>(m_unit), value}; in ReferencedUnitAndOffset()
517 DWARFUnit *ref_cu = in ReferencedUnitAndOffset()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFUnit.cpp78 -> std::unique_ptr<DWARFUnit> { in addUnitsImpl()
107 std::unique_ptr<DWARFUnit> U; in addUnitsImpl()
143 DWARFUnit *DWARFUnitVector::addUnit(std::unique_ptr<DWARFUnit> Unit) { in addUnit()
145 [](const std::unique_ptr<DWARFUnit> &LHS, in addUnit()
146 const std::unique_ptr<DWARFUnit> &RHS) { in addUnit()
152 DWARFUnit *DWARFUnitVector::getUnitForOffset(uint64_t Offset) const { in getUnitForOffset()
156 [](uint64_t LHS, const std::unique_ptr<DWARFUnit> &RHS) { in getUnitForOffset()
164 DWARFUnit *
175 [](uint64_t LHS, const std::unique_ptr<DWARFUnit> &RHS) { in getUnitForIndexEntry()
194 DWARFUnit::DWARFUnit(DWARFContext &DC, const DWARFSection &Section, in DWARFUnit() function in DWARFUnit
[all …]
H A DDWARFAbbreviationDeclaration.cpp171 uint32_t AttrIndex, uint64_t DIEOffset, const DWARFUnit &U) const { in getAttributeOffsetFromIndex()
189 uint32_t AttrIndex, uint64_t Offset, const DWARFUnit &U) const { in getAttributeValueFromOffset()
209 const DWARFUnit &U) const { in getAttributeValue()
222 const DWARFUnit &U) const { in getByteSize()
234 const DWARFUnit &U) const { in getByteSize()
247 const DWARFUnit &U) const { in getFixedAttributesByteSize()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFUnit.h40 class DWARFUnit; variable
126 bool isCompileUnit(const std::unique_ptr<DWARFUnit> &U);
130 class DWARFUnitVector final : public SmallVector<std::unique_ptr<DWARFUnit>, 1> {
131 std::function<std::unique_ptr<DWARFUnit>(uint64_t, DWARFSectionKind,
138 using UnitVector = SmallVectorImpl<std::unique_ptr<DWARFUnit>>;
145 LLVM_ABI DWARFUnit *getUnitForOffset(uint64_t Offset) const;
146 LLVM_ABI DWARFUnit *getUnitForIndexEntry(const DWARFUnitIndex::Entry &E);
166 LLVM_ABI DWARFUnit *addUnit(std::unique_ptr<DWARFUnit> Unit);
215 class LLVM_ABI DWARFUnit {
233 DWARFUnit *SU;
[all …]
H A DDWARFAbbreviationDeclaration.h24 class DWARFUnit; variable
91 LLVM_ABI std::optional<int64_t> getByteSize(const DWARFUnit &U) const;
155 const DWARFUnit &U) const;
166 const DWARFUnit &U) const;
177 const DWARFUnit &U) const;
187 getFixedAttributesByteSize(const DWARFUnit &U) const;
212 LLVM_ABI size_t getByteSize(const DWARFUnit &U) const;
H A DDWARFVerifier.h28 class DWARFUnit; variable
187 unsigned verifyUnitContents(DWARFUnit &Unit,
259 llvm::function_ref<DWARFUnit *(uint64_t)> GetUnitForDieOffset);
302 const DenseMap<uint64_t, DWARFUnit *> &CUOffsetsToDUMap);
333 bool verifyExpression(const DWARFExpression &E, DWARFUnit *U);
342 bool verifyExpressionOp(const DWARFExpression::Operation &Op, DWARFUnit *U);
H A DDWARFExpressionPrinter.h25 class DWARFUnit; variable
34 DIDumpOptions DumpOpts, DWARFUnit *U,
60 LLVM_ABI bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
H A DDWARFCompileUnit.h23 class LLVM_ABI DWARFCompileUnit : public DWARFUnit {
31 : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS, in DWARFCompileUnit()
39 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()
H A DDWARFContext.h83 getLineTableForUnit(DWARFUnit *U,
85 virtual void clearLineTableForUnit(DWARFUnit *U) = 0;
258 DWARFUnit *getUnitAtIndex(unsigned index) { in getUnitAtIndex()
263 DWARFUnit *getDWOUnitAtIndex(unsigned index) { in getDWOUnitAtIndex()
271 DWARFUnit *getUnitForOffset(uint64_t Offset);
347 const DWARFDebugLine::LineTable *getLineTableForUnit(DWARFUnit *U);
352 getLineTableForUnit(DWARFUnit *U,
357 void clearLineTableForUnit(DWARFUnit *U);
H A DDWARFFormValue.h24 class DWARFUnit; variable
62 const DWARFUnit *U = nullptr; /// Remember the DWARFUnit at extract time.
76 createFromUnit(dwarf::Form F, const DWARFUnit *Unit, uint64_t *OffsetPtr);
79 const DWARFUnit *U);
85 const DWARFUnit *getUnit() const { return U; } in getUnit()
105 const DWARFUnit *Unit = nullptr);
108 dwarf::FormParams FormParams, const DWARFUnit *U) { in extractValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFLinkerBase.h23 class DWARFUnit; variable
85 using CompileUnitHandlerTy = function_ref<void(const DWARFUnit &Unit)>;
107 CompileUnitHandlerTy OnCUDieLoaded = [](const DWARFUnit &) {}) = 0;

1234