debugger: remove \r from gdb output also on non-Windows

This helps with MinGW on Linux.

Change-Id: I6495d0606738a8ad540477dcb820c62e0a06f34c
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-03 11:03:40 +01:00
committed by hjk
parent 29279ab8c7
commit 6583244130

View File

@@ -705,13 +705,11 @@ void GdbEngine::readGdbStandardOutput()
scan = newstart;
if (end == start)
continue;
# if defined(Q_OS_WIN)
if (m_inbuffer.at(end - 1) == '\r') {
--end;
if (end == start)
continue;
}
# endif
m_busy = true;
handleResponse(QByteArray::fromRawData(m_inbuffer.constData() + start, end - start));
m_busy = false;