forked from qt-creator/qt-creator
valgrind: use common data from RunConfiguration base class
Only display name for now. Change-Id: I6f404e175c0eca82b39055283b4432d9eae10709 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -62,6 +62,7 @@ Analyzer::AnalyzerStartParameters ValgrindTool::createStartParameters(
|
|||||||
Q_UNUSED(mode);
|
Q_UNUSED(mode);
|
||||||
|
|
||||||
Analyzer::AnalyzerStartParameters sp;
|
Analyzer::AnalyzerStartParameters sp;
|
||||||
|
sp.displayName = runConfiguration->displayName();
|
||||||
if (LocalApplicationRunConfiguration *rc1 =
|
if (LocalApplicationRunConfiguration *rc1 =
|
||||||
qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration)) {
|
qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration)) {
|
||||||
sp.startMode = Analyzer::StartLocal;
|
sp.startMode = Analyzer::StartLocal;
|
||||||
@@ -69,17 +70,15 @@ Analyzer::AnalyzerStartParameters ValgrindTool::createStartParameters(
|
|||||||
sp.workingDirectory = rc1->workingDirectory();
|
sp.workingDirectory = rc1->workingDirectory();
|
||||||
sp.debuggee = rc1->executable();
|
sp.debuggee = rc1->executable();
|
||||||
sp.debuggeeArgs = rc1->commandLineArguments();
|
sp.debuggeeArgs = rc1->commandLineArguments();
|
||||||
sp.displayName = rc1->displayName();
|
|
||||||
sp.connParams.host = QLatin1String("localhost");
|
sp.connParams.host = QLatin1String("localhost");
|
||||||
sp.connParams.port = rc1->debuggerAspect()->qmlDebugServerPort();
|
sp.connParams.port = rc1->debuggerAspect()->qmlDebugServerPort();
|
||||||
} else if (RemoteLinuxRunConfiguration *rc2 =
|
} else if (RemoteLinuxRunConfiguration *rc2 =
|
||||||
qobject_cast<RemoteLinuxRunConfiguration *>(runConfiguration)) {
|
qobject_cast<RemoteLinuxRunConfiguration *>(runConfiguration)) {
|
||||||
sp.startMode = Analyzer::StartRemote;
|
sp.startMode = Analyzer::StartRemote;
|
||||||
sp.debuggee = rc2->remoteExecutableFilePath();
|
sp.debuggee = rc2->remoteExecutableFilePath();
|
||||||
sp.debuggeeArgs = rc2->arguments();
|
|
||||||
sp.connParams = ProjectExplorer::DeviceProfileInformation::device(rc2->target()->profile())->sshParameters();
|
sp.connParams = ProjectExplorer::DeviceProfileInformation::device(rc2->target()->profile())->sshParameters();
|
||||||
sp.analyzerCmdPrefix = rc2->commandPrefix();
|
sp.analyzerCmdPrefix = rc2->commandPrefix();
|
||||||
sp.displayName = rc2->displayName();
|
sp.debuggeeArgs = rc2->arguments();
|
||||||
} else {
|
} else {
|
||||||
// Might be S60DeviceRunfiguration, or something else ...
|
// Might be S60DeviceRunfiguration, or something else ...
|
||||||
//sp.startMode = StartRemote;
|
//sp.startMode = StartRemote;
|
||||||
|
Reference in New Issue
Block a user