[Lldb-commits] [lldb] [lldb-dap][windows] add support for out of PATH python.dll resolution (PR #179306)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 3 03:45:19 PST 2026


================
@@ -0,0 +1,22 @@
+//===-- PythonPathSetup.h -------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLDB_SOURCE_UTILITY_PYTHONPATHSETUP_H
+#define LLDB_SOURCE_UTILITY_PYTHONPATHSETUP_H
+
+/// Try to setup the DLL search path for the Python Runtime Library
+/// (python3xx.dll).
+///
+/// If `LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME` is set, we first check if
+/// python3xx.dll is in the search path. If it's not, we try to add it and
+/// check for it a second time.
+/// If only `LLDB_PYTHON_DLL_RELATIVE_PATH` is set, we try to add python3xx.dll
+/// to the search path python.dll is already in the search path or not.
----------------
DavidSpickett wrote:

Also please try to make it clear when you say `python3x.dll` whether you literally mean that name or it's a wildcard kinda name. Maybe `python3[0-9]+.dll` if you do mean that `x` is some sub-version of the python.

https://github.com/llvm/llvm-project/pull/179306


More information about the lldb-commits mailing list