From dcd7a0ee90dc33bdd7e4dbff16ed0a0ef67c13a8 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Tue, 28 Sep 2021 11:06:50 +0100 Subject: [PATCH] print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Name print-lldb-path.patch --- .../ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(), -- 2.30.2