[Bug libstdc++/59476] [4.9/4.10 Regression] gdb pretty-printer cannot print C++11 _Rb_tree_iterator

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 2 16:02:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59476

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri May  2 16:01:30 2014
New Revision: 210008

URL: http://gcc.gnu.org/viewcvs?rev=210008&root=gcc&view=rev
Log:
    PR libstdc++/59476
    * python/libstdcxx/v6/printers.py (get_value_from_Rb_tree_node): New
    function to handle both C++03 and C++11 _Rb_tree_node implementations.
    (StdRbtreeIteratorPrinter, StdMapPrinter, StdSetPrinter): Use it.
    * testsuite/libstdc++-prettyprinters/simple.cc: Update comment to
    refer to...
    * testsuite/libstdc++-prettyprinters/simple11.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc
      - copied, changed from r210002,
trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/python/libstdcxx/v6/printers.py
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc



More information about the Gcc-bugs mailing list