Remove pretty printing for 'any' with allocators

* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
	for _Manager_alloc.

From-SVN: r228447
This commit is contained in:
Jonathan Wakely 2015-10-03 13:09:36 +01:00 committed by Jonathan Wakely
parent f4cfe221bf
commit acfdd51fc8
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2015-10-03 Jonathan Wakely <jwakely@redhat.com>
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
for _Manager_alloc.
* src/c++98/locale.cc: Fix comment.
* src/c++98/locale_init.cc: Likewise.

View File

@ -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()