print-lldb-path
authorGianfranco Costamagna <locutusofborg@debian.org>
Tue, 31 Mar 2020 19:11:56 +0000 (20:11 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 31 Mar 2020 19:11:56 +0000 (20:11 +0100)
Last-Update: 2020-01-21

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

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

index e470dfeab98cfeb317ba3a7189bdc926a13f72fa..cbd13730d9f74625d672c5d8fdeade42911bf8c3 100644 (file)
@@ -336,10 +336,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
 }