From: Gianfranco Costamagna Date: Sat, 7 Nov 2020 14:53:51 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%11.0.0-5+rpi1~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=24ccbc4eed66b80499552c54e6f7b9c8c32ab04c;p=llvm-toolchain-11.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 9f56b4fa6..0a287725a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -365,6 +365,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(),