Commit c3461837 authored by Alexander Drozdov's avatar Alexander Drozdov

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 726b907c.

Change-Id: I2759d1c1650a1949c9c9feb75cf12e2760920d21
Task-number: QTCREATORBUG-18494
Reviewed-by: default avatarhjk <hjk@qt.io>
Reviewed-by: default avatarAlexander Drozdov <adrozdoff@gmail.com>
parent 999e6bc6
......@@ -475,7 +475,7 @@ void GdbEngine::handleResponse(const QString &buff)
case '@': {
QString data = GdbMi::parseCString(from, to);
QString msg = data.mid(2, data.size() - 4);
QString msg = data.left(data.size() - 1);
showMessage(msg, AppOutput);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment