Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Make gdb::span handle nullptr like std::span
Date: Sun, 22 Nov 2026 16:30:48 -0700	[thread overview]
Message-ID: <87mrr0qw9j.fsf@tromey.com> (raw)
In-Reply-To: <20261122054124.3738131-1-tom@tromey.com> (Tom Tromey's message of "Sat, 21 Nov 2026 22:41:24 -0700")

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> I regression tested this (1) with '-std=c++20 -D_GLIBCXX_DEBUG
Tom> -D_GLIBCXX_DEBUG_PEDANTIC', and (2) with an ordinary build but with a
Tom> version of this patch where the asserts were unconditional.

Tom> +#if defined(_GLIBCXX_DEBUG)
Tom> +    gdb_assert (m_size != nullptr || m_size == 0);

This won't compile so I obviously botched the testing.
I'm redoing it now.

Tom

  parent reply	other threads:[~2026-11-22 23:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  5:41 Tom Tromey
2026-11-22  8:08 ` Andrew Burgess
2026-11-22 17:03   ` Tom Tromey
2026-11-22 23:25     ` Andrew Burgess
2026-11-22 23:30 ` Tom Tromey [this message]
2026-11-23 16:57   ` Tom Tromey

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=87mrr0qw9j.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /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