Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507230 (PR58962)

Summary: sys-devel/gcc-4.8.2-r1 - gdb pretty printers are incompatible w/ Python3
Product: Gentoo Linux Reporter: Alex Turbov <I.zaufi>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: aklhfex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://gcc.gnu.org/PR58962
See Also: https://bugs.gentoo.org/show_bug.cgi?id=414819
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58962
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: `2to3 w printers.py` result

Description Alex Turbov 2014-04-09 11:01:27 UTC
"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
Comment 1 Alex Turbov 2014-04-09 11:02:34 UTC
Created attachment 374586 [details, diff]
`2to3 w printers.py` result

apply this patch on src_prepare()
Comment 2 SpanKY gentoo-dev 2014-04-09 19:22:00 UTC
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
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2014-04-10 02:06:36 UTC
The closest upstream bug is http://gcc.gnu.org/PR58962.  I haven't seen any patches posted.
Comment 5 SpanKY gentoo-dev 2015-08-30 06:20:15 UTC
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