Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2019 12:35:50 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-questions@freebsd.org
Subject:   GDB and prettyprinting
Message-ID:  <579a49db-ed0d-f626-055e-b2c6fb952dfe@netfence.it>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?579a49db-ed0d-f626-055e-b2c6fb952dfe>