Lines Matching refs:DICtx

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