From c3461837689d115ecfe7eea58067b7213036987e Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Mon, 3 Jul 2017 17:17:08 +1000 Subject: 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 726b907cc356995b7a9c28ee8dc8b2f2314e9103. Change-Id: I2759d1c1650a1949c9c9feb75cf12e2760920d21 Task-number: QTCREATORBUG-18494 Reviewed-by: hjk Reviewed-by: Alexander Drozdov --- src/plugins/debugger/gdb/gdbengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 0b0049a29b..a0eb8d7e14 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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; } -- cgit v1.2.1