gdb pretty printer: python2 vs python3
Posted: Fri Feb 28, 2014 10:38 pm
So codelite ships with a python2 pretty printer. The gdb that ships with ubuntu 13.10 and probably most newer distros ships with gdb compiled with python3 support. This means you'll get syntax errors like
the syntax for raise has changed in python3 http://docs.pythonsprints.com/python3_p ... exceptions
So my question is, what setup is eranif using?
Code: Select all
DEBUG>>&" File \"<string>\", line 3, in <module>\n"
DEBUG>>&" File \"~/.codelite/gdb_printers/libstdcxx/v6/printers.py\", line 279\n"
DEBUG>>&" raise ValueError, \"Top of tuple tree does not consist of a single node.\"\n"
DEBUG>>&" ^\n"
DEBUG>>&"SyntaxError: invalid syntax\n"
DEBUG>>&"Error while executing Python code.\n"
DEBUG>>^error,msg="Error while executing Python code."
So my question is, what setup is eranif using?