LLVM 22.0.0git
|
#include "llvm/DebugInfo/PDB/Native/NativeSession.h"
Static Public Member Functions | |
static Error | createFromPdb (std::unique_ptr< MemoryBuffer > MB, std::unique_ptr< IPDBSession > &Session) |
static Error | createFromPdbPath (StringRef PdbPath, std::unique_ptr< IPDBSession > &Session) |
static Error | createFromExe (StringRef Path, std::unique_ptr< IPDBSession > &Session) |
static Expected< std::string > | searchForPdb (const PdbSearchOptions &Opts) |
Definition at line 33 of file NativeSession.h.
NativeSession::NativeSession | ( | std::unique_ptr< PDBFile > | PdbFile, |
std::unique_ptr< BumpPtrAllocator > | Allocator ) |
Definition at line 64 of file NativeSession.cpp.
References getDbiStreamPtr(), and llvm::move().
Referenced by getNativeGlobalScope().
|
overridedefault |
References llvm::pdb::Address, addressForRVA(), addressForVA(), llvm::pdb::Compiland, createFromExe(), createFromPdb(), createFromPdbPath(), findCompilandsForSourceFile(), findLineNumbers(), findLineNumbersByAddress(), findLineNumbersByRVA(), findLineNumbersBySectOffset(), findOneCompilandForSourceFile(), findOneSourceFile(), findSourceFiles(), findSymbolByAddress(), findSymbolByRVA(), findSymbolBySectOffset(), getAllSourceFiles(), getDebugStreams(), getEnumTables(), getFrameData(), getGlobalScope(), getInjectedSources(), getLoadAddress(), getSectionContribs(), getSourceFileById(), getSourceFilesForCompiland(), getSymbolById(), llvm::Length, llvm::pdb::Offset, llvm::pdb::Path, searchForPdb(), setLoadAddress(), and llvm::pdb::Type.
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 225 of file NativeSession.cpp.
References llvm::pdb::Offset, and llvm::size().
Referenced by addressForVA(), findSymbolByRVA(), and ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 219 of file NativeSession.cpp.
References addressForRVA(), getLoadAddress(), and llvm::pdb::Offset.
Referenced by findSymbolByAddress(), and ~NativeSession().
|
static |
Definition at line 149 of file NativeSession.cpp.
References llvm::Expected< T >::get(), getPdbPathFromExe(), llvm::identify_magic(), loadPdbFile(), llvm::msf::Magic, llvm::make_error(), llvm::file_magic::pdb, llvm::Error::success(), and llvm::Expected< T >::takeError().
Referenced by ~NativeSession().
|
static |
Definition at line 71 of file NativeSession.cpp.
References llvm::little, llvm::pdb::Path, and llvm::Error::success().
Referenced by ~NativeSession().
|
static |
Definition at line 118 of file NativeSession.cpp.
References loadPdbFile(), and llvm::Error::success().
Referenced by llvm::pdb::loadDataForEXE(), llvm::pdb::loadDataForPDB(), and ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 311 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 273 of file NativeSession.cpp.
References llvm::pdb::Compiland.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 279 of file NativeSession.cpp.
References llvm::pdb::Address, and llvm::Length.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 285 of file NativeSession.cpp.
References getLoadAddress(), and llvm::Length.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 290 of file NativeSession.cpp.
References getVAFromSectOffset(), llvm::Length, and llvm::pdb::Offset.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 317 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 304 of file NativeSession.cpp.
References llvm::pdb::Compiland.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 297 of file NativeSession.cpp.
References llvm::pdb::Compiland.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 248 of file NativeSession.cpp.
References llvm::pdb::Address, addressForVA(), findSymbolBySectOffset(), llvm::pdb::Offset, and llvm::pdb::Type.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 255 of file NativeSession.cpp.
References addressForRVA(), findSymbolBySectOffset(), llvm::pdb::Offset, and llvm::pdb::Type.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 264 of file NativeSession.cpp.
References llvm::pdb::Offset, and llvm::pdb::Type.
Referenced by findSymbolByAddress(), findSymbolByRVA(), and ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 322 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 336 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 340 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 365 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 210 of file NativeSession.cpp.
References llvm::pdb::PDBSymbol::createAs(), and getNativeGlobalScope().
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 345 of file NativeSession.cpp.
References llvm::consumeError().
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 203 of file NativeSession.cpp.
Referenced by addressForVA(), findLineNumbersByRVA(), and ~NativeSession().
Expected< ModuleDebugStreamRef > NativeSession::getModuleDebugStream | ( | uint32_t | Index | ) | const |
Definition at line 452 of file NativeSession.cpp.
References assert(), getDbiStreamPtr(), llvm::pdb::DbiModuleDescriptor::getModuleStreamIndex(), llvm::pdb::kInvalidStreamIndex, llvm::make_error(), and llvm::pdb::ModuleDebugStreamRef::reload().
NativeExeSymbol & NativeSession::getNativeGlobalScope | ( | ) | const |
Definition at line 374 of file NativeSession.cpp.
References NativeSession().
Referenced by getGlobalScope().
|
inline |
Definition at line 110 of file NativeSession.h.
Referenced by getDbiStreamPtr().
Definition at line 111 of file NativeSession.h.
Definition at line 380 of file NativeSession.cpp.
References getDbiStreamPtr(), and llvm::pdb::Offset.
Referenced by getVAFromSectOffset().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 360 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 332 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 326 of file NativeSession.cpp.
References llvm::pdb::Compiland.
Referenced by ~NativeSession().
|
overridevirtual |
Implements llvm::pdb::IPDBSession.
Definition at line 215 of file NativeSession.cpp.
Referenced by ~NativeSession().
|
inline |
Definition at line 114 of file NativeSession.h.
|
inline |
Definition at line 115 of file NativeSession.h.
Definition at line 396 of file NativeSession.cpp.
References getRVAFromSectOffset(), and llvm::pdb::Offset.
Referenced by findLineNumbersBySectOffset(), and moduleIndexForSectOffset().
bool NativeSession::moduleIndexForSectOffset | ( | uint32_t | Sect, |
uint32_t | Offset, | ||
uint16_t & | ModuleIndex ) const |
Definition at line 410 of file NativeSession.cpp.
References getVAFromSectOffset(), and llvm::pdb::Offset.
Definition at line 401 of file NativeSession.cpp.
Definition at line 172 of file NativeSession.cpp.
References llvm::sys::path::append(), llvm::consumeError(), llvm::sys::path::filename(), llvm::Expected< T >::get(), getPdbPathFromExe(), loadPdbFile(), llvm::make_error(), llvm::sys::path::posix, llvm::sys::path::remove_filename(), llvm::StringRef::starts_with(), llvm::Expected< T >::takeError(), and llvm::sys::path::windows.
Referenced by llvm::pdb::loadDataForEXE(), searchForExe(), and ~NativeSession().
Implements llvm::pdb::IPDBSession.
Definition at line 205 of file NativeSession.cpp.
References llvm::pdb::Address.
Referenced by ~NativeSession().