From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] Rewrite the Ada lexer
Date: Wed, 18 Nov 2026 12:03:26 +0100 [thread overview]
Message-ID: <9c5cd91f-3f8d-45ea-acde-4072534a4924@suse.de> (raw)
In-Reply-To: <20261117191854.2893194-1-tromey@adacore.com>
On 11/17/26 8:18 PM, Tom Tromey wrote:
> Recently a series landed that changed how the Ada lexer was built. In
> particular, commit d3d68d79 ("gdb: let the parser and lexer generators
> prefix their symbols") changed gdb to require a newer version of flex.
>
Hi Tom,
I'm wondering about the specifics here. My understanding is that the
relevant change in the commit is using -P, and though -P<prefix> is
supported since 2.4.1, -P<space><prefix> is supported since 2.5.6.
OTOH, another commit added --header-file= which is supported starting
2.5.19, which was a "development snapshot" release, so the first "real"
release version supporting this was 2.5.31.
> Unfortunately, this version of flex is reported as being difficult to
> build with mingw; and this change broke all the Windows-hosted builds
> at AdaCore.
>
I ran into a gdb build failure on cygwin myself, due to using flex
2.6.11. I submitted a patch for this (
https://sourceware.org/pipermail/gdb-patches/2026-November/231979.html )
for the purpose of backporting to release branches, but on trunk your
approach of avoiding the flex dependency will also fix that PR.
Thanks,
- Tom
> Rather than try to puzzle out the flex build, I decided to rewrite the
> lexer to avoid the flex dependency. This patch is the result. I
> tried for a fairly minimal transition, so some oddities are preserved.
> Further cleanups are possible (I have a few I will send later).
next prev parent reply other threads:[~2026-11-18 11:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 19:18 Tom Tromey
2026-11-18 11:03 ` Tom de Vries [this message]
2026-11-18 15:58 ` Tom Tromey
2026-11-19 5:00 ` Simon Marchi
2026-11-19 16:59 ` Tom Tromey
2026-11-19 17:31 ` 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=9c5cd91f-3f8d-45ea-acde-4072534a4924@suse.de \
--to=tdevries@suse.de \
--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