GdbPlainEngine::GdbPlainEngine(const DebuggerStartParameters &startParameters) : GdbEngine(startParameters) { // Output connect(&m_outputCollector, SIGNAL(byteDelivery(QByteArray)), this, SLOT(readDebugeeOutput(QByteArray))); }
LocalPlainGdbAdapter::LocalPlainGdbAdapter(GdbEngine *engine) : AbstractPlainGdbAdapter(engine) { // Output connect(&m_outputCollector, SIGNAL(byteDelivery(QByteArray)), engine, SLOT(readDebugeeOutput(QByteArray))); }
PlainGdbAdapter::PlainGdbAdapter(GdbEngine *engine, QObject *parent) : AbstractGdbAdapter(engine, parent) { // Output connect(&m_outputCollector, SIGNAL(byteDelivery(QByteArray)), engine, SLOT(readDebugeeOutput(QByteArray))); }
void FiFoTty::bytesAvailable() { size_t nbytes = 0; if (::ioctl(m_serverFd, FIONREAD, (char *) &nbytes) < 0) return; QByteArray buff(nbytes,0); if (::read(m_serverFd, buff.data(), nbytes) != (int)nbytes) return; if (nbytes) // Skip EOF notifications emit byteDelivery(buff); }
void SocketTty::bytesAvailable() { emit byteDelivery(m_socket->readAll()); }