From c7ea186df9e682a8cd113b927dea1340a4c478b6 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 3 Jun 2013 13:09:40 +0200 Subject: [PATCH] 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 Reviewed-by: hjk --- src/plugins/debugger/gdb/gdbengine.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index bdacb767080..0b007674bc2 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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)); } }