10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H
20 explicit DIASession(CComPtr<IDiaSession> DiaSession);
23 std::unique_ptr<IPDBSession> &Session);
25 std::unique_ptr<IPDBSession> &Session);
30 std::unique_ptr<PDBSymbol>
getSymbolById(uint32_t SymbolId)
const override;
32 std::unique_ptr<PDBSymbol>
35 std::unique_ptr<IPDBEnumLineNumbers>
41 std::unique_ptr<IPDBSourceFile>
47 CComPtr<IDiaSession> Session;
std::unique_ptr< IPDBEnumSourceFiles > getAllSourceFiles() const override
std::unique_ptr< PDBSymbol > getSymbolById(uint32_t SymbolId) const override
std::unique_ptr< PDBSymbol > findSymbolByAddress(uint64_t Address, PDB_SymType Type) const override
std::unique_ptr< IPDBSourceFile > getSourceFileById(uint32_t FileId) const override
The instances of the Type class are immutable: once they are created, they are never changed...
void setLoadAddress(uint64_t Address) override
std::unique_ptr< IPDBEnumLineNumbers > findLineNumbersByAddress(uint64_t Address, uint32_t Length) const override
std::unique_ptr< IPDBEnumSourceFiles > getSourceFilesForCompiland(const PDBSymbolCompiland &Compiland) const override
static PDB_ErrorCode createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)
std::unique_ptr< IPDBEnumDataStreams > getDebugStreams() const override
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
PDB_SymType
These values correspond to the SymTagEnum enumeration, and are documented here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx.
uint64_t getLoadAddress() const override
std::unique_ptr< PDBSymbolExe > getGlobalScope() const override
DIASession(CComPtr< IDiaSession > DiaSession)
StringRef - Represent a constant reference to a string, i.e.
static PDB_ErrorCode createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)