GDB and prettyprinting

Andrea Venturoli ml at netfence.it
Thu Jun 20 10:36:00 UTC 2019


Hello.

I'm trying to better see C++/STL structures in GDB, so I'd like 
prettyprint to work, but after some search, I'm confused.

I've got a recent GDB (8.3), with PYTHON option enabled.
All the (old?) tutorials I've seen say I have to download additional 
files, but "pkg info -l gdb" already shows some interesting elements, e.g.
 >...
> /usr/local/share/gdb/python/gdb/__pycache__/printing.cpython-36.pyc
 >...
> /usr/local/share/libcxx-gdbpy/libcxx/__pycache__/printers.cpython-36.pyc
 >...

So a couple of question:
_ is everything I need included in devel/gdb or do I need additional files?
_ in the latter case are they available in some port? (I've seen talks 
about devel/libcxx-gdb, but it doesn't exist [yet]).
_ In the former case, what do I need to enable all this?

  bye & Thanks
	av.


More information about the freebsd-questions mailing list