Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507230 (PR58962) - sys-devel/gcc-4.8.2-r1 - gdb pretty printers are incompatible w/ Python3
Summary: sys-devel/gcc-4.8.2-r1 - gdb pretty printers are incompatible w/ Python3
Status: RESOLVED FIXED
Alias: PR58962
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR58962
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 11:01 UTC by Alex Turbov
Modified: 2015-08-30 06:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
`2to3 w printers.py` result (gcc-4.8.2-make-gdb-printers-python3-compatible.patch,5.84 KB, patch)
2014-04-09 11:02 UTC, Alex Turbov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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