Commit 541dd864 authored by hjk's avatar hjk

Debugger: Inline GdbEngine::write into caller

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

Change-Id: Ib2d22fb247d178b091a17f9927aa911d6707d3f9
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent f77af5e3
......@@ -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()) {
......
......@@ -419,9 +419,6 @@ protected:
void debugLastCommand() override;
DebuggerCommand m_lastDebuggableCommand;
protected:
virtual void write(const QByteArray &data);
protected:
bool prepareCommand();
void interruptLocalInferior(qint64 pid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment