public inbox for gcc-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 r11-10664] libstdc++: Fix printing of std::span for versioned namespace Date: Thu, 27 Apr 2023 22:01:42 +0000 (GMT) [thread overview] Message-ID: <20230427220142.B2E153857730@sourceware.org> (raw) https://gcc.gnu.org/g:9b21c68e483fd903995cf6f90bb3050a5dc204a1 commit r11-10664-g9b21c68e483fd903995cf6f90bb3050a5dc204a1 Author: François Dumont <fdumont@gcc.gnu.org> Date: Wed May 25 22:05:48 2022 +0200 libstdc++: Fix printing of std::span for versioned namespace libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdSpanPrinter.__init__): Strip typename from version namespace. (cherry picked from commit ace4b7f295f407b16cfbc2e359f4ef7cd61d4a46) Diff: --- libstdc++-v3/python/libstdcxx/v6/printers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 2eb1397ee2a..081eec454dd 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1647,7 +1647,7 @@ class StdSpanPrinter: return '[%d]' % count, (self.begin + count).dereference() def __init__(self, typename, val): - self.typename = typename + self.typename = strip_versioned_namespace(typename) self.val = val if val.type.template_argument(1) == gdb.parse_and_eval('static_cast<std::size_t>(-1)'): self.size = val['_M_extent']['_M_extent_value'] @@ -1920,7 +1920,7 @@ class FilteringTypePrinter(object): self.enabled = True class _recognizer(object): - "The recognizer class for TemplateTypePrinter." + "The recognizer class for FilteringTypePrinter." def __init__(self, match, name): self.match = match
reply other threads:[~2023-04-27 22:01 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=20230427220142.B2E153857730@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).