aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2014-10-01 19:24:23 +0000
committerFrançois Dumont <fdumont@gcc.gnu.org>2014-10-01 19:24:23 +0000
commit4681f59563ac941fb7a2e764150ddf65d7ff91a0 (patch)
tree7777ed42033707bdf80136b97fbc9086c108277c
parent662bb4b85ea6f0ccf1871b480554f6197133de1b (diff)
downloadgcc-4681f59563ac941fb7a2e764150ddf65d7ff91a0.zip
gcc-4681f59563ac941fb7a2e764150ddf65d7ff91a0.tar.gz
gcc-4681f59563ac941fb7a2e764150ddf65d7ff91a0.tar.bz2
printers.py (StdDebugIteratorPrinter.to_string): Adapt to latest modifications on debug iterators.
2014-10-01 François Dumont <fdumont@gcc.gnu.org> * python/libstdcxx/v6/printers.py (StdDebugIteratorPrinter.to_string): Adapt to latest modifications on debug iterators. From-SVN: r215775
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 02ffb3e..54f00ac 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,7 +1,12 @@
+2014-10-01 François Dumont <fdumont@gcc.gnu.org>
+
+ * python/libstdcxx/v6/printers.py (StdDebugIteratorPrinter.to_string):
+ Adapt to latest modifications on debug iterators.
+
2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
* include/std/type_traits: Add is_final<> type trait for C++14.
- * testsuite/util/testsuite_tr1.h: Add
+ * testsuite/util/testsuite_tr1.h: Add
* testsuite/20_util/is_final/requirements/
explicit_instantiation.cc: New.
* testsuite/20_util/is_final/requirements/typedefs.cc: New.
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 2e5cd6c..48ecb67 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -460,7 +460,7 @@ class StdDebugIteratorPrinter:
# and return the wrapped iterator value.
def to_string (self):
itype = self.val.type.template_argument(0)
- return self.val['_M_current'].cast(itype)
+ return self.val.cast(itype)
class StdMapPrinter:
"Print a std::map or std::multimap"