From: Tom Tromey <tromey@adacore.com>
To: Nikita.Venkatesh@arm.com
Cc: gdb-patches@sourceware.org, nd@arm.com
Subject: Re: [PATCH] Default to Vista APIs (0x0600) when _WIN32_WINNT is undefined
Date: Thu, 19 Nov 2026 13:49:44 -0700 [thread overview]
Message-ID: <87y0aoy2af.fsf@tromey.com> (raw)
In-Reply-To: <20261119175605.3837218-1-Nikita.Venkatesh@arm.com> (Nikita Venkatesh's message of "Thu, 19 Nov 2026 17:56:05 +0000")
>>>>> Nikita Venkatesh <Nikita.Venkatesh@arm.com> writes:
> GCC13 added win32 C++11 threading support that requires
> Windows Vista (0x0600) condition variable APIs. GDB's
> XP default hides the required declarations, causing
> GDB compilation to fail.
> With --enable-threading, configure stops with an error. With automatic
> detection, configure disables GDB threading, but compilation later
> fails because other libstdc++ headers still require those declarations.
> The following discussions were considered:
> https://sourceware.org/pipermail/gdb/2022-November/050448.html
> https://sourceware.org/pipermail/gdb-patches/2024-May/209176.html
Please read:
https://sourceware.org/pipermail/gdb-patches/2021-October/182443.html
That note is the reason the code is this way.
Locally at AdaCore we just patch this to use 0x0602, since we don't need
XP support.
So while I'm sympathetic to your patch, it's hard to see how we would
ever land it.
Supposedly you can get this same effect by configuring with
CXXFLAGS='-D...' but I have not ever tried this.
I feel like we discussed an idea of trying to include the relevant
headers and, if this fails, disable threading. But TBH I don't know if
that's even desirable.
> Default to 0x0600 only when _WIN32_WINNT is undefined. Preserve the
> existing XP minimum for already defined and higher values.
This is a twist on the earlier approach but I'm not sure it's any more
acceptable.
Tom
next prev parent reply other threads:[~2026-11-19 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 17:56 Nikita.Venkatesh
2026-11-19 20:49 ` Tom Tromey [this message]
2026-11-20 7:23 ` Eli Zaretskii
2026-11-25 16:48 ` [PATCH v2] Default to Vista APIs for MinGW-w64 when no version is selected Nikita.Venkatesh
2026-11-25 17:36 ` Eli Zaretskii
2026-11-26 16:53 ` [PATCH v3] " Nikita.Venkatesh
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=87y0aoy2af.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=Nikita.Venkatesh@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=nd@arm.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