|
LLDB mainline
|
#include "lldb/Host/windows/PythonPathSetup/PythonPathSetup.h"#include "lldb/Host/windows/windows.h"#include "llvm/Support/Windows/WindowsSupport.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Support/ConvertUTF.h"#include "llvm/Support/FileSystem.h"#include "llvm/Support/Path.h"#include <pathcch.h>Go to the source code of this file.
Functions | |
| static std::string | GetModulePath (HMODULE module) |
| static std::string | GetPathToExecutable () |
| Returns the full path to the lldb.exe executable. | |
| llvm::Expected< std::string > | SetupPythonRuntimeLibrary () |
| Attempts to setup the DLL search path for the Python runtime library. | |
|
static |
Definition at line 22 of file PythonPathSetup.cpp.
Referenced by GetPathToExecutable().
|
static |
Returns the full path to the lldb.exe executable.
Definition at line 41 of file PythonPathSetup.cpp.
References GetModulePath().
| llvm::Expected< std::string > SetupPythonRuntimeLibrary | ( | ) |
Attempts to setup the DLL search path for the Python runtime library.
In the following paragraphs, python3xx.dll refers to the Python runtime library name which is defined by LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME, e.g. python311.dll for Python 3.11.
The setup flow depends on which macros are defined:
Definition at line 81 of file PythonPathSetup.cpp.
References createStringError().