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