PR libstdc++/59253 Improve pretty printers for smart pointers
commit13b767f548f20d121d08db84a82c5a3ea13b228e
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 18:49:57 +0000 (9 18:49 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 18:49:57 +0000 (9 18:49 +0000)
tree98dae7d9113fdd396fe5b7681fa6fc3c1e97b140
parentb20a123089a067a268201e741192b5cc09091104
PR libstdc++/59253 Improve pretty printers for smart pointers

PR libstdc++/59253 (partial)
* python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
(SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
children.
* testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
of unique_ptr printer.
* testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
output of shared_ptr printer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256390 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/shared_ptr.cc