From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id vq24E7Ey+Wqgog4AWB0awg (envelope-from ) for ; Sat, 14 Nov 2026 23:18:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794716337; bh=xt23B4LDHzkvjSiZax0pLubDj9UMNUe0AvFEOyDU1C4=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=eVillekRWnh0QQS6rE4hmvoAnLwRnMk9aoU/5Zp1zWKxU+X2GGshvZCMB9Nu6ML6q MhkDSFl3ojLufLUUO6EfkMonco0KCJPTfVkCBTQQyF48GdInI/u8YcpfitfEbznuoG gStI1RsfA+Lx6bpL9/AfkR6PZjQXu1WucwBmvBQ4= Received: by simark.ca (Postfix, from userid 112) id 375C91E0BC; Sat, 14 Nov 2026 23:18:57 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=jrjPS/BN; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AE9401E043 for ; Sat, 14 Nov 2026 23:18:56 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A21984BA9009 for ; Sun, 15 Nov 2026 04:18:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A21984BA9009 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=jrjPS/BN Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id A63684BA2E3B for ; Sun, 15 Nov 2026 04:18:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A63684BA2E3B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A63684BA2E3B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794716311; cv=none; b=WMBTV8Df8OyvHsZkVeztdD1kER2jVXWYl74WvmOOIPnpElsl8hytJrPvES9FYiMYQ6FFOcSdWDSxlTZvbIqNRDr6L74qtyHrIGnkxBYjrfDWxhsw9ALAsFxE/c2AAKKZ8SvcEY4cXwpSq2rcb1G5tK97FfKSkfLT2NE23nAweS4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794716311; c=relaxed/simple; bh=xt23B4LDHzkvjSiZax0pLubDj9UMNUe0AvFEOyDU1C4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=OhP9CmIBFSY+t/4XODfyUVwo9Sz7A5lgPO0RggwctySPz4FlytrNPioafYZh3sIPaF1yYD3x3HErtEAvFBNGuXGq/GgZzZgvK2LsS8pk0yxocfTpQ+fFwaNAmysGDmffWqVSSu7J08/YZO8lMNcJTsVcjBMVwcUS/jwMvchy9SQ= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=jrjPS/BN DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A63684BA2E3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794716311; bh=xt23B4LDHzkvjSiZax0pLubDj9UMNUe0AvFEOyDU1C4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=jrjPS/BNSvjSkdlwyZ+/R/oPciIS+krzoH9xJkSwDhv37rGsvUIgySK/V/4Tfbrtr 0w2t8QwHA+k9EinMAyx97sLclhzJ2JluQ3kSnfVRj7TDQ5gNHLXwpCtXpoOqUrDIyM x4lVGqxmusIKi71tTI2sXBzyCnh4zeLdPsrOD6H4= Received: by simark.ca (Postfix) id 260D31E043; Sat, 14 Nov 2026 23:18:31 -0500 (EST) Message-ID: <543e538c-a823-4cd7-a207-0a5ff7ec59b6@simark.ca> Date: Sat, 14 Nov 2026 23:18:30 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 02/15] Rename gdb::array_view to gdb::span To: Tom Tromey , gdb-patches@sourceware.org References: <20261111-span-part-1-v2-0-cd4e33a8a723@adacore.com> <20261111-span-part-1-v2-2-cd4e33a8a723@adacore.com> Content-Language: en-US From: Simon Marchi In-Reply-To: <20261111-span-part-1-v2-2-cd4e33a8a723@adacore.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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~public-inbox=simark.ca@sourceware.org On 2026-11-11 10:58, Tom Tromey wrote: > This rename gdb::array_view to gdb::span. The long term idea here is > to eventually use the C++20 std::span. > > This rename was mostly done by a perl script. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31422 Need to run ./make-target-delegates.py and rename the target-debug.h function too. If you search for "array view" or "array_view" at the end of the series, you could spot a few comments mentioning array view that I think could be switched to say span in this patch. Another patch on top of this series could rename gdb_argv::as_array_view. With that, I think there will be no more "array view" references. > diff --git a/gdbsupport/span.h b/gdbsupport/span.h > index 9708020b06a..41f4f0625ee 100644 > --- a/gdbsupport/span.h > +++ b/gdbsupport/span.h > @@ -23,14 +23,14 @@ > #include > #include "gdbsupport/gdb_assert.h" > > -/* An array_view is an abstraction that provides a non-owning view > +/* An span is an abstraction that provides a non-owning view "An span" -> "A span" Simon