summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/gdbengine.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-04-15 15:41:21 +0200
committerhjk <qtc-committer@nokia.com>2009-04-15 15:41:21 +0200
commite61fa399ed1a2b8c418ad7c80683d20d67621abc (patch)
tree55d8d4ffa5a57b620b679801c113503d188dcdfd /src/plugins/debugger/gdbengine.cpp
parente39d006ffb2223ff42bdfd32e561cdf09268a2eb (diff)
downloadqt-creator-e61fa399ed1a2b8c418ad7c80683d20d67621abc.tar.gz
debugger: also parse PID if the program starts without breakpoints
Diffstat (limited to 'src/plugins/debugger/gdbengine.cpp')
-rw-r--r--src/plugins/debugger/gdbengine.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 20c5600258..3171895810 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -163,6 +163,20 @@ static int &currentToken()
return token;
}
+static bool isSkippable(int type)
+{
+ return type == RegisterListValues
+ && type == StackListThreads
+ && type == StackListFrames
+ && type == StackListLocals
+ && type == StackListArguments
+ && type == WatchVarAssign
+ && type == WatchVarListChildren
+ && type == WatchVarCreate
+ && type == WatchEvaluateExpression
+ && type == WatchToolTip;
+}
+
///////////////////////////////////////////////////////////////////////
//
// GdbEngine
@@ -680,7 +694,7 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
GdbCookie cmd = m_cookieForToken.take(token);
- if (record.token < m_oldestAcceptableToken) {
+ if (record.token < m_oldestAcceptableToken && isSkippable(cmd.type)) {
//qDebug() << "### SKIPPING OLD RESULT " << record.toString();
//QMessageBox::information(m_mainWindow, tr("Skipped"), "xxx");
return;