Hi, I use gdb at work for some time now. We currently develop a multiplatform software which heavily use STL templates. As a result, it's always difficult to me to debug such code. I tried to find a way to debug more efficiently by using gdb scripts that were able to dump std::vector or std::list, but it was always painful. So, yesterday, I decided myself to look at the code of GDB. After a quick look, I wrote this patch. I know that it's not very clean, and that it makes many assumptions about STL containers, and that it cannot be considered as a long term feature for GDB, but, believe me, it's very very usefull ! Now, I can look at the content of list, vector, set, map, multiset, multimap and string simply with the classic "print" command of GDB. Two switchs and a parameter are introduced : * set print stl on / set print stl off default is off. Controls the type of dumping (classic or "easy") * set print stl_array_compatible on / set print stl_array_compatible off default is on. Controls the kind of formating of STL container when stl print is on. * set print stllimit N set the maximum number of items we could dump when printing an STL container to N. 0 means unlimited I hope it could be useful for someone. Sincerely Vincent Benony