Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Andrew Burgess <aburgess@redhat.com>
Cc: Tom Tromey <tom@tromey.com>,  gdb-patches@sourceware.org
Subject: Re: [PATCH] Make gdb::span handle nullptr like std::span
Date: Sun, 22 Nov 2026 10:03:44 -0700	[thread overview]
Message-ID: <87qzgcre6n.fsf@tromey.com> (raw)
In-Reply-To: <xhuyfa4n1l23t.fsf@aburgess-thinkpadp1gen8.rmtgb.csb> (Andrew Burgess's message of "Sun, 22 Nov 2026 08:08:54 +0000")

>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:

Andrew> I don't see any benefit of wrapping these in _GLIBCXX_DEBUG.  Sure it
Andrew> means we match the std::span behaviour, but all that really means is
Andrew> that we fail to spot undefined behaviour, which isn't a good thing.

Andrew> I'd prefer these were just unwrapped gdb_assert(...) calls.

Andrew> But if you feel strongly about it then I'm not trying to block this fix.

I only did it because it's what is already done in the file, and because
in the past we've had discussions about how certain asserts slow things
down.

I don't mind removing the #ifs at all.

Andrew> I think you should just go ahead and merge your patch:

Actually I think you should push yours & I will rebase on top of those.

Tom

  reply	other threads:[~2026-11-22 17:04 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 [this message]
2026-11-22 23:25     ` Andrew Burgess
2026-11-22 23:30 ` Tom Tromey
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=87qzgcre6n.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=aburgess@redhat.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