From patchwork Wed Sep 21 19:56:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Fran=C3=A7ois_Dumont?= X-Patchwork-Id: 1680813 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=cok7WYTh; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MXq1y5VBCz1yqK for ; Thu, 22 Sep 2022 05:57:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5ADF3857BB0 for ; Wed, 21 Sep 2022 19:57:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5ADF3857BB0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663790224; bh=m6Ks57VXtZijY3UAzj+9yX81PmySui3/mDDfDE2/1uA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=cok7WYTh67UHduVM1IVGOBDm92SfeFylCMPoY/e0M3F6ZuhVIWsJmw0J5vwtDFgAM ud5TE48VHtYIPUGRhVGSlajN9EEd8DaErpUFDJbSGvLQ96Wi7OzZy6CAwBqZ4pA54F DrXRWHt2yvwvp3o5NOdnVkhEWqxMTlvnSikaGWSM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id E69C93858C52; Wed, 21 Sep 2022 19:56:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E69C93858C52 Received: by mail-wr1-x433.google.com with SMTP id n12so11807285wrx.9; Wed, 21 Sep 2022 12:56:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=m6Ks57VXtZijY3UAzj+9yX81PmySui3/mDDfDE2/1uA=; b=haCIJF1JBGYPoqh6ZaIT0ilbw0qFK+4/2cE8AWmje9HO5PUb5Sn5o4XxAiRHbFLnuA L2FwmwHgfb8H1SLj2b3+qNyyQqcTRSecO6i9jVhxaA1Ph9swxgEszLnE5RQme+WAKmV+ 0D+cd7+/NcHzJa5Jz+OF7klKUh+NtX+Lu1ve9y+knsIr0Innq7AnxZskTeoHmDLIBAKd /TE8/yaCIVa5yhyMv0m5eYABjiIrf5Oi9+yy1OdsYvqgCBgl994GMaxdkjqXAjAIeJ6w uAr0soKAvcoX+OGrOZiWKg9qaZTD6fLVxNtzKNU1KaHzMir495aOavhfdkVAZ/olVogV dG3g== X-Gm-Message-State: ACrzQf3lZL3QWvncGg6Ad/JdXb/OzyWYNSyq9OqcMsZJZ20b2ShQ3Hho +Hy9Bpzp9dNIGeB+IxJA2J4voGc2Xvg= X-Google-Smtp-Source: AMsMyM572rCmxklD1QK48hpiPlWri0Sb6hF4jtnN9rp3x9AFuUeDj7ERDRCgn3/C1o+OiAFoHZxzxQ== X-Received: by 2002:adf:f04a:0:b0:22b:237c:3e64 with SMTP id t10-20020adff04a000000b0022b237c3e64mr2813296wro.488.1663790203147; Wed, 21 Sep 2022 12:56:43 -0700 (PDT) Received: from ?IPV6:2a01:e0a:1dc:b1c0:7153:c262:8364:a7f7? ([2a01:e0a:1dc:b1c0:7153:c262:8364:a7f7]) by smtp.googlemail.com with ESMTPSA id g14-20020a05600c4ece00b003b477532e66sm6967313wmq.2.2022.09.21.12.56.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Sep 2022 12:56:42 -0700 (PDT) Message-ID: <964f50d9-4bc2-8481-b855-d2f10a2e7f41@gmail.com> Date: Wed, 21 Sep 2022 21:56:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: fr To: "libstdc++@gcc.gnu.org" Subject: [PATCH] Cleanup gdb printers.py X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= From: =?utf-8?q?Fran=C3=A7ois_Dumont?= Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= Cc: gcc-patches Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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 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.