From: Gianfranco Costamagna Date: Sun, 4 Dec 2022 08:03:06 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%14.0.6-9+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3c7d11342e7c811730d9359917be21f132d1f8e9;p=llvm-toolchain-14.git print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Topic lldb 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 1bf647e4ac..49e49685f5 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -264,6 +264,8 @@ void ScriptInterpreterPython::ComputePythonDir( // x86_64, or bin on Windows). llvm::sys::path::remove_filename(path); llvm::sys::path::append(path, LLDB_PYTHON_RELATIVE_LIBDIR); + // remove double "lib/lib" statement + std::replace(path.begin(), path.end(), '/lib/lib/', '/lib/'); #if defined(_WIN32) // This will be injected directly through FileSpec.GetDirectory().SetString(),