How to enable gdb pretty printing for C++ STL objects in Eclipse CDT?

This is the solution that works for me. Download ( http://www.gnu.org/software/gdb/download/) and install latest gdb (i.e. with –prefix $HOME). It supports python scripting. Get python pretty printers by executing svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python in a directory of your choice (i.e. $(HOME)/distribs/gdb_printers). You will get ‘python’ subdirectory in the checkout directory. Put this in your $(HOME)/.gdbinit file … Read more