Commit acfdd51f by Jonathan Wakely Committed by Jonathan Wakely

Remove pretty printing for 'any' with allocators

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

From-SVN: r228447
parent f4cfe221
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.
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment