"Starting with gdb-7.6, gdb supports embedding a Python3 interpreter instead of Python2. However most pretty printers are still using Python2 code..." http://gcc.gnu.org/ml/libstdc++/2013-06/msg00060.html see also: http://askubuntu.com/questions/403143/setting-up-gdb-pretty-printing-in-ubuntu-13-10 Reproducible: Always
Created attachment 374586 [details, diff] `2to3 w printers.py` result apply this patch on src_prepare()
Comment on attachment 374586 [details, diff] `2to3 w printers.py` result i think we'd rather wait for upstream gcc to land something and then we'll cherry pick that back
The closest upstream bug is http://gcc.gnu.org/PR58962. I haven't seen any patches posted.
Fix committed upstream: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3222fde5eccc99fdee7148dc502c100196970ca5;hp=a8a638964fb6739be219c1016c21cf1579dd65c7
should be fixed w/gcc-4.8.[45] and gcc-4.9.[23] and >=gcc-5 don't see much point in backporting past that