Message ID | 0227a2ef-9efa-6bb2-6529-cb38d081f8be@gmail.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp299740wrt; Thu, 22 Sep 2022 10:07:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59vYl7wrD8NaM3vHMaUTnIUFOB0yw4Sd0xqzAKJ+YbQe/Nv+fIXW9bJXiK37dlq6ke9eyW X-Received: by 2002:a17:907:a058:b0:77d:6211:5735 with SMTP id gz24-20020a170907a05800b0077d62115735mr3681963ejc.87.1663866444290; Thu, 22 Sep 2022 10:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663866444; cv=none; d=google.com; s=arc-20160816; b=C/oe9+lUC6pW1Dim2RGQKAaLCuLDgLvdfoNJ5xH3+DwKTLIrj9wQ9zwyDRD9pnnIXV GeYiCsXGSwIe6bMOxgE+YyNhAY3ECtGDCG4Cvy0lwTS6kWerofuZ3knRFXcRQMRgZnqb 4EgkOoQvfqOHN8giEwWk6q5RD9AKOJXRJZ/tlrBVrP6HHqp7oQh7hJ8mvgEV5iQvReJk 8J1z+lPm3HPut7jteRlwdhP5eqpmGzPHj+/lM/EqLPVYZhRIGzarp2HQSbjoVmj8S5bR BSmY1645yCGg+3IkKjGiOrJxp5cEP7Vh7PVx7OhcgiglAvzTaCq/NWBRNAh1f/H3VCVB nUWg== 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=IRqWm/J1LO+tlNeQ8grCFDN7Rhds250vKgp1Xfbo3C8=; b=PhXdOEXQ0m7UBWyrWpeVxUvjDi6TSAEm8bapd+O8MWW+EF1PCHGLlEBEIkKrQ4EwM7 cBf/iCmJSvhOL+5ztHjqOEgwFcmvyAPIS+llW8JvEPy2IJiLZKgYl1y03vIwSca3SxNB ayDnxQ9yCqImLX6XhK8pXloPohrw1jZcHCrch3VI2okqEeXKkNGZbOiblAKeo63hP3Te y3EIptW94s9EzU3Rkxwn90CrQw4dtUVAERSmY2b04oOSBsd7BX+cIE1l7W0Sg1e/10e9 6pn2GPivSXIe9Rdr/2INXkKhfjbTSS1gremqAhP20ZK9tdd5qKdqm6w7QzxNn/EIQef6 Tyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=k2ULodap; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dt12-20020a170907728c00b0073083c63edcsi6806115ejc.306.2022.09.22.10.07.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 10:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=k2ULodap; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 61A583857407 for <ouuuleilei@gmail.com>; Thu, 22 Sep 2022 17:07:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61A583857407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663866426; bh=IRqWm/J1LO+tlNeQ8grCFDN7Rhds250vKgp1Xfbo3C8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=k2ULodapsk5rwBVxp3LjpFnzwg4EPKpUOQ+Loc9qav6h81DWEjgkJfNXdxXTK+37l ExZKf5d0WzDq6/T6pOskkKVIvoHHXevUlXTGqy8hnSkxe85ezpHj9bMzd5IR72I60+ Y2z45cwDLgZSKs8RKgPyCnCat/XjU5Bh9p4T+AOI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 2D18F3858D38; Thu, 22 Sep 2022 17:06:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2D18F3858D38 Received: by mail-ej1-x635.google.com with SMTP id y3so22523335ejc.1; Thu, 22 Sep 2022 10:06:23 -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=IRqWm/J1LO+tlNeQ8grCFDN7Rhds250vKgp1Xfbo3C8=; b=VUvajNtso1qC2KObFexO8qHorH++DwdL5csATeNODA1q4ZW9++56YMylPuQgI32LSb yKpZelDCmWdwKh7bBQneYe9YCLagMt+CYdTXG21z9AE3SQ1PZ6hhQN1rw0ksnhpcYU72 8+t6fj8DOg8BOdYUrqYEdEmhv4J/SeeCN6m6J0ows/OLdy+Om5eAjJhWW1hhJnf6YMjw 7mxURZGZnQ+rE1s+rlwnV1pUsZUgTc9YzYGzzoX4y6FLN7Rd5/j4Lm7ClDd0j3oU9eu5 izw59cLqD09/zY/NZ6mrhYL34U4/sw7nQuOgau56vT59TdVPJN3IiiYcp6Cw+RlV9gmk Vukw== X-Gm-Message-State: ACrzQf1pKIzipRXXCvOCZVDNGL4RpPEe98noR3XGZB9v5Xls+FNRzlgH ayMhiDjI4vE5LEggY6ybKhzC62VMZL4= X-Received: by 2002:a17:907:5c2:b0:77e:def7:65d8 with SMTP id wg2-20020a17090705c200b0077edef765d8mr3720192ejb.487.1663866381332; Thu, 22 Sep 2022 10:06:21 -0700 (PDT) Received: from [10.56.1.33] ([109.190.253.15]) by smtp.googlemail.com with ESMTPSA id ci2-20020a170906c34200b0073d796a1043sm2836346ejb.123.2022.09.22.10.06.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 10:06:20 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------h17o0gDgTWoMEeoKCYLxxtkF" Message-ID: <0227a2ef-9efa-6bb2-6529-cb38d081f8be@gmail.com> Date: Thu, 22 Sep 2022 19:06:16 +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" <libstdc++@gcc.gnu.org> Subject: [PATCH][_GLIBCXX_DEBUG][_GLIBCXX_INLINE_VERSION] Add missing printers X-Spam-Status: No, score=-7.7 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_BARRACUDACENTRAL, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= <frs.dumont@gmail.com> Cc: gcc-patches <gcc-patches@gcc.gnu.org> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744690420502382705?= X-GMAIL-MSGID: =?utf-8?q?1744690420502382705?= |
Series |
[_GLIBCXX_DEBUG,_GLIBCXX_INLINE_VERSION] Add missing printers
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patches-check | success | Github commit url |
Commit Message
François Dumont
Sept. 22, 2022, 5:06 p.m. UTC
Hi This patch fix failures when _GLIBCXX_INLINE_VERSION mode and running: make check-debug RUNTESTFLAGS=prettyprinters.exp libstdc++: [_GLIBCXX_INLINE_VERSION] Add gdb pretty print for _GLIBCXX_DEBUG In _GLIBCXX_DEBUG mode containers are in std::__debug namespace but not template parameters. In _GLIBCXX_INLINE_VERSION mode most types are in std::__8 namespace but not std::__debug containers. We need to register specific type printers for this combination. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (add_one_template_type_printer): Register printer for types in std::__debug namespace with template parameters in std::__8 namespace. Ok to commit ? François
Comments
On Thu, 22 Sept 2022 at 18:06, François Dumont via Libstdc++ <libstdc++@gcc.gnu.org> wrote: > > Hi > > This patch fix failures when _GLIBCXX_INLINE_VERSION mode and running: > > make check-debug RUNTESTFLAGS=prettyprinters.exp > > libstdc++: [_GLIBCXX_INLINE_VERSION] Add gdb pretty print for > _GLIBCXX_DEBUG > > In _GLIBCXX_DEBUG mode containers are in std::__debug namespace but > not template > parameters. In _GLIBCXX_INLINE_VERSION mode most types are in > std::__8 namespace but > not std::__debug containers. We need to register specific type > printers for this > combination. > > libstdc++-v3/ChangeLog: > > * python/libstdcxx/v6/printers.py > (add_one_template_type_printer): Register > printer for types in std::__debug namespace with template > parameters in std::__8 > namespace. > > Ok to commit ? OK, thanks.
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 24a6462e496..1e9d0627e9f 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -2036,6 +2036,10 @@ def add_one_template_type_printer(obj, name, defargs): printer = TemplateTypePrinter(ns+name, defargs) gdb.types.register_type_printer(obj, printer) + # Add type printer for same type in debug namespace: + printer = TemplateTypePrinter('std::__debug::'+name, defargs) + gdb.types.register_type_printer(obj, printer) + class FilteringTypePrinter(object): r""" A type printer that uses typedef names for common template specializations.