This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gdb pretty-printers for libstdc++
- From: Chris Fairles <chris dot fairles at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: libstdc <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 1 Mar 2009 14:02:19 -0500
- Subject: Re: gdb pretty-printers for libstdc++
- References: <m3eixj4o7d.fsf@fleche.redhat.com> <4348dea50902281102j76e5bfd0wa88c40ae2a2f5bc8@mail.gmail.com> <m3eixi2sz1.fsf@fleche.redhat.com> <m38wnpyve6.fsf@fleche.redhat.com>
What about printing std(::tr1)::tuple's? Might be hard since the impl
uses inheritance hierarchies.
Chris
On Sun, Mar 1, 2009 at 1:01 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
>
> Tom> I can send instructions on getting and building the appropriate
> Tom> branch if you want. ?It is very easy to get started with.
>
> I got a couple requests for this off-list, so I figured I'd just post
> it so everybody can see.
>
> You need git to check out the repository. ?It takes a while because it
> has all of gdb's history.
>
> ?git clone git://sourceware.org/git/archer.git
>
> Now check out the correct branch:
>
> ?cd archer
> ?git checkout --track -b archer-tromey-python origin/archer-tromey-python
>
> Make sure you have the python devel packages installed.
> On Fedora:
>
> ?sudo yum install python-devel
>
> Now configure and build as usual.
>
> To try it out, apply the libstdc++ patch, build, and "make install".
> Add the install tree $prefix/lib to your LD_LIBRARY_PATH. ?Now, run
> the new gdb on some c++ program. ?The pretty printers should
> automatically be available -- you don't have to do anything special.
> You can use the new "/r" flag to "print" if you want to avoid
> pretty-printing.
>
> Tom
>