From: Gianfranco Costamagna Date: Sun, 13 Feb 2022 13:04:40 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%12.0.1-20+rpi1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a5ca6b43dace5d8703c9e1e4b825d715894e5ca8;p=llvm-toolchain-12.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 6b53bd3a2e..b5c494bb6d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -383,6 +383,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(),