public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-775] libstdc++: Fix printing of std::span for versioned namespace
@ 2022-05-26 9:39 Franथईois Dumont
0 siblings, 0 replies; only message in thread
From: Franथईois Dumont @ 2022-05-26 9:39 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:ace4b7f295f407b16cfbc2e359f4ef7cd61d4a46
commit r13-775-gace4b7f295f407b16cfbc2e359f4ef7cd61d4a46
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.
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 17d5e5b5731..d47f9f27662 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1688,7 +1688,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']
@@ -1995,7 +1995,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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-26 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 9:39 [gcc r13-775] libstdc++: Fix printing of std::span for versioned namespace Franथईois Dumont
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).