public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-8426] libstdc++: Fix printing of std::atomic<shared_ptr<T>> for versioned namespace Date: Fri, 27 May 2022 17:34:06 +0000 (GMT) [thread overview] Message-ID: <20220527173406.03132382AF75@sourceware.org> (raw) https://gcc.gnu.org/g:50712db568cd8c469909a7a05e2c9bb8fe004672 commit r12-8426-g50712db568cd8c469909a7a05e2c9bb8fe004672 Author: Jonathan Wakely <jwakely@redhat.com> Date: Thu May 26 09:49:40 2022 +0100 libstdc++: Fix printing of std::atomic<shared_ptr<T>> for versioned namespace libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (SharedPointerPrinter): Strip versioned namespace from the template argument too. (cherry picked from commit 634b0089f664cca96d71262b295025e057054f2c) Diff: --- libstdc++-v3/python/libstdcxx/v6/printers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 0bd793c0897..17d5e5b5731 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -242,6 +242,7 @@ class SharedPointerPrinter: state = 'empty' refcounts = self._get_refcounts() targ = self.val.type.template_argument(0) + targ = strip_versioned_namespace(str(targ)) if refcounts != 0: usecount = refcounts['_M_use_count'] @@ -250,7 +251,7 @@ class SharedPointerPrinter: state = 'expired, weak count %d' % weakcount else: state = 'use count %d, weak count %d' % (usecount, weakcount - 1) - return '%s<%s> (%s)' % (self.typename, str(targ), state) + return '%s<%s> (%s)' % (self.typename, targ, state) def _tuple_impl_get(val): "Return the tuple element stored in a _Tuple_impl<N, T> base class."
reply other threads:[~2022-05-27 17:34 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220527173406.03132382AF75@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).