Home
last modified time | relevance | path

Searched full:modi (Results 1 – 25 of 53) sorted by relevance

123

/llvm-project/llvm/test/tools/llvm-pdbutil/
H A Dmodi.test3 ; -modi is specified more than once: command line error
4 ; RUN: not llvm-pdbutil dump --symbols -modi=1 -modi=1 %p/Inputs/Stripped.pdb > %t 2>&1
6 ; TWICE: argument '-modi' specified more than once.
8 ; -modi is not specified: process all modules
17 ; -modi=0: process module with id=0
18 ; RUN: llvm-pdbutil dump --symbols -modi=0 %p/Inputs/Stripped.pdb > %t
24 ; -modi=1: process module with id=1
25 ; RUN: llvm-pdbutil dump --symbols -modi=1 %p/Inputs/Stripped.pdb > %t
31 ; -modi=2: process module with id=2
32 ; RUN: llvm-pdbutil dump --symbols -modi=2 %p/Inputs/Stripped.pdb > %t
H A Dsymbol-offset.test3 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=80 %t.pdb \
6 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=4 --show-parents \
9 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=80 --show-parents \
12 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=308 --show-parents \
15 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=260 --show-parents \
19 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=260 --show-parents \
23 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=416 --show-children\
26 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=292 --show-children\
29 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=4 --show-children \
33 ; RUN: llvm-pdbutil dump --symbols --modi=0 --symbol-offset=292 --show-children\
/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DDbiModuleList.cpp24 const DbiModuleList &Modules, uint32_t Modi, uint16_t Filei) in DbiModuleSourceFilesIterator()
25 : Modules(&Modules), Modi(Modi), Filei(Filei) { in DbiModuleSourceFilesIterator() argument
50 assert(Modi == R.Modi); in operator ==()
87 uint32_t RealModi = R.Modi; in operator -()
100 assert(Filei <= Modules->getSourceFileCount(Modi)); in operator +=()
123 uint32_t Off = Modules->ModuleInitialFileIndex[Modi] + Filei; in setValue()
127 Filei = Modules->getSourceFileCount(Modi); in setValue()
137 assert(Modi < in isEnd()
[all...]
H A DSymbolCache.cpp302 uint16_t Modi, in getOrCreateInlineSymbol() argument
304 auto Iter = SymTabOffsetToSymbolId.find({Modi, RecordOffset}); in getOrCreateInlineSymbol()
309 SymTabOffsetToSymbolId.insert({{Modi, RecordOffset}, Id}); in getOrCreateInlineSymbol()
322 uint16_t Modi; in findSymbolBySectOffset() local
323 if (!Session.moduleIndexForSectOffset(Sect, Offset, Modi)) in findSymbolBySectOffset()
325 return getOrCreateCompiland(Modi); in findSymbolBySectOffset()
348 uint16_t Modi; in findFunctionSymbolBySectOffset() local
349 if (!Session.moduleIndexForSectOffset(Sect, Offset, Modi)) in findFunctionSymbolBySectOffset()
353 Session.getModuleDebugStream(Modi); in findFunctionSymbolBySectOffset()
452 SymbolCache::findLineTable(uint16_t Modi) cons in findLineTable()
534 uint16_t Modi; findLineNumbersByVA() local
[all...]
H A DInputFile.cpp50 auto Modi = Modules.getModuleDescriptor(Index); in getModuleDebugStream() local
52 ModuleName = Modi.getModuleName(); in getModuleDebugStream()
54 uint16_t ModiStream = Modi.getModuleStreamIndex(); in getModuleDebugStream()
61 ModuleDebugStreamRef ModS(Modi, std::move(ModStreamData)); in getModuleDebugStream()
76 auto Modi = Modules.getModuleDescriptor(Index); in getModuleDebugStream() local
78 uint16_t ModiStream = Modi.getModuleStreamIndex(); in getModuleDebugStream()
85 ModuleDebugStreamRef ModS(Modi, std::move(ModStreamData)); in getModuleDebugStream()
190 void SymbolGroup::updatePdbModi(uint32_t Modi) { initializeForPdb(Modi); } in updatePdbModi() argument
192 void SymbolGroup::initializeForPdb(uint32_t Modi) { in initializeForPdb() argument
206 auto MDS = getModuleDebugStream(File->pdb(), Name, Modi); in initializeForPdb()
H A DNativeFunctionSymbol.cpp98 uint16_t Modi; in findInlineFramesByVA() local
99 if (!Session.moduleIndexForVA(VA, Modi)) in findInlineFramesByVA()
102 Expected<ModuleDebugStreamRef> ModS = Session.getModuleDebugStream(Modi); in findInlineFramesByVA()
127 IS, getVirtualAddress(), Modi, Start.offset()); in findInlineFramesByVA()
H A DNativeInlineSiteSymbol.cpp189 uint16_t Modi; in findInlineeLinesByVA() local
190 if (!Session.moduleIndexForVA(VA, Modi)) in findInlineeLinesByVA()
193 Expected<ModuleDebugStreamRef> ModS = Session.getModuleDebugStream(Modi); in findInlineeLinesByVA()
230 SrcFileId, Modi); in findInlineeLinesByVA()
/llvm-project/llvm/test/DebugInfo/PDB/
H A Ddbi-bytes.test3 ; RUN: llvm-pdbutil bytes -modi %p/Inputs/empty.pdb | FileCheck --check-prefix=MODI %s
23 MODI: Module Infos
24 MODI-NEXT: ============================================================
25 MODI-NEXT: Module Infos (
26 MODI-NEXT: E040: 00000000 01000000 10000000 0A000000 20005060 00000000 347497D7 00000000 |....…
27 MODI-NEXT: E060: 00000C00 D0000000 00000000 58000000 01000000 D035E900 00000000 00000000 |....…
28 MODI-NEXT: E080: 643A5C73 72635C6C 6C766D5C 74657374 5C446562 7567496E 666F5C50 44425C49 |d:\s…
29 MODI-NEXT: E0A0: 6E707574 735C656D 7074792E 6F626A00 643A5C73 72635C6C 6C766D5C 74657374 |nput…
30 MODI-NEXT: E0C0: 5C446562 7567496E 666F5C50 44425C49 6E707574 735C656D 7074792E 6F626A00 |\Deb…
31 MODI-NEXT: E0E0: 00000000 01000000 00000000 0A000000 20000060 01000000 00000000 00000000 |....…
[all …]
H A Dpdb-yaml-symbols.test29 YAML: Modi:
78 YAML: Modi:
/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbSymUid.cpp23 uint64_t modi : 16; member
29 uint64_t modi : 16; member
71 repr.modi = cid.modi; in PdbSymUid()
79 repr.modi = csid.modi; in PdbSymUid()
121 result.modi = repr.modi; in asCompiland()
129 result.modi = repr.modi; in asCompilandSym()
H A DCompileUnitIndex.cpp133 CompilandIndexItem &CompileUnitIndex::GetOrCreateCompiland(uint16_t modi) { in GetOrCreateCompiland() argument
134 auto result = m_comp_units.try_emplace(modi, nullptr); in GetOrCreateCompiland()
141 llvm::pdb::DbiModuleDescriptor descriptor = modules.getModuleDescriptor(modi); in GetOrCreateCompiland()
151 …cci = std::make_unique<CompilandIndexItem>(PdbCompilandId{ modi }, debug_stream, std::move(descrip… in GetOrCreateCompiland()
161 PdbCompilandId{modi}, std::move(debug_stream), std::move(descriptor)); in GetOrCreateCompiland()
183 uint32_t file_count = modules.getSourceFileCount(modi); in GetOrCreateCompiland()
186 for (llvm::StringRef file : modules.source_files(modi)) { in GetOrCreateCompiland()
198 const CompilandIndexItem *CompileUnitIndex::GetCompiland(uint16_t modi) const { in GetCompiland()
199 auto iter = m_comp_units.find(modi); in GetCompiland()
205 CompilandIndexItem *CompileUnitIndex::GetCompiland(uint16_t modi) { in GetCompiland() argument
[all …]
H A DPdbIndex.cpp119 uint16_t modi = cci.m_id.modi; in BuildAddrToSymbolMap() local
130 PdbCompilandSymId cu_sym_id(modi, iter.offset()); in BuildAddrToSymbolMap()
141 std::optional<uint16_t> modi = GetModuleIndexForVa(va); in FindSymbolsByVa() local
142 if (!modi) in FindSymbolsByVa()
145 CompilandIndexItem &cci = compilands().GetOrCreateCompiland(*modi); in FindSymbolsByVa()
188 const CompilandIndexItem *cci = compilands().GetCompiland(cu_sym.modi); in ReadSymbolRecord()
H A DPdbSymUid.h41 uint16_t modi; member
46 PdbCompilandSymId(uint16_t modi, uint32_t offset) in PdbCompilandSymId()
47 : modi(modi), offset(offset) {} in PdbCompilandSymId()
49 uint16_t modi = 0; member
H A DSymbolFileNativePDB.cpp383 CompilandIndexItem *cii = m_index->compilands().GetCompiland(block_id.modi); in CreateBlock()
411 PdbCompilandSymId parent_id(block_id.modi, block.Parent); in CreateBlock()
425 "S_BLOCK32 at modi: {0:d} offset: {1:d}: adding range " in CreateBlock()
430 block_id.modi, block_id.offset, block_base, in CreateBlock()
474 m_index->compilands().GetCompiland(func_id.modi);
537 SetCompileUnitAtIndex(cci.m_id.modi, cu_sp); in CreateCompileUnit()
886 std::optional<uint16_t> modi = m_index->GetModuleIndexForVa(addr); in CreateGlobalVariable()
887 // Some globals has modi points to the linker module, ignore them. in CreateGlobalVariable()
888 if (!modi || modi > in CreateGlobalVariable()
890 std::optional<uint16_t> modi = m_index->GetModuleIndexForVa(addr); CreateGlobalVariable() local
1052 uint16_t modi = uid.asCompiland().modi; ParseFunctions() local
1088 std::optional<uint16_t> modi = m_index->GetModuleIndexForVa(file_addr); ResolveSymbolContext() local
1187 uint16_t modi = cu_id.asCompiland().modi; ParseLineTable() local
[all...]
H A DCompileUnitIndex.h97 CompilandIndexItem &GetOrCreateCompiland(uint16_t modi);
99 const CompilandIndexItem *GetCompiland(uint16_t modi) const;
101 CompilandIndexItem *GetCompiland(uint16_t modi);
H A DPdbAstBuilder.cpp405 PdbCompilandSymId cu_sym_id{ref.modi(), ref.SymOffset}; in GetParentDeclContext()
928 index.compilands().GetCompiland(inlinesite_id.modi); in GetOrCreateInlinedFunctionDecl()
1074 CompilandIndexItem *cii = index.compilands().GetCompiland(func_id.modi); in CreateFunctionParameters()
1123 PdbCompilandSymId param_uid(func_id.modi, record_offset); in CreateFunctionParameters()
1301 for (uint16_t modi = 0; modi < module_count; ++modi) { in ParseAllFunctionsAndNonLocalVars() local
1302 CompilandIndexItem &cii = index.compilands().GetOrCreateCompiland(modi); in ParseAllFunctionsAndNonLocalVars()
1306 PdbCompilandSymId sym_id{modi, iter.offset()}; in ParseAllFunctionsAndNonLocalVars()
1318 GetOrCreateVariableDecl(PdbCompilandSymId(modi, in ParseAllFunctionsAndNonLocalVars()
[all...]
/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DInputFile.h118 void initializeForPdb(uint32_t Modi);
119 void updatePdbModi(uint32_t Modi);
166 const SymbolGroup &SG, uint32_t Modi, in iterateOneModule() argument
170 fmt_align(Modi, AlignStyle::Right, HeaderScope.LabelWidth), SG.name()); in iterateOneModule()
173 return Callback(Modi, SG); in iterateOneModule()
183 uint32_t Modi = *Filters.DumpModi; in iterateSymbolGroups() local
184 SymbolGroup SG(&Input, Modi); in iterateSymbolGroups()
185 return iterateOneModule(Input, withLabelWidth(HeaderScope, NumDigits(Modi)), in iterateSymbolGroups()
186 SG, Modi, Callback); in iterateSymbolGroups()
210 File, HeaderScope, [&](uint32_t Modi, const SymbolGroup &SG) -> Error { in iterateModuleSubsections()
[all …]
H A DDbiModuleList.h37 DbiModuleSourceFilesIterator(const DbiModuleList &Modules, uint32_t Modi,
63 uint32_t Modi{0};
76 uint16_t getSourceFileCount(uint32_t Modi) const;
79 source_files(uint32_t Modi) const;
81 DbiModuleDescriptor getModuleDescriptor(uint32_t Modi) const;
/llvm-project/llvm/docs/PDB/
H A DModiStream.rst13 The Module Info Stream (henceforth referred to as the Modi stream) contains
16 is one modi stream for each module, and the mapping between modi stream index
17 and module is contained in the :doc:`DBI Stream <DbiStream>`. The modi stream
27 A modi stream is laid out as follows:
/llvm-project/llvm/tools/llvm-pdbutil/
H A DStreamUtil.cpp41 uint32_t StreamIndex, uint32_t Modi) { in createModuleStream() argument
45 Result.ModuleIndex = Modi; in createModuleStream()
56 uint32_t Modi) { in moduleStream() argument
57 return StreamInfo::createModuleStream(Label, StreamIdx, Modi); in moduleStream()
61 uint32_t Modi; member
82 IMD.Modi = I; in discoverStreamPurposes()
174 ModIter->second.Modi); in discoverStreamPurposes()
H A DBytesOutputStyle.cpp333 auto Modi = Modules.getModuleDescriptor(I); in iterateOneModule() local
336 Modi.getModuleName()); in iterateOneModule()
338 uint16_t ModiStream = Modi.getModuleStreamIndex(); in iterateOneModule()
344 ModuleDebugStreamRef ModStream(Modi, std::move(ModStreamData)); in iterateOneModule()
386 [this](uint32_t Modi, const ModuleDebugStreamRef &Stream, in dumpModuleSyms()
399 [this](uint32_t Modi, const ModuleDebugStreamRef &Stream, in dumpModuleC11() argument
414 [this](uint32_t Modi, const ModuleDebugStreamRef &Stream, in dumpModuleC13() argument
H A DDumpOutputStyle.cpp486 [&](uint32_t Modi, const SymbolGroup &Strings) -> Error { in dumpModules() argument
487 auto Desc = Modules.getModuleDescriptor(Modi); in dumpModules()
532 [this](uint32_t Modi, const SymbolGroup &Strings) -> Error { in dumpModuleFiles() argument
539 for (const auto &F : Modules.source_files(Modi)) { in dumpModuleFiles()
559 File, Scope, [&](uint32_t Modi, const SymbolGroup &SG) -> Error { in dumpSymbolStats() argument
569 DbiModuleDescriptor Desc = Modules.getModuleDescriptor(Modi); in dumpSymbolStats()
575 fmt_align(Modi, AlignStyle::Right, NumDigits(ModCount)), in dumpSymbolStats()
851 &LastNameIndex](uint32_t Modi, const SymbolGroup &Strings, in dumpLines()
857 if (LastModi != Modi || LastNameIndex != Block.NameIndex) { in dumpLines()
858 LastModi = Modi; in dumpLines()
[all …]
/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.h210 LVScope *getScopeForModule(uint32_t Modi) {
211 return Modi >= Modules.size() ? nullptr : Modules[Modi];
/llvm-project/lldb/test/Shell/ObjectFile/PDB/
H A Dobject.test89 Modi:
160 Modi:
/llvm-project/llvm/test/DebugInfo/PDB/Inputs/
H A Dunknown-symbol.yaml5 Modi:

123