public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Cleanup gdb printers.py
@ 2022-09-21 19:56 François Dumont
  2022-09-21 20:45 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: François Dumont @ 2022-09-21 19:56 UTC (permalink / raw)
  To: libstdc++; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

I stopped my research to find out if those types ever existed in 2001. 
Clearly they do not exist now.

     libstdc++: Remove useless gdb printer registrations.

     libstdc++-v3/ChangeLog:

             * python/libstdcxx/v6/printers.py: Remove printer 
registration for non-existing
             types std::__debug::unique_ptr, std::__debug::stack, 
std::__debug::queue,
             std::__debug::priority_queue.

Ok to commit ?

François

[-- Attachment #2: printers_cleanup.patch --]
[-- Type: text/x-patch, Size: 1016 bytes --]

diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index bd4289c1c62..5a3dcbd13f9 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -2246,12 +2246,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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Cleanup gdb printers.py
  2022-09-21 19:56 [PATCH] Cleanup gdb printers.py François Dumont
@ 2022-09-21 20:45 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2022-09-21 20:45 UTC (permalink / raw)
  To: François Dumont; +Cc: libstdc++, gcc-patches

On Wed, 21 Sept 2022 at 20:57, François Dumont via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
> I stopped my research to find out if those types ever existed in 2001.
> Clearly they do not exist now.
>
>      libstdc++: Remove useless gdb printer registrations.
>
>      libstdc++-v3/ChangeLog:
>
>              * python/libstdcxx/v6/printers.py: Remove printer
> registration for non-existing
>              types std::__debug::unique_ptr, std::__debug::stack,
> std::__debug::queue,
>              std::__debug::priority_queue.
>
> Ok to commit ?

Oh good catch, please commit, thanks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-21 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 19:56 [PATCH] Cleanup gdb printers.py François Dumont
2022-09-21 20:45 ` Jonathan Wakely

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).