[gcc r12-9299] libstdc++: Remove useless gdb printer registrations

Jonathan Wakely redi@gcc.gnu.org
Mon Mar 20 11:54:51 GMT 2023


https://gcc.gnu.org/g:abd85fa15043ee32483ff1daa6dee5d47c9071c4

commit r12-9299-gabd85fa15043ee32483ff1daa6dee5d47c9071c4
Author: François Dumont <fdumont@gcc.gnu.org>
Date:   Wed Sep 21 18:59:43 2022 +0200

    libstdc++: Remove useless gdb printer registrations
    
    libstdc++-v3/ChangeLog:
    
            * python/libstdcxx/v6/printers.py: Remove ptinter registration for non-existing
            types std::__debug::unique_ptr, std::__debug::stack, std::__debug::queue,
            std::__debug::priority_queue.
    
    (cherry picked from commit 42630dc056ddf2dbe012aa7cc8eee09c5b960102)

Diff:
---
 libstdc++-v3/python/libstdcxx/v6/printers.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 17c33c1e54f..7d3c61de613 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -2195,12 +2195,7 @@ def build_libstdcxx_dictionary ():
     libstdcxx_printer.add('std::__debug::map', StdMapPrinter)
     libstdcxx_printer.add('std::__debug::multimap', StdMapPrinter)
     libstdcxx_printer.add('std::__debug::multiset', StdSetPrinter)
-    libstdcxx_printer.add('std::__debug::priority_queue',
-                          StdStackOrQueuePrinter)
-    libstdcxx_printer.add('std::__debug::queue', StdStackOrQueuePrinter)
     libstdcxx_printer.add('std::__debug::set', StdSetPrinter)
-    libstdcxx_printer.add('std::__debug::stack', StdStackOrQueuePrinter)
-    libstdcxx_printer.add('std::__debug::unique_ptr', UniquePointerPrinter)
     libstdcxx_printer.add('std::__debug::vector', StdVectorPrinter)
 
     # These are the TR1 and C++11 printers.


More information about the Gcc-cvs mailing list