* STL debugging
@ 2008-12-08 14:09 Xiaoliang Lee
2008-12-08 14:59 ` Bradshaw, James
2008-12-08 19:00 ` Tom Tromey
0 siblings, 2 replies; 3+ messages in thread
From: Xiaoliang Lee @ 2008-12-08 14:09 UTC (permalink / raw)
To: gdb
Hi, everybody.
Do you know how to debug source using STL especially how to see all
the entries in the container conveniently?
Many thanks for your time.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: STL debugging
2008-12-08 14:09 STL debugging Xiaoliang Lee
@ 2008-12-08 14:59 ` Bradshaw, James
2008-12-08 19:00 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Bradshaw, James @ 2008-12-08 14:59 UTC (permalink / raw)
To: Xiaoliang Lee, gdb
You might try the GDB stl utilities http://www.stanford.edu/~afn/gdb_stl_utils/ .
-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Xiaoliang Lee
Sent: Monday, December 08, 2008 9:08 AM
To: gdb@sourceware.org
Subject: STL debugging
Hi, everybody.
Do you know how to debug source using STL especially how to see all
the entries in the container conveniently?
Many thanks for your time.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: STL debugging
2008-12-08 14:09 STL debugging Xiaoliang Lee
2008-12-08 14:59 ` Bradshaw, James
@ 2008-12-08 19:00 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2008-12-08 19:00 UTC (permalink / raw)
To: Xiaoliang Lee; +Cc: gdb
>>>>> ">" == 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-08 19:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-08 14:09 STL debugging Xiaoliang Lee
2008-12-08 14:59 ` Bradshaw, James
2008-12-08 19:00 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox