Skip to content

Eigen pretty printers compatibility issue with new versions of gdb

Submitted by Kolja Brix

Assigned to Nobody

Link to original bugzilla bug (#800)
Version: 3.2

Description

Created attachment 456
Python 3 compatibility patch for gdb pretty printers

A few days ago, the user lysgaard hinted on the IRC chat that the current gdb pretty printers provided by Eigen are not compatible with newer versions of gdb. This is because newer versions of gdb use Python 3 instead of Python 2. He also pointed out that the pretty printers can be converted to Python 3 using the Python tool 2to3.

The patch attached to this bug is generated by 2to3 and contains the three changes that are needed for Python 3 compatibility.
Can we also provide the patched pretty printers along with Eigen?

Moreover, how can I check which version of Python is included in my gdb? Would it be possible to autodetect the version of Python used in gdb?

Patch 456, "Python 3 compatibility patch for gdb pretty printers":
gdb_python3.patch

Edited by Eigen Bugzilla