re PR libstdc++/51649 (pretty printers don't handle std::__7:: namespace)
commit3efe2bf72bfd8910fa48c957205df7f0e93060e1
authorTom Tromey <tromey@redhat.com>
Mon, 30 Jan 2012 16:25:11 +0000 (30 16:25 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 30 Jan 2012 16:25:11 +0000 (30 16:25 +0000)
treedfa5562778e2cbd7c0ba3dc5765d3720b86193a9
parente799d447097b728213232e08fc2e807c3e5f8265
re PR libstdc++/51649 (pretty printers don't handle std::__7:: namespace)

PR libstdc++/51649:
* testsuite/libstdc++-prettyprinters/debug.cc: New file.
* testsuite/lib/gdb-test.exp (regexp-test): New proc.
(note-test): Update.
(gdb-test): Handle regexp tests.  Add some logging.
* testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
(placeholder, use): Remove.
(main): Add tests for deque, list, map, and set iterators.  Add
tests for slist and slist iterator.
* testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
namespace.
* python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
the type's _Node typedef.
(StdListIteratorPrinter.to_string): Change how node type is
computed.
(StdSlistPrinter.children): Use the type's _Node typedef.
(StdSlistIteratorPrinter.to_string): Likewise.
(StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
typedef.
(StdMapPrinter.children): Change how the node's type is computed.
(StdSetPrinter.children): Likewise.
(StdForwardListPrinter.children): Use the type's _Node typedef.
(Printer.add_version): New method.
(Printer.add_container): New method.
(build_libstdcxx_dictionary): Handle __7 and __cxx1998
namespaces.
(find_type): New function.

From-SVN: r183732
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/lib/gdb-test.exp
libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc [new file with mode: 0644]
libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc