From 9c1c720db34d59b47b5047e7da6a5874013a5448 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Tue, 23 Nov 2010 15:43:05 +0100
Subject: [PATCH] debugger: make -thread-select and -stack-select-frame
 discardable

---
 src/plugins/debugger/gdb/gdbengine.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 312db4f79dc..1adfe7d854d 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -2873,8 +2873,9 @@ void GdbEngine::selectThread(int index)
     Threads threads = threadsHandler()->threads();
     QTC_ASSERT(index < threads.size(), return);
     const int id = threads.at(index).id;
-    showStatusMessage(tr("Retrieving data for stack view thread 0x%1...").arg(id, 0, 16), 10000);
-    postCommand("-thread-select " + QByteArray::number(id),
+    showStatusMessage(tr("Retrieving data for stack view thread 0x%1...")
+        .arg(id, 0, 16), 10000);
+    postCommand("-thread-select " + QByteArray::number(id), Discardable,
         CB(handleStackSelectThread));
 }
 
@@ -3027,7 +3028,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(stackHandler()->currentFrame(), true);
     updateLocals();
     reloadRegisters();
-- 
GitLab