forked from qt-creator/qt-creator
RemoteLinux/Debugger: Use SymbolFileAspect
This is/will be optionally available independent of the concrete run configuration type, so use it. Change-Id: Ife0e906ff47e916d2f7a9df73af8cdd83635cd65 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <projectexplorer/projectexplorericons.h>
|
#include <projectexplorer/projectexplorericons.h>
|
||||||
#include <projectexplorer/runnables.h>
|
#include <projectexplorer/runnables.h>
|
||||||
|
#include <projectexplorer/runconfigurationaspects.h>
|
||||||
#include <projectexplorer/session.h>
|
#include <projectexplorer/session.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
#include <projectexplorer/taskhub.h>
|
#include <projectexplorer/taskhub.h>
|
||||||
@@ -825,8 +826,11 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, Kit *kit, bool allowTer
|
|||||||
QString(), QString(), optionalPrompt);
|
QString(), QString(), optionalPrompt);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (runConfig)
|
if (runConfig) {
|
||||||
m_runParameters.displayName = runConfig->displayName();
|
m_runParameters.displayName = runConfig->displayName();
|
||||||
|
if (auto symbolsAspect = runConfig->extraAspect<SymbolFileAspect>())
|
||||||
|
m_runParameters.symbolFile = symbolsAspect->value();
|
||||||
|
}
|
||||||
|
|
||||||
if (runConfig && !kit)
|
if (runConfig && !kit)
|
||||||
kit = runConfig->target()->kit();
|
kit = runConfig->target()->kit();
|
||||||
|
@@ -48,10 +48,6 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
|
|||||||
setStartMode(AttachToRemoteServer);
|
setStartMode(AttachToRemoteServer);
|
||||||
setCloseMode(KillAndExitMonitorAtClose);
|
setCloseMode(KillAndExitMonitorAtClose);
|
||||||
setUseExtendedRemote(true);
|
setUseExtendedRemote(true);
|
||||||
|
|
||||||
RunConfiguration *runConfig = runControl->runConfiguration();
|
|
||||||
if (auto aspect = runConfig->extraAspect<SymbolFileAspect>())
|
|
||||||
setSymbolFile(aspect->fileName().toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
Reference in New Issue
Block a user