Docker: mount python dumpers to device

Change-Id: Ic0d67b4a18247439f5797a0dcf74df945ef6f61e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-10-18 09:44:10 +02:00
parent 6f26a1545c
commit 12bc192422
9 changed files with 28 additions and 7 deletions

View File

@@ -237,9 +237,9 @@ void LldbEngine::setupEngine()
showStatusMessage(tr("Setting up inferior..."));
const QByteArray dumperSourcePath = ICore::resourcePath("debugger/").toString().toLocal8Bit();
const DebuggerRunParameters &rp = runParameters();
executeCommand("script sys.path.insert(1, '" + dumperSourcePath + "')");
executeCommand("script sys.path.insert(1, '" + rp.dumperPath.path().toLocal8Bit() + "')");
// This triggers reportState("enginesetupok") or "enginesetupfailed":
executeCommand("script from lldbbridge import *");
@@ -268,8 +268,6 @@ void LldbEngine::setupEngine()
};
runCommand(cmd1);
const DebuggerRunParameters &rp = runParameters();
const SourcePathMap sourcePathMap =
mergePlatformQtPath(rp, debuggerSettings()->sourcePathMap.value());
for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd();