Lines Matching defs:NativeSession
1 //===- NativeSession.cpp - Native implementation of IPDBSession -*- C++ -*-===//
9 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
66 NativeSession::NativeSession(std::unique_ptr<PDBFile> PdbFile,
71 NativeSession::~NativeSession() = default;
73 Error NativeSession::createFromPdb(std::unique_ptr<MemoryBuffer> Buffer,
87 std::make_unique<NativeSession>(std::move(File), std::move(Allocator));
120 Error NativeSession::createFromPdbPath(StringRef PdbPath,
127 Session = std::make_unique<NativeSession>(std::move(PdbFile.get()),
151 Error NativeSession::createFromExe(StringRef ExePath,
167 Session = std::make_unique<NativeSession>(std::move(File.get()),
174 NativeSession::searchForPdb(const PdbSearchOptions &Opts) {
205 uint64_t NativeSession::getLoadAddress() const { return LoadAddress; }
207 bool NativeSession::setLoadAddress(uint64_t Address) {
212 std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() {
217 NativeSession::getSymbolById(SymIndexId SymbolId) const {
221 bool NativeSession::addressForVA(uint64_t VA, uint32_t &Section,
227 bool NativeSession::addressForRVA(uint32_t RVA, uint32_t &Section,
250 NativeSession::findSymbolByAddress(uint64_t Address, PDB_SymType Type) {
257 std::unique_ptr<PDBSymbol> NativeSession::findSymbolByRVA(uint32_t RVA,
266 NativeSession::findSymbolBySectOffset(uint32_t Sect, uint32_t Offset,
275 NativeSession::findLineNumbers(const PDBSymbolCompiland &Compiland,
281 NativeSession::findLineNumbersByAddress(uint64_t Address,
287 NativeSession::findLineNumbersByRVA(uint32_t RVA, uint32_t Length) const {
292 NativeSession::findLineNumbersBySectOffset(uint32_t Section, uint32_t Offset,
299 NativeSession::findSourceFiles(const PDBSymbolCompiland *Compiland,
306 NativeSession::findOneSourceFile(const PDBSymbolCompiland *Compiland,
313 NativeSession::findCompilandsForSourceFile(StringRef Pattern,
319 NativeSession::findOneCompilandForSourceFile(StringRef Pattern,
324 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getAllSourceFiles() const {
328 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getSourceFilesForCompiland(
334 NativeSession::getSourceFileById(uint32_t FileId) const {
338 std::unique_ptr<IPDBEnumDataStreams> NativeSession::getDebugStreams() const {
342 std::unique_ptr<IPDBEnumTables> NativeSession::getEnumTables() const {
347 NativeSession::getInjectedSources() const {
362 NativeSession::getSectionContribs() const {
367 NativeSession::getFrameData() const {
371 void NativeSession::initializeExeSymbol() {
376 NativeExeSymbol &NativeSession::getNativeGlobalScope() const {
377 const_cast<NativeSession &>(*this).initializeExeSymbol();
382 uint32_t NativeSession::getRVAFromSectOffset(uint32_t Section,
398 uint64_t NativeSession::getVAFromSectOffset(uint32_t Section,
403 bool NativeSession::moduleIndexForVA(uint64_t VA, uint16_t &ModuleIndex) const {
412 bool NativeSession::moduleIndexForSectOffset(uint32_t Sect, uint32_t Offset,
422 void NativeSession::parseSectionContribs() {
428 NativeSession &Session;
432 Visitor(NativeSession &Session, IMap &AddrMap)
454 NativeSession::getModuleDebugStream(uint32_t Index) const {