LLVM  8.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::pdb::NativeSession Class Reference

#include "llvm/DebugInfo/PDB/Native/NativeSession.h"

Inheritance diagram for llvm::pdb::NativeSession:
Inheritance graph
[legend]
Collaboration diagram for llvm::pdb::NativeSession:
Collaboration graph
[legend]

Public Member Functions

 NativeSession (std::unique_ptr< PDBFile > PdbFile, std::unique_ptr< BumpPtrAllocator > Allocator)
 
 ~NativeSession () override
 
uint64_t getLoadAddress () const override
 
bool setLoadAddress (uint64_t Address) override
 
std::unique_ptr< PDBSymbolExegetGlobalScope () override
 
std::unique_ptr< PDBSymbolgetSymbolById (SymIndexId SymbolId) const override
 
bool addressForVA (uint64_t VA, uint32_t &Section, uint32_t &Offset) const override
 
bool addressForRVA (uint32_t RVA, uint32_t &Section, uint32_t &Offset) const override
 
std::unique_ptr< PDBSymbolfindSymbolByAddress (uint64_t Address, PDB_SymType Type) const override
 
std::unique_ptr< PDBSymbolfindSymbolByRVA (uint32_t RVA, PDB_SymType Type) const override
 
std::unique_ptr< PDBSymbolfindSymbolBySectOffset (uint32_t Sect, uint32_t Offset, PDB_SymType Type) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbers (const PDBSymbolCompiland &Compiland, const IPDBSourceFile &File) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbersByAddress (uint64_t Address, uint32_t Length) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbersByRVA (uint32_t RVA, uint32_t Length) const override
 
std::unique_ptr< IPDBEnumLineNumbersfindLineNumbersBySectOffset (uint32_t Section, uint32_t Offset, uint32_t Length) const override
 
std::unique_ptr< IPDBEnumSourceFilesfindSourceFiles (const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBSourceFilefindOneSourceFile (const PDBSymbolCompiland *Compiland, llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > findCompilandsForSourceFile (llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< PDBSymbolCompilandfindOneCompilandForSourceFile (llvm::StringRef Pattern, PDB_NameSearchFlags Flags) const override
 
std::unique_ptr< IPDBEnumSourceFilesgetAllSourceFiles () const override
 
std::unique_ptr< IPDBEnumSourceFilesgetSourceFilesForCompiland (const PDBSymbolCompiland &Compiland) const override
 
std::unique_ptr< IPDBSourceFilegetSourceFileById (uint32_t FileId) const override
 
std::unique_ptr< IPDBEnumDataStreamsgetDebugStreams () const override
 
std::unique_ptr< IPDBEnumTablesgetEnumTables () const override
 
std::unique_ptr< IPDBEnumInjectedSourcesgetInjectedSources () const override
 
std::unique_ptr< IPDBEnumSectionContribsgetSectionContribs () const override
 
std::unique_ptr< IPDBEnumFrameDatagetFrameData () const override
 
PDBFilegetPDBFile ()
 
const PDBFilegetPDBFile () const
 
NativeExeSymbolgetNativeGlobalScope () const
 
SymbolCachegetSymbolCache ()
 
const SymbolCachegetSymbolCache () const
 
- Public Member Functions inherited from llvm::pdb::IPDBSession
virtual ~IPDBSession ()
 
template<typename T >
std::unique_ptr< TgetConcreteSymbolById (SymIndexId SymbolId) const
 

Static Public Member Functions

static Error createFromPdb (std::unique_ptr< MemoryBuffer > MB, std::unique_ptr< IPDBSession > &Session)
 
static Error createFromExe (StringRef Path, std::unique_ptr< IPDBSession > &Session)
 

Detailed Description

Definition at line 29 of file NativeSession.h.

Constructor & Destructor Documentation

◆ NativeSession()

NativeSession::NativeSession ( std::unique_ptr< PDBFile PdbFile,
std::unique_ptr< BumpPtrAllocator Allocator 
)

Definition at line 52 of file NativeSession.cpp.

References ~NativeSession().

◆ ~NativeSession()

NativeSession::~NativeSession ( )
overridedefault

Referenced by NativeSession().

Member Function Documentation

◆ addressForRVA()

bool NativeSession::addressForRVA ( uint32_t  RVA,
uint32_t Section,
uint32_t Offset 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 101 of file NativeSession.cpp.

◆ addressForVA()

bool NativeSession::addressForVA ( uint64_t  VA,
uint32_t Section,
uint32_t Offset 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 96 of file NativeSession.cpp.

◆ createFromExe()

Error NativeSession::createFromExe ( StringRef  Path,
std::unique_ptr< IPDBSession > &  Session 
)
static

Definition at line 78 of file NativeSession.cpp.

References llvm::pdb::feature_unsupported.

Referenced by llvm::pdb::loadDataForEXE().

◆ createFromPdb()

Error NativeSession::createFromPdb ( std::unique_ptr< MemoryBuffer MB,
std::unique_ptr< IPDBSession > &  Session 
)
static

◆ findCompilandsForSourceFile()

std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > NativeSession::findCompilandsForSourceFile ( llvm::StringRef  Pattern,
PDB_NameSearchFlags  Flags 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 160 of file NativeSession.cpp.

◆ findLineNumbers()

std::unique_ptr< IPDBEnumLineNumbers > NativeSession::findLineNumbers ( const PDBSymbolCompiland Compiland,
const IPDBSourceFile File 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 123 of file NativeSession.cpp.

◆ findLineNumbersByAddress()

std::unique_ptr< IPDBEnumLineNumbers > NativeSession::findLineNumbersByAddress ( uint64_t  Address,
uint32_t  Length 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 129 of file NativeSession.cpp.

◆ findLineNumbersByRVA()

std::unique_ptr< IPDBEnumLineNumbers > NativeSession::findLineNumbersByRVA ( uint32_t  RVA,
uint32_t  Length 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 135 of file NativeSession.cpp.

◆ findLineNumbersBySectOffset()

std::unique_ptr< IPDBEnumLineNumbers > NativeSession::findLineNumbersBySectOffset ( uint32_t  Section,
uint32_t  Offset,
uint32_t  Length 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 140 of file NativeSession.cpp.

◆ findOneCompilandForSourceFile()

std::unique_ptr< PDBSymbolCompiland > NativeSession::findOneCompilandForSourceFile ( llvm::StringRef  Pattern,
PDB_NameSearchFlags  Flags 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 166 of file NativeSession.cpp.

◆ findOneSourceFile()

std::unique_ptr< IPDBSourceFile > NativeSession::findOneSourceFile ( const PDBSymbolCompiland Compiland,
llvm::StringRef  Pattern,
PDB_NameSearchFlags  Flags 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 153 of file NativeSession.cpp.

◆ findSourceFiles()

std::unique_ptr< IPDBEnumSourceFiles > NativeSession::findSourceFiles ( const PDBSymbolCompiland Compiland,
llvm::StringRef  Pattern,
PDB_NameSearchFlags  Flags 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 146 of file NativeSession.cpp.

◆ findSymbolByAddress()

std::unique_ptr< PDBSymbol > NativeSession::findSymbolByAddress ( uint64_t  Address,
PDB_SymType  Type 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 107 of file NativeSession.cpp.

◆ findSymbolByRVA()

std::unique_ptr< PDBSymbol > NativeSession::findSymbolByRVA ( uint32_t  RVA,
PDB_SymType  Type 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 112 of file NativeSession.cpp.

◆ findSymbolBySectOffset()

std::unique_ptr< PDBSymbol > NativeSession::findSymbolBySectOffset ( uint32_t  Sect,
uint32_t  Offset,
PDB_SymType  Type 
) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 117 of file NativeSession.cpp.

◆ getAllSourceFiles()

std::unique_ptr< IPDBEnumSourceFiles > NativeSession::getAllSourceFiles ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 171 of file NativeSession.cpp.

◆ getDebugStreams()

std::unique_ptr< IPDBEnumDataStreams > NativeSession::getDebugStreams ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 185 of file NativeSession.cpp.

◆ getEnumTables()

std::unique_ptr< IPDBEnumTables > NativeSession::getEnumTables ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 189 of file NativeSession.cpp.

◆ getFrameData()

std::unique_ptr< IPDBEnumFrameData > NativeSession::getFrameData ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 204 of file NativeSession.cpp.

References llvm::pdb::SymbolCache::createSymbol().

◆ getGlobalScope()

std::unique_ptr< PDBSymbolExe > NativeSession::getGlobalScope ( )
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 87 of file NativeSession.cpp.

References getNativeGlobalScope().

◆ getInjectedSources()

std::unique_ptr< IPDBEnumInjectedSources > NativeSession::getInjectedSources ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 194 of file NativeSession.cpp.

◆ getLoadAddress()

uint64_t NativeSession::getLoadAddress ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 83 of file NativeSession.cpp.

◆ getNativeGlobalScope()

NativeExeSymbol & NativeSession::getNativeGlobalScope ( ) const

Definition at line 213 of file NativeSession.cpp.

References llvm::pdb::SymbolCache::getNativeSymbolById().

Referenced by getGlobalScope(), and getPDBFile().

◆ getPDBFile() [1/2]

PDBFile& llvm::pdb::NativeSession::getPDBFile ( )
inline

◆ getPDBFile() [2/2]

const PDBFile& llvm::pdb::NativeSession::getPDBFile ( ) const
inline

Definition at line 99 of file NativeSession.h.

References getNativeGlobalScope().

◆ getSectionContribs()

std::unique_ptr< IPDBEnumSectionContribs > NativeSession::getSectionContribs ( ) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 199 of file NativeSession.cpp.

◆ getSourceFileById()

std::unique_ptr< IPDBSourceFile > NativeSession::getSourceFileById ( uint32_t  FileId) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 181 of file NativeSession.cpp.

◆ getSourceFilesForCompiland()

std::unique_ptr< IPDBEnumSourceFiles > NativeSession::getSourceFilesForCompiland ( const PDBSymbolCompiland Compiland) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 175 of file NativeSession.cpp.

◆ getSymbolById()

std::unique_ptr< PDBSymbol > NativeSession::getSymbolById ( SymIndexId  SymbolId) const
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 92 of file NativeSession.cpp.

References llvm::pdb::SymbolCache::getSymbolById().

◆ getSymbolCache() [1/2]

SymbolCache& llvm::pdb::NativeSession::getSymbolCache ( )
inline

◆ getSymbolCache() [2/2]

const SymbolCache& llvm::pdb::NativeSession::getSymbolCache ( ) const
inline

Definition at line 103 of file NativeSession.h.

◆ setLoadAddress()

bool NativeSession::setLoadAddress ( uint64_t  Address)
overridevirtual

Implements llvm::pdb::IPDBSession.

Definition at line 85 of file NativeSession.cpp.


The documentation for this class was generated from the following files: