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:
@@ -785,7 +785,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
|
||||
.arg(token).arg(buffer));
|
||||
QMetaObject::invokeMethod(this, [this, buffer] { handleResponse(buffer); });
|
||||
} else {
|
||||
m_gdbProc.write(cmd.function.toUtf8() + "\r\n");
|
||||
m_gdbProc.write(cmd.function + "\r\n");
|
||||
if (command.flags & NeedsFlush) {
|
||||
// We don't need the response or result here, just want to flush
|
||||
// anything that's still on the gdb side.
|
||||
|
||||
Reference in New Issue
Block a user