Lines Matching defs:DICtx

393 using HandlerFn = std::function<bool(ObjectFile &, DWARFContext &DICtx,
454 static void getDies(DWARFContext &DICtx, const AppleAcceleratorTable &Accel,
458 if (DWARFDie Die = DICtx.getDIEForOffset(*Off))
465 DWARFContext &DICtx) {
471 DWARFCompileUnit *CU = DICtx.getCompileUnitForOffset(*CUOff);
477 CU = DICtx.getDWOCompileUnitForHash(*DWOId);
485 static void getDies(DWARFContext &DICtx, const DWARFDebugNames &Accel,
488 if (DWARFDie Die = toDie(Entry, DICtx))
495 ArrayRef<std::string> Names, DWARFContext &DICtx, raw_ostream &OS,
499 getDies(DICtx, DICtx.getAppleNames(), Name, Dies);
500 getDies(DICtx, DICtx.getAppleTypes(), Name, Dies);
501 getDies(DICtx, DICtx.getAppleNamespaces(), Name, Dies);
502 getDies(DICtx, DICtx.getDebugNames(), Name, Dies);
507 DIDumpOptions DumpOpts = getDumpOpts(DICtx);
515 DWARFContext &DICtx, raw_ostream &OS,
523 DWARFDie Die = DICtx.getDIEForOffset(*Off);
530 PushDIEs(DICtx.getAppleNames());
531 PushDIEs(DICtx.getAppleNamespaces());
532 PushDIEs(DICtx.getAppleTypes());
534 DIDumpOptions DumpOpts = getDumpOpts(DICtx);
550 static bool lookup(ObjectFile &Obj, DWARFContext &DICtx, uint64_t Address,
552 auto DIEsForAddr = DICtx.getDIEsForAddress(Lookup, DumpNonSkeleton);
557 DIDumpOptions DumpOpts = getDumpOpts(DICtx);
568 if (DILineInfo LineInfo = DICtx.getLineInfoForAddress(
594 static bool collectObjectSources(ObjectFile &Obj, DWARFContext &DICtx,
600 for (const auto &CU : DICtx.compile_units()) {
605 const DWARFDebugLine::LineTable *LT = DICtx.getLineTableForUnit(CU.get());
630 DWARFDataExtractor LineData(DICtx.getDWARFObj(),
631 DICtx.getDWARFObj().getLineSection(),
632 DICtx.isLittleEndian(), 0);
633 DWARFDebugLine::SectionParser Parser(LineData, DICtx, DICtx.normal_units());
672 static bool dumpObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
697 return lookup(Obj, DICtx, Lookup, OS);
705 filterByName(Names, DICtx.normal_units(), OS, GetRegName);
706 filterByName(Names, DICtx.dwo_units(), OS, GetRegName);
712 filterByAccelName(Find, DICtx, OS, GetRegName);
718 findAllApple(DICtx, OS, GetRegName);
723 auto DumpOpts = getDumpOpts(DICtx);
725 DICtx.dump(OS, DumpOpts, DumpOffsets);
729 static bool verifyObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
736 bool Result = DICtx.verify(stream, getDumpOpts(DICtx));
776 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(
779 DICtx->setParseCUTUIndexManually(ManuallyGenerateUnitIndex);
780 if (!HandleObj(*Obj, *DICtx, Filename, OS))
790 std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(
793 if (!HandleObj(Obj, *DICtx, ObjName, OS))