Lines Matching refs:cu
44 const DWARFUnit *cu, in Extract() argument
59 const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu); in Extract()
61 cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError( in Extract()
74 if (DWARFFormValue::SkipValue(attribute.Form, data, offset_ptr, cu)) in Extract()
77 cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError( in Extract()
122 DWARFUnit *cu, const char *&name, const char *&mangled, in GetDIENamesAndRanges() argument
132 SymbolFileDWARF &dwarf = cu->GetSymbolFileDWARF(); in GetDIENamesAndRanges()
135 if (const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu)) { in GetDIENamesAndRanges()
136 const DWARFDataExtractor &data = cu->GetData(); in GetDIENamesAndRanges()
145 DWARFFormValue form_value(cu); in GetDIENamesAndRanges()
179 ranges = GetRangesOrReportError(*cu, *this, form_value); in GetDIENamesAndRanges()
241 cu); in GetDIENamesAndRanges()
243 DataExtractor data = cu->GetLocationData(); in GetDIENamesAndRanges()
248 assert(lo_pc >= cu->GetBaseAddress()); in GetDIENamesAndRanges()
249 DWARFExpression::ParseDWARFLocationList(cu, data, frame_base); in GetDIENamesAndRanges()
276 assert(lowest_range_pc >= cu->GetBaseAddress()); in GetDIENamesAndRanges()
296 void DWARFDebugInfoEntry::GetAttributes(DWARFUnit *cu, in GetAttributes() argument
300 const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu); in GetAttributes()
306 const DWARFDataExtractor &data = cu->GetData(); in GetAttributes()
310 DWARFFormValue form_value(cu); in GetAttributes()
343 DWARFFormValue::GetFixedSize(form, cu); in GetAttributes()
347 DWARFFormValue::SkipValue(form, data, &offset, cu); in GetAttributes()
359 const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &form_value, in GetAttributeValue() argument
362 if (const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu)) { in GetAttributeValue()
366 const DWARFDataExtractor &data = cu->GetData(); in GetAttributeValue()
372 &offset, cu); in GetAttributeValue()
375 form_value.SetUnit(cu); in GetAttributeValue()
386 if (GetAttributeValue(cu, DW_AT_specification, form_value)) { in GetAttributeValue()
396 if (GetAttributeValue(cu, DW_AT_abstract_origin, form_value)) { in GetAttributeValue()
416 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, in GetAttributeValueAsString() argument
419 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsString()
429 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsUnsigned() argument
432 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsUnsigned()
440 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsOptionalUnsigned() argument
443 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsOptionalUnsigned()
454 const DWARFUnit *cu, const dw_attr_t attr, in GetAttributeValueAsReference() argument
457 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsReference()
464 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsAddress() argument
467 if (GetAttributeValue(cu, attr, form_value, nullptr, in GetAttributeValueAsAddress()
480 const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, in GetAttributeHighPC() argument
483 if (GetAttributeValue(cu, DW_AT_high_pc, form_value, nullptr, in GetAttributeHighPC()
503 const DWARFUnit *cu, dw_addr_t &lo_pc, dw_addr_t &hi_pc, in GetAttributeAddressRange() argument
505 lo_pc = GetAttributeValueAsAddress(cu, DW_AT_low_pc, fail_value, in GetAttributeAddressRange()
508 hi_pc = GetAttributeHighPC(cu, lo_pc, fail_value, in GetAttributeAddressRange()
519 DWARFUnit *cu, bool check_hi_lo_pc, in GetAttributeAddressRanges() argument
523 if (GetAttributeValue(cu, DW_AT_ranges, form_value)) in GetAttributeAddressRanges()
524 return GetRangesOrReportError(*cu, *this, form_value); in GetAttributeAddressRanges()
530 if (GetAttributeAddressRange(cu, lo_pc, hi_pc, LLDB_INVALID_ADDRESS, in GetAttributeAddressRanges()
543 const char *DWARFDebugInfoEntry::GetName(const DWARFUnit *cu) const { in GetName()
544 return GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetName()
552 DWARFDebugInfoEntry::GetMangledName(const DWARFUnit *cu, in GetMangledName() argument
556 name = GetAttributeValueAsString(cu, DW_AT_MIPS_linkage_name, nullptr, true); in GetMangledName()
560 name = GetAttributeValueAsString(cu, DW_AT_linkage_name, nullptr, true); in GetMangledName()
567 name = GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetMangledName()
575 const char *DWARFDebugInfoEntry::GetPubname(const DWARFUnit *cu) const { in GetPubname()
577 if (!cu) in GetPubname()
580 name = GetAttributeValueAsString(cu, DW_AT_MIPS_linkage_name, nullptr, true); in GetPubname()
584 name = GetAttributeValueAsString(cu, DW_AT_linkage_name, nullptr, true); in GetPubname()
588 name = GetAttributeValueAsString(cu, DW_AT_name, nullptr, true); in GetPubname()
596 DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const { in BuildFunctionAddressRangeTable() argument
600 GetAttributeAddressRanges(cu, /*check_hi_lo_pc=*/true); in BuildFunctionAddressRangeTable()
609 child->BuildFunctionAddressRangeTable(cu, debug_aranges); in BuildFunctionAddressRangeTable()
617 DWARFUnit *cu) { in GetDWARFDeclContextStatic() argument
623 dwarf_decl_ctx.AppendDeclContext(tag, die->GetName(cu)); in GetDWARFDeclContextStatic()
624 DWARFDIE parent_decl_ctx_die = die->GetParentDeclContextDIE(cu); in GetDWARFDeclContextStatic()
631 cu = parent_decl_ctx_die.GetCU(); in GetDWARFDeclContextStatic()
635 DWARFDeclContext DWARFDebugInfoEntry::GetDWARFDeclContext(DWARFUnit *cu) const { in GetDWARFDeclContext()
636 return GetDWARFDeclContextStatic(this, cu); in GetDWARFDeclContext()
640 DWARFDebugInfoEntry::GetParentDeclContextDIE(DWARFUnit *cu) const { in GetParentDeclContextDIE()
641 DWARFAttributes attributes = GetAttributes(cu, Recurse::yes); in GetParentDeclContextDIE()
642 return GetParentDeclContextDIE(cu, attributes); in GetParentDeclContextDIE()
647 DWARFUnit *cu, const DWARFAttributes &attributes) const { in GetParentDeclContextDIE() argument
648 DWARFDIE die(cu, const_cast<DWARFDebugInfoEntry *>(this)); in GetParentDeclContextDIE()
693 DWARFDebugInfoEntry::GetAbbreviationDeclarationPtr(const DWARFUnit *cu) const { in GetAbbreviationDeclarationPtr()
694 if (!cu) in GetAbbreviationDeclarationPtr()
698 cu->GetAbbreviations(); in GetAbbreviationDeclarationPtr()