Commit e278e62f by François Dumont

libstdc++: Fix pretty printers script and tests

	* python/libstdcxx/v6/printers.py (lookup_node_type): Remove redundant
	call to lookup_node_type.
	* testsuite/libstdc++-prettyprinters/80276.cc: Define
	_GLIBCXX_USE_CXX11_ABI to 0.
	* testsuite/libstdc++-prettyprinters/91997.cc: Use regexp-test to check
	'a' content.

From-SVN: r279640
parent 95d27703
2019-12-20 François Dumont <fdumont@gcc.gnu.org>
* python/libstdcxx/v6/printers.py (lookup_node_type): Remove redundant
call to lookup_node_type.
* testsuite/libstdc++-prettyprinters/80276.cc: Define
_GLIBCXX_USE_CXX11_ABI to 0.
* testsuite/libstdc++-prettyprinters/91997.cc: Use regexp-test to check
'a' content.
2019-12-20 Jerome Lambourg <lambourg@adacore.com> 2019-12-20 Jerome Lambourg <lambourg@adacore.com>
* acinclude.m4 (_GLIBCXX_USE_PTHREAD_RWLOCK_T): Checks that _PTHREADS * acinclude.m4 (_GLIBCXX_USE_PTHREAD_RWLOCK_T): Checks that _PTHREADS
......
...@@ -146,7 +146,6 @@ def lookup_node_type(nodename, containertype): ...@@ -146,7 +146,6 @@ def lookup_node_type(nodename, containertype):
if is_member_of_namespace(containertype, 'std::__cxx1998', if is_member_of_namespace(containertype, 'std::__cxx1998',
'std::__debug', '__gnu_debug'): 'std::__debug', '__gnu_debug'):
nodename = nodename.replace('::', '::__cxx1998::', 1) nodename = nodename.replace('::', '::__cxx1998::', 1)
return lookup_templ_spec(nodename, valtype)
try: try:
return lookup_templ_spec(nodename, valtype) return lookup_templ_spec(nodename, valtype)
except gdb.error: except gdb.error:
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// Type printers only recognize the old std::string for now.
#define _GLIBCXX_USE_CXX11_ABI 0
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <memory> #include <memory>
......
...@@ -41,7 +41,7 @@ int main() ...@@ -41,7 +41,7 @@ int main()
// { dg-final { note-test mit {{first = 1, second = 2}} } } // { dg-final { note-test mit {{first = 1, second = 2}} } }
std::any a = m; std::any a = m;
// { dg-final { note-test a {std::any containing std::map with 1 element = {[1] = 2}} } } // { dg-final { regexp-test a {std::any containing std::(__debug::)?map with 1 element = {\[1\] = 2}} } }
std::set<int> s{1, 2}; std::set<int> s{1, 2};
auto sit = s.begin(); auto sit = s.begin();
......
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