forked from qt-creator/qt-creator
ignore async output starting with '='
This commit is contained in:
Binary file not shown.
@@ -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
|
||||||
@@ -470,7 +471,7 @@ void GdbEngine::handleResponse()
|
|||||||
for (; from != to; ++from) {
|
for (; from != to; ++from) {
|
||||||
const char c = *from;
|
const char c = *from;
|
||||||
if (!isNameChar(c))
|
if (!isNameChar(c))
|
||||||
break;
|
break;
|
||||||
asyncClass += *from;
|
asyncClass += *from;
|
||||||
}
|
}
|
||||||
//qDebug() << "ASYNCCLASS" << asyncClass;
|
//qDebug() << "ASYNCCLASS" << asyncClass;
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user