debugging programs that use stl containers

Craveiro, Marco Marco.Craveiro@solvay.com
Mon Apr 2 00:51:00 GMT 2001


Hello Everyone,

I'm not sure if this is the right forum, so if it isn't please let me know. 
I'm a Unix / c++ apprentice and i've done a little project that I now need
to debug. 
unfortunately, I get lots of detailed information about the stl container's
definition (map)
but none about its contents. And I can't use the []  operator as well. 
(i.e., print foo ["bar"] doesnt work). Is there any way I can see the
contents 
of an stl container in gdb?

thanks for your time,

Marco.



More information about the Libstdc++ mailing list