forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user