Commit 82cad87c authored by hjk's avatar hjk
Browse files

debugger: make -stack-select-frame and -thread-list-ids discardable

parent 585bb50d
......@@ -3021,7 +3021,7 @@ void GdbEngine::activateFrame(int frameIndex)
// after a response to this -stack-select-frame here.
handler->setCurrentIndex(frameIndex);
postCommand("-stack-select-frame " + QByteArray::number(frameIndex),
CB(handleStackSelectFrame));
Discardable, CB(handleStackSelectFrame));
}
gotoLocation(handler->currentFrame(), true);
}
......@@ -3035,22 +3035,23 @@ void GdbEngine::handleStackSelectFrame(const GdbResponse &response)
void GdbEngine::handleThreadInfo(const GdbResponse &response)
{
int id = response.cookie.toInt();
const int id = response.cookie.toInt();
if (response.resultClass == GdbResultDone) {
int currentThreadId;
const Threads threads= ThreadsHandler::parseGdbmiThreads(response.data, &currentThreadId);
const Threads threads =
ThreadsHandler::parseGdbmiThreads(response.data, &currentThreadId);
threadsHandler()->setThreads(threads);
threadsHandler()->setCurrentThreadId(currentThreadId);
updateViews(); // Adjust Threads combobox.
if (m_hasInferiorThreadList) {
postCommand("threadnames " +
debuggerCore()->action(MaximalStackDepth)->value().toByteArray(),
CB(handleThreadNames), id);
Discardable, CB(handleThreadNames), id);
}
} else {
// Fall back for older versions: Try to get at least a list
// of running threads.
postCommand("-thread-list-ids", CB(handleThreadListIds), id);
postCommand("-thread-list-ids", Discardable, CB(handleThreadListIds), id);
}
}
......
Supports Markdown
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