forked from qt-creator/qt-creator
Utils: Add a QString-based write to QtcProcess
Centralize some boiler plate and warn about best-guessed cases. Keep the QByteArray based access as writeRaw() Fixes: QTCREATORBUG-27445 Change-Id: I948d80fba78b36cf85cc73664175ab05eb7707d4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -86,7 +86,7 @@ void PdbEngine::postDirectCommand(const QString &command)
|
||||
{
|
||||
QTC_ASSERT(m_proc.isRunning(), notifyEngineIll());
|
||||
showMessage(command, LogInput);
|
||||
m_proc.write(command.toUtf8() + '\n');
|
||||
m_proc.write(command + '\n');
|
||||
}
|
||||
|
||||
void PdbEngine::runCommand(const DebuggerCommand &cmd)
|
||||
@@ -98,7 +98,7 @@ void PdbEngine::runCommand(const DebuggerCommand &cmd)
|
||||
QTC_ASSERT(m_proc.isRunning(), notifyEngineIll());
|
||||
QString command = "qdebug('" + cmd.function + "'," + cmd.argsToPython() + ")";
|
||||
showMessage(command, LogInput);
|
||||
m_proc.write(command.toUtf8() + '\n');
|
||||
m_proc.write(command + '\n');
|
||||
}
|
||||
|
||||
void PdbEngine::shutdownInferior()
|
||||
|
||||
Reference in New Issue
Block a user