This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: error using pretty printing
Tom Tromey wrote:
>>>>>> "Tiago" == Tiago Maluta <maluta_tiago@yahoo.com.br> writes:
>
> Tiago> I followed the steps to Pretty Printing (part 1) [1] after
> Tiago> reading the blog post about Installing a Python-enabled
> Tiago> debugger [2]
>
> Oops, sorry I didn't respond to you privately.
>
> Tiago> Trying the little example to print 'str' value I got the same result
> Tiago> that gdb without python support would print.
>
> With today's git you need to run two commands first:
>
> python import gdb.libstdcxx.v6.printers
> python gdb.libstdcxx.v6.printers.register_libstdcxx_printers(None)
>
> This is kind of inconvenient, and undocumented -- but that is because
> we're going to push these printers upstream into libstdc++, and have
> them be auto-activated, at least in the distros.
Does this assume GDB was installed? Can I make it work in a build tree?
- Volodya