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:
hjk
2018-04-23 15:38:53 +02:00
parent 22428af750
commit d6af336a7e
2 changed files with 5 additions and 5 deletions

View File

@@ -45,6 +45,7 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorericons.h>
#include <projectexplorer/runnables.h>
#include <projectexplorer/runconfigurationaspects.h>
#include <projectexplorer/session.h>
#include <projectexplorer/target.h>
#include <projectexplorer/taskhub.h>
@@ -825,8 +826,11 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, Kit *kit, bool allowTer
QString(), QString(), optionalPrompt);
});
if (runConfig)
if (runConfig) {
m_runParameters.displayName = runConfig->displayName();
if (auto symbolsAspect = runConfig->extraAspect<SymbolFileAspect>())
m_runParameters.symbolFile = symbolsAspect->value();
}
if (runConfig && !kit)
kit = runConfig->target()->kit();

View File

@@ -48,10 +48,6 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
setStartMode(AttachToRemoteServer);
setCloseMode(KillAndExitMonitorAtClose);
setUseExtendedRemote(true);
RunConfiguration *runConfig = runControl->runConfiguration();
if (auto aspect = runConfig->extraAspect<SymbolFileAspect>())
setSymbolFile(aspect->fileName().toString());
}
} // namespace Internal