re PR libstdc++/59476 (gdb pretty-printer cannot print C++11 _Rb_tree_iterator)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 May 2014 16:01:30 +0000 (17:01 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 2 May 2014 16:01:30 +0000 (17:01 +0100)
commit047f1cec7fe69c13ed55fcdd005ace93397f0a95
tree58fd11f14c1d56ddb2194ca1ae6b3aad93daf788
parente13b3dfdeea77ac62a65c4afc710190ef413c9f8
re PR libstdc++/59476 (gdb pretty-printer cannot print C++11 _Rb_tree_iterator)

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.

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