commit f1c83d9bbd77d4c22b22051b409efbe12968d653
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sat Oct 3 00:56:55 2015 +0100
Remove pretty printing for 'any' with allocators
* python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
for _Manager_alloc.
@@ -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()
commit 934867ab0ab9b2648ce89daa43012bd3c8190e01
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sat Oct 3 00:49:29 2015 +0100
Fix comments saying why headers are included
* src/c++98/locale.cc: Fix comment.
* src/c++98/locale_init.cc: Likewise.
@@ -23,7 +23,6 @@
#define _GLIBCXX_USE_CXX11_ABI 1
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>
@@ -23,7 +23,7 @@
#define _GLIBCXX_USE_CXX11_ABI 1
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv, free.
+#include <cstdlib> // For free.
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>