From: Tom Tromey <tromey@redhat.com>
To: "Xiaoliang Lee" <xiaoliangbuaa@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: STL debugging
Date: Mon, 08 Dec 2008 19:00:00 -0000 [thread overview]
Message-ID: <m3hc5esdc3.fsf@fleche.redhat.com> (raw)
In-Reply-To: <b83ac5220812080608y324ed4beyff0acd502a546382@mail.gmail.com> (Xiaoliang Lee's message of "Mon\, 8 Dec 2008 22\:08\:24 +0800")
>>>>> ">" == 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
prev parent reply other threads:[~2008-12-08 19:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 14:09 Xiaoliang Lee
2008-12-08 14:59 ` Bradshaw, James
2008-12-08 19:00 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3hc5esdc3.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=xiaoliangbuaa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox