Debugger: Fix thread name parsing

This was accessing the wrong part of the result item

Change-Id: I0d8b400d04fe93060e41461e77e3226233c4c12d
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2013-06-06 12:47:18 +02:00
parent 1b3bb5cb7e
commit f1fb879e39

View File

@@ -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)