From: Gianfranco Costamagna Date: Thu, 23 Jan 2020 13:30:57 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%10.0.0-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cd0aaae46036c0bb0dee2062e88aa9496c5c6c62;p=llvm-toolchain-10.git print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Name print-lldb-path.patch --- diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index e470dfeab..cbd13730d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -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 }