forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user