forked from qt-creator/qt-creator
GDB: fix information text truncation in Application Output pane
GdbEngine::handleResponse() incorrectly handles messages starts
with '@'. Seems that text position pointer by `from` and `to`
vars already correctly configured and additional cutting with
QString::mid() is not required.
Seems issue was introduced by 726b907cc3
.
Change-Id: I2759d1c1650a1949c9c9feb75cf12e2760920d21
Task-number: QTCREATORBUG-18494
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com>
This commit is contained in:
@@ -475,7 +475,7 @@ void GdbEngine::handleResponse(const QString &buff)
|
|||||||
|
|
||||||
case '@': {
|
case '@': {
|
||||||
QString data = GdbMi::parseCString(from, to);
|
QString data = GdbMi::parseCString(from, to);
|
||||||
QString msg = data.mid(2, data.size() - 4);
|
QString msg = data.left(data.size() - 1);
|
||||||
showMessage(msg, AppOutput);
|
showMessage(msg, AppOutput);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user