PR libstdc++/59253 Improve pretty printers for smart pointers
authorJuraj Oršulić <juraj.orsulic@fer.hr>
Tue, 9 Jan 2018 18:49:57 +0000 (18:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 9 Jan 2018 18:49:57 +0000 (18:49 +0000)
commitd2dfcf823c0ba2b654f8d25a9ec46f59612cb60c
tree98dae7d9113fdd396fe5b7681fa6fc3c1e97b140
parent1eac10b39f164c3010fe8fee2fed3269fa832967
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.

From-SVN: r256390
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