ignore async output starting with '='

This commit is contained in:
hjk
2008-12-08 18:26:09 +01:00
parent 14ddfc455a
commit e07976f655
2 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@@ -442,7 +442,8 @@ void GdbEngine::handleResponse()
break; break;
} }
if (token == -1 && *from != '&' && *from != '~' && *from != '*') { if (token == -1 && *from != '&' && *from != '~' && *from != '*'
&& *from != '=') {
// FIXME: On Linux the application's std::out is merged in here. // FIXME: On Linux the application's std::out is merged in here.
// High risk of falsely interpreting this as MI output. // High risk of falsely interpreting this as MI output.
// We assume that we _always_ use tokens, so not finding a token // We assume that we _always_ use tokens, so not finding a token
@@ -1283,7 +1284,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
QVariant var = QVariant::fromValue<GdbMi>(data); QVariant var = QVariant::fromValue<GdbMi>(data);
sendCommand("p 0", GdbAsyncOutput2, var); // dummy sendCommand("p 0", GdbAsyncOutput2, var); // dummy
} else { } else {
q->showStatusMessage(tr("Stopped. Reason: \"%1\"").arg(reason)); q->showStatusMessage(tr("Stopped: \"%1\"").arg(reason));
handleAsyncOutput2(data); handleAsyncOutput2(data);
} }
return; return;