9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVESESSION_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESESSION_H
27class ModuleDebugStreamRef;
29class PDBSymbolCompiland;
31template <
typename ChildType>
class IPDBEnumChildren;
34 struct PdbSearchOptions {
41 std::unique_ptr<BumpPtrAllocator>
Allocator);
44 static Error createFromPdb(std::unique_ptr<MemoryBuffer> MB,
45 std::unique_ptr<IPDBSession> &Session);
47 std::unique_ptr<IPDBSession> &Session);
49 std::unique_ptr<IPDBSession> &Session);
52 uint64_t getLoadAddress()
const override;
53 bool setLoadAddress(
uint64_t Address)
override;
54 std::unique_ptr<PDBSymbolExe> getGlobalScope()
override;
55 std::unique_ptr<PDBSymbol> getSymbolById(
SymIndexId SymbolId)
const override;
62 std::unique_ptr<PDBSymbol> findSymbolByAddress(
uint64_t Address,
64 std::unique_ptr<PDBSymbol> findSymbolByRVA(
uint32_t RVA,
66 std::unique_ptr<PDBSymbol> findSymbolBySectOffset(
uint32_t Sect,
70 std::unique_ptr<IPDBEnumLineNumbers>
73 std::unique_ptr<IPDBEnumLineNumbers>
75 std::unique_ptr<IPDBEnumLineNumbers>
77 std::unique_ptr<IPDBEnumLineNumbers>
81 std::unique_ptr<IPDBEnumSourceFiles>
84 std::unique_ptr<IPDBSourceFile>
88 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
91 std::unique_ptr<PDBSymbolCompiland>
94 std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles()
const override;
95 std::unique_ptr<IPDBEnumSourceFiles> getSourceFilesForCompiland(
97 std::unique_ptr<IPDBSourceFile>
98 getSourceFileById(
uint32_t FileId)
const override;
100 std::unique_ptr<IPDBEnumDataStreams> getDebugStreams()
const override;
102 std::unique_ptr<IPDBEnumTables> getEnumTables()
const override;
104 std::unique_ptr<IPDBEnumInjectedSources> getInjectedSources()
const override;
106 std::unique_ptr<IPDBEnumSectionContribs> getSectionContribs()
const override;
108 std::unique_ptr<IPDBEnumFrameData> getFrameData()
const override;
124 void initializeExeSymbol();
125 void parseSectionContribs();
127 std::unique_ptr<PDBFile> Pdb;
128 std::unique_ptr<BumpPtrAllocator>
Allocator;
137 IMap::Allocator IMapAllocator;
138 IMap AddrToModuleIndex;
This file defines the BumpPtrAllocator interface.
This file implements a coalescing interval map for small objects.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
The instances of the Type class are immutable: once they are created, they are never changed.
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
IPDBSourceFile defines an interface used to represent source files whose information are stored in th...
SymbolCache & getSymbolCache()
const SymbolCache & getSymbolCache() const
~NativeSession() override
const PDBFile & getPDBFile() const
PDB_NameSearchFlags
Defines flags used for enumerating child symbols.
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn....
LLVM_ABI Expected< ModuleDebugStreamRef > getModuleDebugStream(PDBFile &File, StringRef &ModuleName, uint32_t Index)
This is an optimization pass for GlobalISel generic memory operations.