Skip to content

Commit

Permalink
fix: [debugger] crash when fetch threads
Browse files Browse the repository at this point in the history
Log: as title
  • Loading branch information
LiHua000 committed Aug 20, 2024
1 parent d52cd0a commit dafea13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/debugadapter/debugger/gdbmi/gdbmi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dafea13

Please sign in to comment.