Issue #19308: fix the gdb plugin on gdbs linked with Python 3

This commit is contained in:
Antoine Pitrou 2013-11-23 17:40:36 +01:00
parent 5bef410471
commit e50240c504
2 changed files with 68 additions and 51 deletions

View file

@ -63,7 +63,7 @@ def run_gdb(*args, **env_vars):
return out.decode('utf-8', 'replace'), err.decode('utf-8', 'replace')
# Verify that "gdb" was built with the embedded python support enabled:
gdbpy_version, _ = run_gdb("--eval-command=python import sys; print sys.version_info")
gdbpy_version, _ = run_gdb("--eval-command=python import sys; print(sys.version_info)")
if not gdbpy_version:
raise unittest.SkipTest("gdb not built with embedded python support")