wish helps you Printing out the data structures nicely is a function (no pun intended) of some Python code that extends GDB. There is a section of the GDB manual on pretty printing in GDB. It turns out that for shared libraries (and possibly for statically linked libraries too, it's not completely clear) that GDB has a way to automatically load them. On my Fedora 25 system GDB autoloads /usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.22-gdb.py and this file loads up the libstdc++ pretty printers.
How do I use the pretty print module to print a list in python?