print-lldb-path
authorGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Aug 2020 10:28:24 +0000 (11:28 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Aug 2020 10:28:24 +0000 (11:28 +0100)
Last-Update: 2020-01-21

Gbp-Pq: Name print-lldb-path.patch

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

index 06e0d5bfa63f41c1d7711d95116a2adaa5eb11f7..a90e47d4f8e1ed0486d6a05c375c71ea1acd689f 100644 (file)
@@ -353,6 +353,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(),