forked from qt-creator/qt-creator
Debugger: Don't check for existence of gdb.inferior.threads()
All supported versions have it in that context. Change-Id: Iafff4760ba521ffc9abc4e05dbbc9263ed6fe21a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -230,7 +230,6 @@ GdbEngine::GdbEngine(const DebuggerStartParameters &startParameters)
|
||||
m_hasBreakpointNotifications = false;
|
||||
m_hasPython = false;
|
||||
m_registerNamesListed = false;
|
||||
m_hasInferiorThreadList = false;
|
||||
m_sourcesListUpdating = false;
|
||||
m_oldestAcceptableToken = -1;
|
||||
m_nonDiscardableCount = 0;
|
||||
@@ -1875,8 +1874,6 @@ void GdbEngine::handlePythonSetup(const GdbResponse &response)
|
||||
}
|
||||
watchHandler()->addTypeFormats(type, formats);
|
||||
}
|
||||
const GdbMi hasInferiorThreadList = data["hasInferiorThreadList"];
|
||||
m_hasInferiorThreadList = (hasInferiorThreadList.toInt() != 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3759,7 +3756,7 @@ void GdbEngine::handleThreadInfo(const GdbResponse &response)
|
||||
selectThread(other);
|
||||
}
|
||||
updateViews(); // Adjust Threads combobox.
|
||||
if (m_hasInferiorThreadList && debuggerCore()->boolSetting(ShowThreadNames)) {
|
||||
if (m_hasPython && debuggerCore()->boolSetting(ShowThreadNames)) {
|
||||
postCommand("threadnames " +
|
||||
debuggerCore()->action(MaximalStackDepth)->value().toByteArray(),
|
||||
Discardable, CB(handleThreadNames));
|
||||
|
||||
Reference in New Issue
Block a user