GDB Pretty Printers for libc++ of Clang/LLVM
Python support in gdb is implemented by linking against libpython. To find out python version your gdb is using run this in gdb:
(gdb) python
>import sys
>print(sys.version)
>end
This version of pretty printers is written in python 3 to be used with gdb linked against libpython3.x.
Python 2 version of pretty printers for libc++ can be found here:
https://github.com/koutheir/libcxx-pretty-printers
To use pretty printers:
git clone https://github.com/koja/libcxx-pretty-printers ~/.gdb/libcxx-pretty-printers
cp -b ~/.gdb/libcxx-pretty-printers/src/gdbinit ~/.gdbinit