From ad9c51a486d30ab8dfe20d2f77e9f5fb9ae2207e Mon Sep 17 00:00:00 2001 From: hjk <hjk121@nokiamail.com> Date: Fri, 16 Aug 2013 12:35:44 +0200 Subject: [PATCH] Debugger: Make Creator work with a GDB using Python 3.x Even if current GDB git does not compile in that configuration, some people seem to be able to get this up and running, leading to dumper load failures and fallback to the no-more-existing compiled dumpers. Change-Id: I08ba6c43105c28b3406fce36049bfdf633e79e31 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com> --- src/plugins/debugger/gdb/gdbengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index b3b6e91e05a..554c820eb49 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1829,7 +1829,7 @@ void GdbEngine::handleShowVersion(const GdbResponse &response) postCommand("set detach-on-fork off", ConsoleCommand); //postCommand("set build-id-verbose 2", ConsoleCommand); - postCommand("python print 43", ConsoleCommand, CB(handleHasPython)); + postCommand("python print(sys.version)", ConsoleCommand, CB(handleHasPython)); } } -- GitLab