This is the mail archive of the
mailing list for the GDB project.
Re: How to load C++ pretty-printers
On Sun Mar 17 2019 00:00:29 GMT+0800, Eli Zaretskii wrote:
> So, for the record, I now have this in my ~/.gdbinit
> python import sys
> python sys.path.insert(0, 'd:/usr/share/gcc-7.3.0/python')
> source d:/usr/lib/gcc/mingw32/7.3.0/libstdc++.dll.a-gdb.py
> (The last line both imports the function register_libstdcxx_printers,
> and calls that function.)
Thanks Eli and Simon.
I think I have followed this wiki page: https://sourceware.org/gdb/wiki/STLSupport
And I just the svn command to check-out the latest Python libstdc++ printers in GCC trunk.
So, that page should be updated, at least we can teach people how to use the python printer bundled with their GCC release.