PR59161 make pretty printers always return strings
authorJonathan Wakely <jwakely@redhat.com>
Thu, 15 Dec 2016 13:25:22 +0000 (13:25 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 15 Dec 2016 13:25:22 +0000 (13:25 +0000)
commit50a8a9413d3a0a485ef5b1886361c2a1c4487433
tree89179b409860041c2cc9c9cac49b6ee9a618ed29
parent7224c6a997c32d3b4f7a2a22d27459ca58ee2587
PR59161 make pretty printers always return strings

PR libstdc++/59161
* python/libstdcxx/v6/printers.py (StdListIteratorPrinter.to_string)
(StdSlistIteratorPrinter.to_string, StdVectorIteratorPrinter.to_string)
(StdRbtreeIteratorPrinter.to_string, StdDequeIteratorPrinter.to_string)
(StdDebugIteratorPrinter.to_string): Return string instead of
gdb.Value.
* testsuite/libstdc++-prettyprinters/59161.cc: New test.

From-SVN: r243690
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc [new file with mode: 0644]