forked from qt-creator/qt-creator
Debugger: Replace GdbMi::findChild() with an operator[]
Less noise. Change-Id: I8e533c97207ff5b9c79182c4fb99993f1992154f Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -168,11 +168,11 @@ void GdbTermEngine::handleStubAttached(const GdbResponse &response)
|
||||
handleInferiorPrepared();
|
||||
break;
|
||||
case GdbResultError:
|
||||
if (response.data.findChild("msg").data() == "ptrace: Operation not permitted.") {
|
||||
if (response.data["msg"].data() == "ptrace: Operation not permitted.") {
|
||||
notifyInferiorSetupFailed(DumperHelper::msgPtraceError(startParameters().startMode));
|
||||
break;
|
||||
}
|
||||
notifyInferiorSetupFailed(QString::fromLocal8Bit(response.data.findChild("msg").data()));
|
||||
notifyInferiorSetupFailed(QString::fromLocal8Bit(response.data["msg"].data()));
|
||||
break;
|
||||
default:
|
||||
notifyInferiorSetupFailed(QString::fromLatin1("Invalid response %1").arg(response.resultClass));
|
||||
|
||||
Reference in New Issue
Block a user