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: 1347 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2302:b0:79:6ae5:3758 with SMTP id gv2csp4958dyb; Wed, 21 Sep 2022 12:58:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kfPq1DV70A85ySAw6EVZCST+Sn9m5as9f1o3qHk29jtzoFp3yNiGTtnHC8DOamIzVaRpz X-Received: by 2002:a17:907:da2:b0:782:b6a:326d with SMTP id go34-20020a1709070da200b007820b6a326dmr4003918ejc.429.1663790284043; Wed, 21 Sep 2022 12:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663790284; cv=none; d=google.com; s=arc-20160816; b=S0EXqtVW7B/S3uWNmeZoxXGh2TqUzibjpKgav6LeZkRAmYQQ0BGBZRI4Leqsx47ET3 UIbYRSNys18O7p5eXciqMLOFSMx/HQVEMVzYcMRQizID2eFDiaNWRkGBqiJtr/c7Tm4q HuQtiT8MToDuhYu16sFRhKluASbY/dISmVfgd72cYO37p2AOuP0gZWjroGcjntPhz5Xo AKetEiyMqOWbvJWOV8d6UjQG5JaD3xXhXMQOkGKU5c0YBoE/N4R0bfRvtqqaCViN3oUT avWsMcmZOZRJY8TSO+QSGX9VtV/ob2bpRiExWD2u0/I6/exf+lq2jywv+teLwQWVlnnO NZEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :to:content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=m6Ks57VXtZijY3UAzj+9yX81PmySui3/mDDfDE2/1uA=; b=e+Ei6BQEEwIqjqej4qVbXmbKJQ1Gkdjq2KhgKQonYK4JJBv2KeqpV5PlO/9tmI5dtI /5m9BafBK6JMZ6CmXdIxf7EKDMqgkOP9SFE4M4GEqdV6PNTbePxKvy6BPNq3vqwWnWBa +a7rBfZpu+IE1oZFLzBW5b5fC+A8Jz4pBnSykUMlTuCBrDegxHco+pRfuqyomeZynq9T KV3htXquxaSWfVA3EMF39GtSKRE5zjqApFcSn8eAG2HNZ5XeujqMpy4y1ESmbYPdjFLX 3DFiBHNJ2UXsmdSePbrCsg7Q0fdp8Zl9x86cA7uJJ0U5pLpq/XcahWjghBBa7P4BIVUZ MyYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="MccIZ/gT"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z3-20020a50eb43000000b004543bcecdcfsi2958042edp.454.2022.09.21.12.58.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 12:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="MccIZ/gT"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 810933857BA3 for ; Wed, 21 Sep 2022 19:57:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 810933857BA3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663790248; 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=MccIZ/gTmmDs0Thak+kb4+FYHPUC91jbplyQZLhaB4NfaklN14vhhrPCk/ykEbmO6 2ZrhKlv30vpp8J6u21lw5zmqDpc1NvtlL2riS1C7JNJZ6sfnHp7rsGUfLWzk6kyZFN IW6Bkg2+Y9qhX8jG9/C6O8ERnH4l3R2NfiFDqdDM= 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-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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744610560799241240?= X-GMAIL-MSGID: =?utf-8?q?1744610560799241240?= 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.