Create a PDB session by loading debug data for an executable.
Declared in <llvm/DebugInfo/PDB/PDB.h>
Error
loadDataForEXE(
PDB_ReaderType Type,
StringRef Path,
std::unique_ptr<IPDBSession>& Session);
Locates the PDB associated with the executable (via the native reader) or opens it through DIA, then creates a session over that PDB.
Success, or an error if the PDB could not be found or loaded.
| Name | Description |
|---|---|
| Type | The PDB reader implementation to use. |
| Path | Path to the executable image. |
| Session | On success, set to the newly created session. |