Valgrind: Support console applications

Task-number: QTCREATORBUG-7311
Change-Id: I973136076118fd8868c6cb461ad31e107c73566e
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-06 00:08:12 +03:00
committed by Orgad Shaneh
parent 3089c8b1df
commit 60cd217981
13 changed files with 75 additions and 41 deletions

View File

@@ -50,7 +50,8 @@ public:
process(0),
channelMode(QProcess::SeparateChannels),
finished(false),
startMode(Analyzer::StartLocal)
startMode(Analyzer::StartLocal),
localRunMode(ProjectExplorer::ApplicationLauncher::Gui)
{
}
@@ -67,6 +68,7 @@ public:
QString debuggeeArguments;
QString workingdir;
Analyzer::StartMode startMode;
ProjectExplorer::ApplicationLauncher::Mode localRunMode;
QSsh::SshConnectionParameters connParams;
};
@@ -87,6 +89,7 @@ void ValgrindRunner::Private::run(ValgrindProcess *_process)
process->setWorkingDirectory(workingdir);
process->setProcessChannelMode(channelMode);
process->setLocalRunMode(localRunMode);
// consider appending our options last so they override any interfering user-supplied options
// -q as suggested by valgrind manual
@@ -179,6 +182,16 @@ Analyzer::StartMode ValgrindRunner::startMode() const
return d->startMode;
}
void ValgrindRunner::setLocalRunMode(ProjectExplorer::ApplicationLauncher::Mode localRunMode)
{
d->localRunMode = localRunMode;
}
ProjectExplorer::ApplicationLauncher::Mode ValgrindRunner::localRunMode() const
{
return d->localRunMode;
}
void ValgrindRunner::setStartMode(Analyzer::StartMode startMode)
{
d->startMode = startMode;