Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 0/4] Rename gdb::array_view to gdb::span
Date: Tue, 10 Nov 2026 15:29:21 -0500	[thread overview]
Message-ID: <362de3d1-1bfc-4424-a8ac-9bfd2a24d188@simark.ca> (raw)
In-Reply-To: <20261103-span-part-1-v1-0-133180dd43a5@adacore.com>

On 11/3/26 2:18 PM, Tom Tromey wrote:
> In the longer term, when gdb switches to C++20, I think we should
> replace gdb::array_view with std::span.
> 
> This series is a first step in that direction.  It renames
> gdb::array_view to gdb::span and makes a couple of other related
> changes.  It also removes the operator==, in favor of a
> standards-esque gdb::ranges::equal.
> 
> Note that this patch doesn't let gdb use the real std::span via an
> alias.  I have done that experiment before, but it required more
> extensive changes.  I thought it would be better to get the simpler
> changes in first.
> 
> Regression tested on x86-64 Fedora 43.
> 
> Signed-off-by: Tom Tromey <tromey@adacore.com>

I think this makes sense.  I sent a few comments, once those are
addressed I feel confident that you can push it.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon

      parent reply	other threads:[~2026-11-10 20:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 19:18 Tom Tromey
2026-11-03 19:18 ` [PATCH 1/4] Rename array_view files Tom Tromey
2026-11-10 20:07   ` Simon Marchi
2026-11-10 20:34     ` Tom Tromey
2026-11-10 20:37       ` Simon Marchi
2026-11-03 19:18 ` [PATCH 2/4] Rename gdb::array_view to gdb::span Tom Tromey
2026-11-03 19:18 ` [PATCH 3/4] Rename gdb::make_array_view to gdb::make_span Tom Tromey
2026-11-03 19:18 ` [PATCH 4/4] Remove operator== and operator!= from gdb::span Tom Tromey
2026-11-10 20:03   ` Simon Marchi
2026-11-10 20:28     ` Simon Marchi
2026-11-11 15:29       ` Tom Tromey
2026-11-11 15:46         ` Simon Marchi
2026-11-11 16:24           ` Tom Tromey
2026-11-11 16:30             ` Simon Marchi
2026-11-11 17:18               ` Tom Tromey
2026-11-11 17:19                 ` Tom Tromey
2026-11-04 14:22 ` [PATCH 0/4] Rename gdb::array_view to gdb::span Tom Tromey
2026-11-10 20:29 ` Simon Marchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=362de3d1-1bfc-4424-a8ac-9bfd2a24d188@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@adacore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox