forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user