forked from qt-creator/qt-creator
debugger: handle gdb 7.1.50's thread-group-started 'pid' field
This commit is contained in:
@@ -442,10 +442,15 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
||||
// 7.0.x, there was a *-created instead.
|
||||
int progress = m_progress->progressValue();
|
||||
m_progress->setProgressValue(qMin(70, progress + 1));
|
||||
// 7.1.50 has thread-group-started,id="i1",pid="3529"
|
||||
QByteArray id = result.findChild("id").data();
|
||||
showStatusMessage(tr("Thread group %1 created.").arg(_(id)), 1000);
|
||||
showStatusMessage(tr("Thread group %1 created").arg(_(id)), 1000);
|
||||
int pid = id.toInt();
|
||||
if (pid != inferiorPid())
|
||||
if (!pid) {
|
||||
id = result.findChild("pid").data();
|
||||
pid = id.toInt();
|
||||
}
|
||||
if (pid)
|
||||
handleInferiorPidChanged(pid);
|
||||
} else if (asyncClass == "thread-created") {
|
||||
//"{id="1",group-id="28902"}"
|
||||
|
Reference in New Issue
Block a user