From e61fa399ed1a2b8c418ad7c80683d20d67621abc Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 15 Apr 2009 15:41:21 +0200 Subject: [PATCH] debugger: also parse PID if the program starts without breakpoints --- src/plugins/debugger/gdbengine.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp index 20c56002587..31718958102 100644 --- a/src/plugins/debugger/gdbengine.cpp +++ b/src/plugins/debugger/gdbengine.cpp @@ -163,6 +163,20 @@ static int ¤tToken() 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;