public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: Tom Tromey <tom@tromey.com>,
	Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb/python: restrict the names accepted by gdb.register_window_type
Date: Thu, 22 Sep 2022 10:42:59 +0100	[thread overview]
Message-ID: <87h70zeod8.fsf@redhat.com> (raw)
In-Reply-To: <87wn9w4wm3.fsf@tromey.com>

Tom Tromey <tom@tromey.com> writes:

>>>>>> "Andrew" == Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Andrew> In the end I figured it might make sense to place some restrictive
> Andrew> rules in place, and then relax the rules later if/when users complain,
> Andrew> we can consider each relaxation as its requested.
>
> Andrew> So, I propose that window names should match this regular expression:
>
> Andrew>   [a-zA-Z][-_.a-zA-Z0-9]*
>
> Makes sense to me.
>
> Andrew> There is a chance that there is user code in the wild which will break
> Andrew> with the addition of this change, but hopefully adapting to the new
> Andrew> restrictions shouldn't be too difficult.
>
> It's possible but I wouldn't worry about it.
>
> This patch looks good to me.

Thanks, pushed.

Andrew


      reply	other threads:[~2022-09-22  9:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14 14:29 Andrew Burgess
2022-09-21 14:42 ` Tom Tromey
2022-09-22  9:42   ` Andrew Burgess [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=87h70zeod8.fsf@redhat.com \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).