From patchwork Thu Sep 28 17:46:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 14673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3490405vqu; Thu, 28 Sep 2023 10:48:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFc8QKEmRqxYHqfPzyl+144qnvci3E6M9o/5dP01rJYvQAZwkMsSO0X2ePOyn7b/ReD8TSf X-Received: by 2002:a17:906:10cc:b0:9ae:56ad:65a7 with SMTP id v12-20020a17090610cc00b009ae56ad65a7mr2232866ejv.45.1695923308631; Thu, 28 Sep 2023 10:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695923308; cv=none; d=google.com; s=arc-20160816; b=vCuUJQlf3aS5EgsHfn3+j0n65+3vXyD9ElKP7UhaNADjqdvAD7qtH2o56JrVFT5LRz 5k63NzeCSuchZRU3wvobieQCuQX0zCnNK8i2u0ayF7M1y/4JgveC6RdM6GPe0bDUpbR+ YG1I7AaUWXccoYL33gjjZRX+l8kWwSFViWv2xP/sFIhIljEN+rzpG/TFlQQqVm7uZXUa b2XxUcNmKUf466MyZZ1OnNTfJHQsfpGls/iCkwpPOzSdKcqk9q+I5XMA/ojHb6qnDsgd Id3EV1QDTyperbLxkWXfq/d9CfE65stk1b+8dESX/CxmR9ntdMZQ9DMtBpaEW/OVCVI6 7Kjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=0awBSsvcsaB+f1cVPWa3wpjmOxoR9SCdKDRCE2VQJBk=; fh=tWtX2nBowArQFpO5tL5gtY10/+xKa8dUFoy2HZVoc4M=; b=ojeyCCBl+9lZ1DcZQHsaL4RiscCSIz/54KOg4AQsHjuLUNrZJIXSBu9oJ3faP613BN mpybVIO4b403tKSAltwNYKdLrnNze8OqI2CZELLex6HYoJAwzYxO1V/uE7rgoMz4tWVQ IqaVesNAL0qmZvVs1GvUtHzgzfxHEwuyQefLQEtv9M3C8jJQA+y6Ej7oXakPi0/em1w7 lmQjKHlz0Bae4njEOLOYnKa/yS7JfJnACgPP1o9jKwcz6mohY0uBKBN7GpWB7CveUMq7 jGya7f3w1bZBsGSk6r9+HjHDYCLR/xE/oQgMjsaoUcHD+odsr5kogmp/LJEfLcLZqdmD FDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=AViBGVoB; 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=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gs16-20020a170906f19000b0099bbff8672fsi15821811ejb.696.2023.09.28.10.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:48:28 -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=@adacore.com header.s=google header.b=AViBGVoB; 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=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB3883882647 for ; Thu, 28 Sep 2023 17:47:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 837B23858C52 for ; Thu, 28 Sep 2023 17:46:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 837B23858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-351367c8fcdso27567435ab.3 for ; Thu, 28 Sep 2023 10:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1695923201; x=1696528001; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0awBSsvcsaB+f1cVPWa3wpjmOxoR9SCdKDRCE2VQJBk=; b=AViBGVoBHXTBthPUkXwHxRvPtTw+ixUwsvVkmqzfuW3YSjg2OPC5YL4t/okztTiV74 4Pf9S6uwDc0pAGCHQM9OFFC7WmyerVyGHSGCIqx5dEza8FIJIa3y2QuJ4/ZVLkMb3VFr GqN5WNoVo+2l2zDY11cdsCfHAOVUMZbGNFslo0/VOLKvGJhzujAimuFGMrkYfDtZ+1oB ILjDZl0Hy/sBT1SkJNx8DwymZByPCGKzOzkdCcBI2VXpbCgqQg+mXTqPq7YQaazADlhI 2z0IPxiIvp7jON5V2asbbuPzLCaR/Gjpp5KH1DzdMlB73ik3Ew5axUVhNp7UO7CY3dXf k2Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695923201; x=1696528001; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0awBSsvcsaB+f1cVPWa3wpjmOxoR9SCdKDRCE2VQJBk=; b=sXVpZPBa+1/d0qb/WDS7MVBlyAV/BQmhWIJLjGdzbanKTrC8ddR0XUGb9BgdAxcVxd OtcmMhh+XVL6bR1ReCDPBtQmoFfkOvLW7oR6o8xvJk+DHE96lm50tuhOBPOcGdI1mDJi vfp1knPxD0OD9h8G6tZQKfPQWof7JqIdU6+w85RNqYA8tqEIW+Xx7pH98fOuQlEIBziX XUCnfX8K199E/DAv6EfhVIBO2ofAqcR2Q5Z+I64zJXH2bJ/0M/jrExKHzdsgdVjM3/Ek t50sBjTn54ao7uyYywjJtVKtt7PomWaHSQlK5PhCPIgK2A+8wynTQQKbSMf0qiNJVP0O f/jg== X-Gm-Message-State: AOJu0Yy5yW9lr8pVSl0bF48wzVwGJwbUa9PG544TcfNZb1xig0cEBAxc A/uvAZ1JzD9LG1o6AJFn4JC/e3+nL5PbY9z7PiUovQ== X-Received: by 2002:a05:6e02:110f:b0:350:f42f:8bd3 with SMTP id u15-20020a056e02110f00b00350f42f8bd3mr1553638ilk.12.1695923200877; Thu, 28 Sep 2023 10:46:40 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id p6-20020a92d486000000b0034fc8c1c24fsm3450963ilg.54.2023.09.28.10.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:46:40 -0700 (PDT) From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH 0/7] libstdc++: Use gdb.ValuePrinter in pretty-printers Date: Thu, 28 Sep 2023 11:46:23 -0600 Message-Id: <20230928174630.4004388-1-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778304479321789544 X-GMAIL-MSGID: 1778304479321789544 GDB 14 will include a gdb.ValuePrinter tag class that can be used by pretty-printers to signal they will accept any extensions that GDB happens to make over time. This series started as an attempt to change the libstdc++ printers to support this. This just involves renaming a bunch of attributes. There aren't many interesting GDB API additions yet (and I didn't implement the new ones in libstdc++ yet anyway), but seeing as these are the flagship pretty-printers, it seemed worthwhile to do. I added patch 1 when debugging the changes; then proceeded to fix a bunch of small issues that were pointed out by flake8. Tested on x86-64 Fedora 36. Let me know what you think. Tom