print-lldb-path
authorGianfranco Costamagna <locutusofborg@debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
Last-Update: 2020-01-21

Gbp-Pq: Name print-lldb-path.patch

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

index 41cb443d4f1e1ee6a41850bc37f5904be326f999..511cf6e110d4ed5bc1ef757e0b56e1762d82d29f 100644 (file)
@@ -385,10 +385,11 @@ void ScriptInterpreterPython::ComputePythonDirForPosix(
   llvm::sys::path::remove_filename(path, style);
   llvm::sys::path::append(path, style, LLDB_PYTHON_RELATIVE_LIBDIR);
 #else
+  llvm::sys::path::remove_filename(path, style);
   llvm::sys::path::append(path, style,
-                          "python" + llvm::Twine(PY_MAJOR_VERSION) + "." +
-                              llvm::Twine(PY_MINOR_VERSION),
-                          "site-packages");
+                          "python3"/* + llvm::Twine(PY_MAJOR_VERSION) + "." +
+                              llvm::Twine(PY_MINOR_VERSION)*/,
+                          "dist-packages");
 #endif
 }