forked from qt-creator/qt-creator
DockerDevice: Fix debug-dumpers not found
Since the dumper path was changed after the first "startContainer" call, subsequent startContainer calls would set the wrong source directory. Change-Id: I6e8304c080b4b55fc67eda0a9544a1b8f34ab7a1 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -474,7 +474,7 @@ bool DockerDevicePrivate::createContainer()
|
||||
dockerCreate.addArgs({"-v", mount + ':' + mount});
|
||||
}
|
||||
FilePath dumperPath = FilePath::fromString("/tmp/qtcreator/debugger");
|
||||
dockerCreate.addArgs({"-v", q->debugDumperPath().toUserOutput() + ':' + dumperPath.path()});
|
||||
addTemporaryMount(Core::ICore::resourcePath("debugger/"), dumperPath);
|
||||
q->setDebugDumperPath(dumperPath);
|
||||
|
||||
for (const auto &[path, containerPath] : qAsConst(m_temporaryMounts)) {
|
||||
|
||||
Reference in New Issue
Block a user