From: Gianfranco Costamagna Date: Wed, 30 Nov 2022 15:15:42 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~4^2^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4893db99cc80d278d79f057b0f58e07ff843413f;p=llvm-toolchain-16.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 a21adcfbdb..05cdfb1375 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -239,6 +239,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(),