Commit c2d6081a authored by hjk's avatar hjk
Browse files

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's avatarOrgad Shaneh <orgads@gmail.com>
parent c8862ad4
......@@ -400,7 +400,6 @@ def bbsetup(args = ''):
result += '{type="%s",formats="%s"},' % (key, value)
result += ']'
#result += ',namespace="%s"' % qqNs
result += ',hasInferiorThreadList="%s"' % int(hasInferiorThreadList())
return result
registerCommand("bbsetup", bbsetup)
......@@ -572,17 +571,6 @@ def hasPlot():
return os.path.isfile(fileName) and os.access(fileName, os.X_OK)
#
# Threads
#
def hasInferiorThreadList():
#return False
try:
a = gdb.inferiors()[0].threads()
return True
except:
return False
#
# VTable
#
......
......@@ -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));
......
......@@ -387,7 +387,6 @@ protected:
bool m_isQnxGdb;
bool m_hasBreakpointNotifications;
bool m_hasPython;
bool m_hasInferiorThreadList;
private: ////////// Inferior Management //////////
......
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