llvm::pdb::loadDataForEXE

Create a PDB session by loading debug data for an executable.

Synopsis

Declared in <llvm/DebugInfo/PDB/PDB.h>

Error
loadDataForEXE(
    PDB_ReaderType Type,
    StringRef Path,
    std::unique_ptr<IPDBSession>& Session);

Description

Locates the PDB associated with the executable (via the native reader) or opens it through DIA, then creates a session over that PDB.

Return Value

Success, or an error if the PDB could not be found or loaded.

Parameters

NameDescription
TypeThe PDB reader implementation to use.
PathPath to the executable image.
SessionOn success, set to the newly created session.