forked from qt-creator/qt-creator
Utils/Ssh: Move SshRemoteProces::isRunning() to QtcProcess base
... and use it on a few places. Change-Id: Id2cea709e355a46821a720e593740ac032888ced Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -76,13 +76,13 @@ void PdbEngine::executeDebuggerCommand(const QString &command)
|
||||
showMessage("PDB PROCESS NOT RUNNING, PLAIN CMD IGNORED: " + command);
|
||||
return;
|
||||
}
|
||||
QTC_ASSERT(m_proc.state() == QProcess::Running, notifyEngineIll());
|
||||
QTC_ASSERT(m_proc.isRunning(), notifyEngineIll());
|
||||
postDirectCommand(command);
|
||||
}
|
||||
|
||||
void PdbEngine::postDirectCommand(const QString &command)
|
||||
{
|
||||
QTC_ASSERT(m_proc.state() == QProcess::Running, notifyEngineIll());
|
||||
QTC_ASSERT(m_proc.isRunning(), notifyEngineIll());
|
||||
showMessage(command, LogInput);
|
||||
m_proc.write(command.toUtf8() + '\n');
|
||||
}
|
||||
@@ -93,7 +93,7 @@ void PdbEngine::runCommand(const DebuggerCommand &cmd)
|
||||
showMessage("IGNORED COMMAND: " + cmd.function);
|
||||
return;
|
||||
}
|
||||
QTC_ASSERT(m_proc.state() == QProcess::Running, notifyEngineIll());
|
||||
QTC_ASSERT(m_proc.isRunning(), notifyEngineIll());
|
||||
QString command = "qdebug('" + cmd.function + "'," + cmd.argsToPython() + ")";
|
||||
showMessage(command, LogInput);
|
||||
m_proc.write(command.toUtf8() + '\n');
|
||||
|
||||
Reference in New Issue
Block a user