From dc75648b0d86b6b898f2486646a4eab4aa6ab40f Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 17 Feb 2025 09:41:12 +0100 Subject: [PATCH] Debugger: Effectively require Python 3.5.2 only But keep the docs and the error message referring to 3.7. Pythoon 3.5.2 is apparently used in 5.15.10 Boot2Qt BSPs, and some people rely on this. Amends 9f5d30907490181. Task-number: QTCREATORBUG-32475 Change-Id: I939716edb4e2c12211e21293ec2315a12ac8ee0b Reviewed-by: Christian Stenger --- src/plugins/debugger/gdb/gdbengine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index c75712a8146..d2e29aeef81 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1511,7 +1511,9 @@ void GdbEngine::handlePythonSetup(const DebuggerResponse &response) GdbMi data = response.data; watchHandler()->addDumpers(data["dumpers"]); m_pythonVersion = data["python"].toInt(); - if (m_pythonVersion < 30700) { + // Python 3.5.x: Released 2016-06-27, supported until 2018-12-24, security until 2021-12-23, + // used in Ubuntu 16.04 and Qt 5.15.10 Boot2Qt BSPs. + if (m_pythonVersion < 30502) { int pythonMajor = m_pythonVersion / 10000; int pythonMinor = (m_pythonVersion / 100) % 100; QString out = "

"