This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: error using pretty printing


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

Tom


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