diff options
author | hjk <hjk121@nokiamail.com> | 2014-04-02 15:08:50 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-04-02 15:50:17 +0200 |
commit | 4e176cb15cc09868392076082d4d3f6f11790463 (patch) | |
tree | 7e5ff89d786be612cba72c9f28535998d4ac7006 | |
parent | 73577b33f3c62d3558d3e6e4fb275e6c2022bc1c (diff) |
Debugger: Abort gdb session if no python support is foundv3.1.0-rc1
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>
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 89b52fde81d..e514199616e 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1763,6 +1763,13 @@ void GdbEngine::handlePythonSetup(const GdbResponse &response) showMessage(_("ENGINE SUCCESSFULLY STARTED")); notifyEngineSetupOk(); } 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(); } } |