From 82cad87c6b1a6c109e82ace1072700e44f5d7ca0 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 22 Nov 2010 14:12:53 +0100 Subject: [PATCH] debugger: make -stack-select-frame and -thread-list-ids discardable --- src/plugins/debugger/gdb/gdbengine.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 2b0f731df90..bdb6eb2060d 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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, ¤tThreadId); + const Threads threads = + ThreadsHandler::parseGdbmiThreads(response.data, ¤tThreadId); 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); } }