libstdc++: Fix atomic and error_code printers for versioned namespace
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 14:44:08 +0000 (15:44 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 27 May 2022 17:32:52 +0000 (18:32 +0100)
commit01ee07a0ddc29f6e9e7d95da6a9af703714db7a6
treea9d1765da7e9147e73f38b47518b1a6e8936966a
parent2a9c87a204058586e62363dd06144db4b14e7562
libstdc++: Fix atomic and error_code printers for versioned namespace

This fixes the printers to work with std::__8::atomic and
std::__v8::ios_errc and std::__v8::future_errc.

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (StdErrorCodePrinter): Make
lookup for ios_errc and future_errc check versioned namespace.
(StdAtomicPrinter): Strip versioned namespace from typename.

(cherry picked from commit 11e1ee1b38f0d3a825b0cb70122cb345636b0534)
libstdc++-v3/python/libstdcxx/v6/printers.py