debugger: make threadnames feature optional

This commit is contained in:
hjk
2010-12-20 17:39:51 +01:00
parent 8095a25709
commit 96475f9553
5 changed files with 24 additions and 2 deletions

View File

@@ -3011,7 +3011,7 @@ void GdbEngine::handleThreadInfo(const GdbResponse &response)
threadsHandler()->setThreads(threads);
threadsHandler()->setCurrentThreadId(currentThreadId);
updateViews(); // Adjust Threads combobox.
if (m_hasInferiorThreadList) {
if (m_hasInferiorThreadList && debuggerCore()->boolSetting(ShowThreadNames)) {
postCommand("threadnames " +
debuggerCore()->action(MaximalStackDepth)->value().toByteArray(),
Discardable, CB(handleThreadNames), id);