I\'ve followed the instructions on the GDB wiki to install the python pretty-printers for viewing STL containers. My ~/.gdbinit now looks like this:
~/.gdbinit
<
Similar to enter link description here Worked for me in ~/.gdbinit:
python import sys sys.path.insert(0, '/usr/share/gcc-8/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end