This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: STL debugging
- From: Tom Tromey <tromey at redhat dot com>
- To: "Xiaoliang Lee" <xiaoliangbuaa at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 08 Dec 2008 11:59:08 -0700
- Subject: Re: STL debugging
- References: <b83ac5220812080608y324ed4beyff0acd502a546382@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> ">" == 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