Debugger: Always check for availability of python with GDB

Trying to avoid that round-trip on versions that are known to
not have it puts us on the mercy of detecting the version,
which is unreliable by nature, and bad in practice, as proven
by the recent MinGW builds.

Change-Id: I122eb03fe0ddcb193ed8d45e672564f7113b662f
Reviewed-by: Ray Donnelly <mingw.android@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-06-03 13:09:40 +02:00
parent bde5c5c2c6
commit c7ea186df9

View File

@@ -1827,14 +1827,7 @@ void GdbEngine::handleShowVersion(const GdbResponse &response)
postCommand("set detach-on-fork off", ConsoleCommand);
//postCommand("set build-id-verbose 2", ConsoleCommand);
if (m_gdbVersion > 70100) {
// Quick check whether we have python.
postCommand("python print 43", ConsoleCommand, CB(handleHasPython));
} else {
showMessage(_("NOTE: CHECK FOR PYTHON SUPPRESSED, VERSION TOO LOW"));
pythonDumpersFailed();
}
postCommand("python print 43", ConsoleCommand, CB(handleHasPython));
}
}