printers.py (_use_gdb_pp): New global.
authorTom Tromey <tromey@redhat.com>
Mon, 14 Mar 2011 20:29:23 +0000 (20:29 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 14 Mar 2011 20:29:23 +0000 (20:29 +0000)
commitd63c53cce2d137062e4f93a9ff410e684bc7bc1b
treed19091c40f62147af35f371e2e0fa0e632a71b1f
parent2e64f8b8f6e40ba69829f030eb9bf7220ae39bb3
printers.py (_use_gdb_pp): New global.

* python/libstdcxx/v6/printers.py (_use_gdb_pp): New global.
Try to import `gdb.printing' module.
(UniquePointerPrinter.__init__): Add 'typename' argument.
(StdSlistPrinter.__init__): Likewise.
(StdSlistIteratorPrinter.__init__): Likewise.
(StdVectorIteratorPrinter.__init__): Likewise.
(StdRbtreeIteratorPrinter.__init__): Likewise.
(StdDebugIteratorPrinter.__init__): Likewise.
(StdDequeIteratorPrinter.__init__): Likewise.
(StdStringPrinter.__init__): Likewise.
(RxPrinter, Printer): New class.
(libstdcxx_printer): New global.
(register_libstdcxx_printers): Rewrite.
(build_libstdcxx_dictionary): Rewrite.
(pretty_printers_dict): Remove.

From-SVN: r170958
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py