Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

printing stl containers with gdb 7.0

Tags:

c++

stl

gdb

I have installed GDB 7.0 and python per the following instructions. In the same manual, there is a mention of this file stl-views-1.0.3.gdb. What confuses me is where it should be placed in order to enable pretty printing of stl containers. Would someone also explain to me all of this work?

Thanks

like image 313
vehomzzz Avatar asked Mar 17 '10 14:03

vehomzzz


1 Answers

As far as I can tell, stl-views are the old way to examine STL containers, and are inferior to the new python support in almost every way.

You should use libstdcxx_printers python pretty-printers instead.

like image 75
Employed Russian Avatar answered Oct 06 '22 10:10

Employed Russian