Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing works on Debian Bullseye unless I disable version limitations #60

Open
TheQuantumPhysicist opened this issue Oct 2, 2021 · 1 comment

Comments

@TheQuantumPhysicist
Copy link

I don't know what's wrong with gdb in Debian Bullseye... it just keeps saying that python isn't supported. I moved on and compiled gdb myself.

Then I tried to use this repo, and this is my ~/.gdbinit:

python
import sys
sys.path.insert(0, '/usr/share/gcc/python')
sys.path.insert(1, '/home/username/Boost-Pretty-Printer')

import boost
boost.register_printers(boost_version=(1,5,5))

from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers(None)

end

Then when I run gdb, I noticed that always, no matter what version I put up there (even if I don't specify a version, I keep getting the error No boost printers are available for boost version x.y.z. So, I went ahead to util.py and change this line:

supported_printers = [printer for printer in boost_printer_list
                          if printer.min_supported_version <= boost_version <= printer.max_supported_version]

to

supported_printers = boost_printer_list

So now, there's no filtering... and it just works.

I don't really know why the filters are just filtering everything. But there seems to be a problem there.

@bjodah
Copy link

bjodah commented Mar 25, 2022

I think this is simply the library is perhaps a bit overly cautious and makes no promises on versions newer than the blessed version given here:

last_supported_boost_version = (1, 73, 0)

I simply changed this tuple to (1, 999, 0).

kubajal added a commit to kubajal/Boost-Pretty-Printer that referenced this issue Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants