STL debugging
Tom Tromey
tromey@redhat.com
Mon Dec 8 19:00:00 GMT 2008
>>>>> ">" == Xiaoliang Lee <xiaoliangbuaa@gmail.com> writes:
>> Do you know how to debug source using STL especially how to see all
>> the entries in the container conveniently?
If you don't mind the bleeding edge, and you are using gcc, you can
try the python branch. It has pretty-printers for most of the
containers in libstdc++.
There's a build-and-install tutorial here, with more info in
subsequent posts:
http://tromey.com/blog/?p=494
Enabling the printers is still a bit obscure. You must invoke:
python import gdb.libstdcxx.v6.printers
This problem will go away eventually.
Tom
More information about the Gdb
mailing list