Debugger: Inline GdbEngine::write into caller

Not used in earnest since the end of CODA/Symbian.

Change-Id: Ib2d22fb247d178b091a17f9927aa911d6707d3f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-02-06 17:13:49 +01:00
parent f77af5e336
commit 541dd8643d
2 changed files with 2 additions and 10 deletions

View File

@@ -971,9 +971,9 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
QMetaObject::invokeMethod(this, "handleResponse",
Q_ARG(QString, buffer));
} else {
write(cmd.function.toUtf8() + "\r\n");
m_gdbProc.write(cmd.function.toUtf8() + "\r\n");
if (command.flags & NeedsFlush)
write("p 0\r\n");
m_gdbProc.write("p 0\r\n");
// Start Watchdog.
if (m_commandTimer.interval() <= 20000)
@@ -4346,11 +4346,6 @@ void GdbEngine::requestDebugInformation(const DebugInfoTask &task)
QProcess::startDetached(task.command);
}
void GdbEngine::write(const QByteArray &data)
{
m_gdbProc.write(data);
}
bool GdbEngine::prepareCommand()
{
if (HostOsInfo::isWindowsHost()) {