forked from qt-creator/qt-creator
Debugger: Abort gdb session if no python support is found
The message will be untranslated due to the string freeze, but better than nothing. Task-number: QTCREATORBUG-11505 Change-Id: I6f5e65615e4c20f42ce6800b8107f923c2ae2c4f Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -1763,6 +1763,13 @@ void GdbEngine::handlePythonSetup(const GdbResponse &response)
|
|||||||
showMessage(_("ENGINE SUCCESSFULLY STARTED"));
|
showMessage(_("ENGINE SUCCESSFULLY STARTED"));
|
||||||
notifyEngineSetupOk();
|
notifyEngineSetupOk();
|
||||||
} else {
|
} else {
|
||||||
|
QByteArray msg = response.data["msg"].data();
|
||||||
|
if (msg.contains("Python scripting is not supported in this copy of GDB.")) {
|
||||||
|
QString out1 = _("The selected build of GDB does not support Python scripting.");
|
||||||
|
QString out2 = _("It cannot be used in Qt Creator.");
|
||||||
|
showStatusMessage(out1 + QLatin1Char(' ') + out2);
|
||||||
|
showMessageBox(QMessageBox::Critical, tr("Execution Error"), out1 + _("<br>") + out2);
|
||||||
|
}
|
||||||
notifyEngineSetupFailed();
|
notifyEngineSetupFailed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user