[Bug libstdc++/59161] GDB pretty printers: iterator->reference not printed
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 15 13:39:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59161
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 15 13:38:42 2017
New Revision: 245480
URL: https://gcc.gnu.org/viewcvs?rev=245480&root=gcc&view=rev
Log:
PR59161 make pretty printers always return strings
Backport from mainline
2016-12-15 Jonathan Wakely <jwakely@redhat.com>
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.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/python/libstdcxx/v6/printers.py
More information about the Gcc-bugs
mailing list