After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720635 - Make gdb pretty-printers compatible with Python3
Make gdb pretty-printers compatible with Python3
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-12-17 20:22 UTC by darkxst
Modified: 2015-05-08 06:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make gdb pretty-printers compatible with Python3 (1.07 KB, patch)
2013-12-17 20:22 UTC, darkxst
committed Details | Review

Description darkxst 2013-12-17 20:22:18 UTC
Fixes things for systems where gdb is linked against python 3
Comment 1 darkxst 2013-12-17 20:22:25 UTC
Created attachment 264447 [details] [review]
Make gdb pretty-printers compatible with Python3

On some systems gdb is linked against python3 where "long" no longer
exists. In this case should be using int.
Comment 2 Colin Walters 2013-12-17 21:57:18 UTC
Review of attachment 264447 [details] [review]:

Ok.
Comment 3 darkxst 2013-12-17 22:47:32 UTC
Attachment 264447 [details] pushed as d33f720 - Make gdb pretty-printers compatible with Python3
Comment 4 Marius Gedminas 2015-05-08 06:41:05 UTC
The fix is incomplete: Python 3 requires iterators to define a method called `__next__`.  Lack of such a method causes errors in gdb:

  Python Exception <class 'TypeError'> iter() returned non-iterator of type '_iterator':
Comment 5 Marius Gedminas 2015-05-08 06:54:56 UTC
Filed bug 749092 about that.