diff --git a/doc/qtcreator/src/debugger/creator-only/creator-debugger-setup.qdoc b/doc/qtcreator/src/debugger/creator-only/creator-debugger-setup.qdoc index b59003193aa..0ba2c4841db 100644 --- a/doc/qtcreator/src/debugger/creator-only/creator-debugger-setup.qdoc +++ b/doc/qtcreator/src/debugger/creator-only/creator-debugger-setup.qdoc @@ -65,7 +65,7 @@ \section1 GDB Versions Use GDB 7.5, or later, with the Python scripting extension and Python version - 3.5, or later. + 3.7, or later. For remote debugging using GDB and GDB server, the minimum supported version of GDB server on the target \l{glossary-device}{device} is 7.0. diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 8c6ff848fe6..c75712a8146 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1511,16 +1511,18 @@ void GdbEngine::handlePythonSetup(const DebuggerResponse &response) GdbMi data = response.data; watchHandler()->addDumpers(data["dumpers"]); m_pythonVersion = data["python"].toInt(); - if (m_pythonVersion < 20700) { + if (m_pythonVersion < 30700) { int pythonMajor = m_pythonVersion / 10000; int pythonMinor = (m_pythonVersion / 100) % 100; QString out = "

" + Tr::tr("The selected build of GDB supports Python scripting, " "but the used version %1.%2 is not sufficient for " - "%3. Supported versions are Python 2.7 and 3.x.") + "%3. Python %4 or later is required.") .arg(pythonMajor) .arg(pythonMinor) - .arg(QGuiApplication::applicationDisplayName()); + .arg(QGuiApplication::applicationDisplayName()) + .arg("3.7"); + showStatusMessage(out); AsynchronousMessageBox::critical(Tr::tr("Execution Error"), out); }