Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f88e15bf
Commit
f88e15bf
authored
Apr 07, 2009
by
hjk
Browse files
debugger: fix potential endless loop
parent
2da2d571
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdbengine.cpp
View file @
f88e15bf
...
...
@@ -377,18 +377,18 @@ void GdbEngine::handleResponse(const QByteArray &buff)
GdbMi
record
;
while
(
from
!=
to
)
{
GdbMi
data
;
if
(
*
from
==
','
)
{
++
from
;
// skip ','
data
.
parseResultOrValue
(
from
,
to
);
if
(
data
.
isValid
())
{
//qDebug() << "parsed response: " << data.toString();
record
.
m_children
+=
data
;
record
.
m_type
=
GdbMi
::
Tuple
;
}
}
else
{
if
(
*
from
!=
','
)
{
// happens on archer where we get
// 23^running <NL> *running,thread-id="all" <NL> (gdb)
record
.
m_type
=
GdbMi
::
Tuple
;
break
;
}
++
from
;
// skip ','
data
.
parseResultOrValue
(
from
,
to
);
if
(
data
.
isValid
())
{
//qDebug() << "parsed response: " << data.toString();
record
.
m_children
+=
data
;
record
.
m_type
=
GdbMi
::
Tuple
;
}
}
if
(
asyncClass
==
"stopped"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment