Lines Matching defs:NativeSession

1 //===- NativeSession.cpp - Native implementation of IPDBSession -*- C++ -*-===//
9 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
64 NativeSession::NativeSession(std::unique_ptr<PDBFile> PdbFile,
69 NativeSession::~NativeSession() = default;
71 Error NativeSession::createFromPdb(std::unique_ptr<MemoryBuffer> Buffer,
85 std::make_unique<NativeSession>(std::move(File), std::move(Allocator));
118 Error NativeSession::createFromPdbPath(StringRef PdbPath,
125 Session = std::make_unique<NativeSession>(std::move(PdbFile.get()),
149 Error NativeSession::createFromExe(StringRef ExePath,
165 Session = std::make_unique<NativeSession>(std::move(File.get()),
172 NativeSession::searchForPdb(const PdbSearchOptions &Opts) {
203 uint64_t NativeSession::getLoadAddress() const { return LoadAddress; }
205 bool NativeSession::setLoadAddress(uint64_t Address) {
210 std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() {
215 NativeSession::getSymbolById(SymIndexId SymbolId) const {
219 bool NativeSession::addressForVA(uint64_t VA, uint32_t &Section,
225 bool NativeSession::addressForRVA(uint32_t RVA, uint32_t &Section,
248 NativeSession::findSymbolByAddress(uint64_t Address, PDB_SymType Type) {
255 std::unique_ptr<PDBSymbol> NativeSession::findSymbolByRVA(uint32_t RVA,
264 NativeSession::findSymbolBySectOffset(uint32_t Sect, uint32_t Offset,
273 NativeSession::findLineNumbers(const PDBSymbolCompiland &Compiland,
279 NativeSession::findLineNumbersByAddress(uint64_t Address,
285 NativeSession::findLineNumbersByRVA(uint32_t RVA, uint32_t Length) const {
290 NativeSession::findLineNumbersBySectOffset(uint32_t Section, uint32_t Offset,
297 NativeSession::findSourceFiles(const PDBSymbolCompiland *Compiland,
304 NativeSession::findOneSourceFile(const PDBSymbolCompiland *Compiland,
311 NativeSession::findCompilandsForSourceFile(StringRef Pattern,
317 NativeSession::findOneCompilandForSourceFile(StringRef Pattern,
322 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getAllSourceFiles() const {
326 std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getSourceFilesForCompiland(
332 NativeSession::getSourceFileById(uint32_t FileId) const {
336 std::unique_ptr<IPDBEnumDataStreams> NativeSession::getDebugStreams() const {
340 std::unique_ptr<IPDBEnumTables> NativeSession::getEnumTables() const {
345 NativeSession::getInjectedSources() const {
360 NativeSession::getSectionContribs() const {
365 NativeSession::getFrameData() const {
369 void NativeSession::initializeExeSymbol() {
374 NativeExeSymbol &NativeSession::getNativeGlobalScope() const {
375 const_cast<NativeSession &>(*this).initializeExeSymbol();
380 uint32_t NativeSession::getRVAFromSectOffset(uint32_t Section,
396 uint64_t NativeSession::getVAFromSectOffset(uint32_t Section,
401 bool NativeSession::moduleIndexForVA(uint64_t VA, uint16_t &ModuleIndex) const {
410 bool NativeSession::moduleIndexForSectOffset(uint32_t Sect, uint32_t Offset,
420 void NativeSession::parseSectionContribs() {
426 NativeSession &Session;
430 Visitor(NativeSession &Session, IMap &AddrMap)
452 NativeSession::getModuleDebugStream(uint32_t Index) const {