[Lldb-commits] [lldb] [lldb][windows] add support for out of PATH python.dll resolution (PR #162509)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 8 15:41:59 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) {
----------------
adrian-prantl wrote:
if MAX_PATH is 32767 isn't this condition always false?
https://github.com/llvm/llvm-project/pull/162509
More information about the lldb-commits
mailing list