libstdc++: Add pretty printer for std::error_code and std::error_condition
authorJonathan Wakely <jwakely@redhat.com>
Mon, 16 Aug 2021 16:41:50 +0000 (17:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 17 Aug 2021 13:22:49 +0000 (14:22 +0100)
commit2db38d9fcacf522fe9b98ba847e79ba33abdcadc
tree0e8c2f385a406e1a919b5b17e15a2f8ad3b8b5aa
parent9c560cf23996271ee26dfc4a1d8484b85173cd12
libstdc++: Add pretty printer for std::error_code and std::error_condition

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Define.
(build_libstdcxx_dictionary): Register printer for
std::error_code and std::error_condition.
* testsuite/libstdc++-prettyprinters/cxx11.cc: Test it.
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc