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:
parent
f4cfe221bf
commit
acfdd51fc8
@ -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.
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user