This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: STL debugging


>>>>> ">" == 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]