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 9f5d309074.

Task-number: QTCREATORBUG-32475
Change-Id: I939716edb4e2c12211e21293ec2315a12ac8ee0b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2025-02-17 09:41:12 +01:00
parent 8a15dae077
commit dc75648b0d

View File

@@ -1511,7 +1511,9 @@ void GdbEngine::handlePythonSetup(const DebuggerResponse &response)
GdbMi data = response.data; GdbMi data = response.data;
watchHandler()->addDumpers(data["dumpers"]); watchHandler()->addDumpers(data["dumpers"]);
m_pythonVersion = data["python"].toInt(); 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 pythonMajor = m_pythonVersion / 10000;
int pythonMinor = (m_pythonVersion / 100) % 100; int pythonMinor = (m_pythonVersion / 100) % 100;
QString out = "<p>" QString out = "<p>"