debugger: adjust supported/unsupported gdb version hint to reality

Change-Id: I5d45b37e5967804275913c6311741eca83eac539
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-12-16 14:14:15 +01:00
committed by hjk
parent b4ca00bb69
commit bd308acfcf

View File

@@ -1679,7 +1679,14 @@ void GdbEngine::handleShowVersion(const GdbResponse &response)
QString msg = QString::fromLocal8Bit(response.consoleStreamOutput);
extractGdbVersion(msg,
&m_gdbVersion, &m_gdbBuildVersion, &m_isMacGdb);
if (m_gdbVersion > 60500 && m_gdbVersion < 200000)
// On Mac, fsf gdb does not work sufficiently well,
// and on Linux and Windows we require at least 7.2.
// Older versions with python still work, but can
// be significantly slower.
bool isSupported = m_isMacGdb ? m_gdbVersion < 70000
: (m_gdbVersion > 70200 && m_gdbVersion < 200000);
if (isSupported)
showMessage(_("SUPPORTED GDB VERSION ") + msg);
else
showMessage(_("UNSUPPORTED GDB VERSION ") + msg);