From patchwork Mon Oct 16 23:02:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 56244 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4EC8E3858298 for ; Mon, 16 Oct 2023 23:05:48 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 2B5683858D33 for ; Mon, 16 Oct 2023 23:05:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B5683858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2B5683858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697497532; cv=none; b=PUuj97aJ3OuI/c7HXAlBXzSBY3nA9BZFPieGiBbLv6Esi1HHTC9J75ucOB37v4bNGOIimPmCJh8YsjqRZpIxlNwa95RxGR8mBEAq9WSm/xkBGHVR+OYbpqCdcG3q9mAxYI9FGSib+ESTA0pOPhMGfXqgf87XiAfbcOQsVaxn/oM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697497532; c=relaxed/simple; bh=/xmKi3R4mpUrag1p9CICq7fCNBu7jjx9trHg+8BaV24=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sC8uP6+KAOVbqsh8dCL4IpodKEPmYcCtlbidJOR7OH7NLZgybCYEB5dg4l7qqiyPEDvM0rjghbXrEqtpMqrWHS+yUfsHyU2yfviKS7bwRIEIUk6SLvHIQDs/CnJuJNigHO0jVXCtBtPX9gUo1jwzSaJM2n0juVsVzV0q6Eycu18= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTPS id sWYxqnSqPq5JYsWePqP1yH; Mon, 16 Oct 2023 23:05:29 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id sWeOqGm5qNLc5sWePq4Nfj; Mon, 16 Oct 2023 23:05:29 +0000 X-Authority-Analysis: v=2.4 cv=LfMvVxTi c=1 sm=1 tr=0 ts=652dc1b9 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=bhdUkHdE2iEA:10 a=Qbun_eYptAEA:10 a=fa8CjiaG9SThT2ek0HYA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PTOa/3gpLYwoeGgpdYjtYqLT71JNoS0B8niC52O+Eq0=; b=Osl4Xgb6BEK4HnaHngHv7d1m8u zma+nCacv/SfS7b6Y060jj9iTzeaZNX1ilnqQnxByuIlnD+oeUCphvrjys0H1evkVY+D0zz6efgtg a0dnkzAI6ytkhB+ZnXuFLfJwM; Received: from [161.98.8.3] (port=38490 helo=prentzel.ci.boulder.co.us) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qsWeO-003Maa-1p for gdb-patches@sourceware.org; Mon, 16 Oct 2023 17:05:28 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/7] More C++17 Updates Date: Mon, 16 Oct 2023 17:02:39 -0600 Message-ID: <20231016230527.1820819-1-tom@tromey.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 161.98.8.3 X-Source-L: No X-Exim-ID: 1qsWeO-003Maa-1p X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel.ci.boulder.co.us) [161.98.8.3]:38490 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAwK09PLC/EIVW4DIK+Pk5WsnUGhfbZXBmcYnfB0/up5v0yrhkNqrkXwIOryYV7RgQVk8aXJMMcREjkvZvanBp8/IjeOTbBzHAXB/Z4jBd5DThxUlj0g aOGt6C7Q9rc0EB4qJChUUK2dQODEukiW3Xw4SRdlRiro86cyWh0Z9ugDp6jUyQe0lo+tdi/WriDVNmrGOn2WNosdhZY1cgfVlxk= X-Spam-Status: No, score=-3018.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org This series is based on Lancelot's C++17 series. I found some more spots in gdb that could easily take advantage of C++17. I'm sure there are some more spots to be found. For example, I suspect try_embed can be used in more places than the one that was commented as such. I have another branch where I try to replace gdb::array_view with a C++20-compatible std::span. However, this one is a bit more invasive, so I thought I would leave it for a little later. Note that gdb doesn't currently build cleanly in C++20 mode (mostly but IIRC not entirely due to the use of 'volatile' in the Guile headers). Regression tested on x86-64 Fedora 38. Let me know what you think. Tom