forked from qt-creator/qt-creator
Valgrind: Support console applications
Task-number: QTCREATORBUG-7311 Change-Id: I973136076118fd8868c6cb461ad31e107c73566e Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3089c8b1df
commit
60cd217981
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user