aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/python
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-10-03 13:09:36 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2015-10-03 13:09:36 +0100
commitacfdd51fc8a4de16ff62a68d9059d49c9911d3ee (patch)
tree25281176ad6ba25c5f5b3f9a2cb04fc98f6e7b5b /libstdc++-v3/python
parentf4cfe221bf574585968988782748a96350f1e822 (diff)
downloadgcc-acfdd51fc8a4de16ff62a68d9059d49c9911d3ee.zip
gcc-acfdd51fc8a4de16ff62a68d9059d49c9911d3ee.tar.gz
gcc-acfdd51fc8a4de16ff62a68d9059d49c9911d3ee.tar.bz2
Remove pretty printing for 'any' with allocators
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support for _Manager_alloc. From-SVN: r228447
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 2d16786..12e732e 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -945,10 +945,6 @@ class StdExpAnyPrinter(SingleObjContainerPrinter):
valptr = self.val['_M_storage']['_M_buffer'].address
elif '::_Manager_external' in mgrname:
valptr = self.val['_M_storage']['_M_ptr']
- elif '::_Manager_alloc' in mgrname:
- datatype = gdb.lookup_type(mgrname + '::_Data')
- valptr = self.val['_M_storage']['_M_ptr'].cast(datatype.pointer())
- valptr = valptr.dereference()['_M_data'].address
else:
raise ValueError("Unknown manager function in std::experimental::any")
contained_value = valptr.cast(self.contained_type.pointer()).dereference()