diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 3f9293fa29d..dd5631dc6e6 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1146,7 +1146,9 @@ bool GdbEngine::acceptsDebuggerCommands() const void GdbEngine::executeDebuggerCommand(const QString &command) { QTC_CHECK(acceptsDebuggerCommands()); - m_gdbAdapter->write(command.toLatin1() + "\r\n"); + GdbCommand cmd; + cmd.command = command.toLatin1(); + flushCommand(cmd); } // This is called from CoreAdapter and AttachAdapter.