debugger: also parse PID if the program starts without breakpoints

This commit is contained in:
hjk
2009-04-15 15:41:21 +02:00
parent e39d006ffb
commit e61fa399ed

View File

@@ -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;