Commit f1fb879e authored by hjk's avatar hjk

Debugger: Fix thread name parsing

This was accessing the wrong part of the result item

Change-Id: I0d8b400d04fe93060e41461e77e3226233c4c12d
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 1b3bb5cb
......@@ -446,8 +446,7 @@ void ThreadsHandler::updateThreads(const GdbMi &data)
thread.lineNumber = frame["line"].toInt();
thread.module = QString::fromLocal8Bit(frame["from"].data());
thread.stopped = true;
// Non-GDB (Cdb2) output name here.
thread.name = QString::fromLatin1(frame["name"].data());
thread.name = QString::fromLatin1(item["name"].data());
if (thread.state == QLatin1String("running"))
thread.stopped = false;
if (thread.id == currentId)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment