diff --git a/src/tools/debugadapter/debugger/gdbmi/gdbmi.cpp b/src/tools/debugadapter/debugger/gdbmi/gdbmi.cpp index 58ae617ba..2145d2421 100644 --- a/src/tools/debugadapter/debugger/gdbmi/gdbmi.cpp +++ b/src/tools/debugadapter/debugger/gdbmi/gdbmi.cpp @@ -67,14 +67,16 @@ QString parseString(const QString& s, QString::const_iterator& it) { QString v; while (it != s.cend()) { - if (*it == '"') + if (*it == '"') { + ++it; break; + } if (*it == '\\') if (++it == s.cend()) break; v += *it++; } - ++it; + return v; }