diff options
author | Alexander Drozdov <adrozdoff@gmail.com> | 2017-07-03 17:17:08 +1000 |
---|---|---|
committer | Alexander Drozdov <adrozdoff@gmail.com> | 2017-07-03 07:52:07 +0000 |
commit | c3461837689d115ecfe7eea58067b7213036987e (patch) | |
tree | c13896199878a939bd0348675efba8ca4123c158 | |
parent | 999e6bc6714600069eadd916d861f21e70faba95 (diff) | |
download | qt-creator-c3461837689d115ecfe7eea58067b7213036987e.tar.gz |
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 <hjk@qt.io>
Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com>
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |