void GdbDebugger::command_helper(const GdbCmd &cmd, bool emitOut) { m_token++; QByteArray buf = cmd.makeCmd(m_token); if (emitOut) { emit debugLog(LiteApi::DebugConsoleLog,">>> "+QString::fromUtf8(buf)); } #ifdef Q_OS_WIN buf.append("\r\n"); #else buf.append("\n"); #endif m_tokenCookieMap.insert(m_token,cmd.cookie()); m_process->write(buf); }