[Lldb-commits] [lldb] [lldb][windows] add support for out of PATH python.dll resolution (PR #162509)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 8 16:24:42 PDT 2025
================
@@ -426,6 +433,47 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
return error;
}
+#ifdef _WIN32
+// Returns the full path to the lldb.exe executable
+inline std::wstring GetPathToExecutableW() {
+ // Iterate until we reach the Windows max path length (32,767).
+ std::vector<WCHAR> buffer;
+ buffer.resize(MAX_PATH);
+ while (buffer.size() < 32767) {
----------------
compnerd wrote:
There is a doubling on failure, so this shouldn't be always false.
https://github.com/llvm/llvm-project/pull/162509
More information about the lldb-commits
mailing list