From: Tom Tromey <tom@tromey.com>
To: Hannes Domani <ssbssa@yahoo.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 6/8] Windows gdb: Get available XState features
Date: Fri, 21 Aug 2026 12:37:23 -0600 [thread overview]
Message-ID: <87bjavpbfg.fsf@tromey.com> (raw)
In-Reply-To: <20260727174619.1089041-6-ssbssa@yahoo.de> (Hannes Domani's message of "Mon, 27 Jul 2026 19:42:30 +0200")
>>>>> "Hannes" == Hannes Domani <ssbssa@yahoo.de> writes:
Hannes> Also prepares the thread context for the additional registers.
SOme minor nits.
Hannes> + CONTEXT *context = nullptr;
Hannes> + if (!InitializeContext (th->context_buffer.get (),
Hannes> + context_flags, &context, &xstate_size))
Hannes> + error ("InitializeContext failure %lu\n", GetLastError ());
How about throw_winerror_with_name instead?
Hannes> +#if defined __i386__ || defined __x86_64__
Hannes> + if (GetEnabledXStateFeatures != nullptr
Hannes> + && InitializeContext != nullptr
Hannes> + && GetXStateFeaturesMask != nullptr
Hannes> + && SetXStateFeaturesMask != nullptr
Hannes> + && LocateXStateFeature != nullptr
Hannes> +#ifdef __x86_64__
Hannes> + && RtlGetExtendedFeaturesMask != nullptr
Hannes> + && RtlSetExtendedFeaturesMask != nullptr
Hannes> + && RtlLocateExtendedFeature != nullptr
Hannes> +#endif
Hannes> + )
Hannes> + {
Hannes> + /* Available XState features masked with implemented features. */
Hannes> + xstate_features = GetEnabledXStateFeatures ()
Hannes> + & (X86_XSTATE_AVX_AVX512_MASK | X86_XSTATE_CET_U);
Formatting is off here, maybe parenthesize the RHS.
Tom
next prev parent reply other threads:[~2026-08-21 18:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260727174619.1089041-1-ssbssa.ref@yahoo.de>
2026-07-27 17:42 ` [PATCH v2 1/8] gdb/testsuite: Add Windows replacement for aligned_alloc Hannes Domani
2026-07-27 17:42 ` [PATCH v2 2/8] Windows gdb: Use allocated buffer for CONTEXT Hannes Domani
2026-08-21 18:03 ` Tom Tromey
2026-08-21 18:37 ` Hannes Domani
2026-08-22 1:14 ` Tom Tromey
2026-07-27 17:42 ` [PATCH v2 3/8] Windows gdb: Remove mappings member from windows_per_inferior Hannes Domani
2026-08-21 18:06 ` Tom Tromey
2026-07-27 17:42 ` [PATCH v2 4/8] Windows gdb: Refactor getting pointer to register inside context Hannes Domani
2026-08-21 18:27 ` Tom Tromey
2026-07-27 17:42 ` [PATCH v2 5/8] Windows gdb: Prepare XState functions Hannes Domani
2026-08-21 18:22 ` Tom Tromey
2026-07-27 17:42 ` [PATCH v2 6/8] Windows gdb: Get available XState features Hannes Domani
2026-08-21 18:37 ` Tom Tromey [this message]
2026-07-27 17:42 ` [PATCH v2 7/8] Windows gdb: Implement XState (Intel AVX) support Hannes Domani
2026-08-10 17:25 ` Hannes Domani
2026-08-13 6:39 ` Joos, Christina
2026-08-26 14:28 ` Joos, Christina
2026-08-26 15:20 ` Hannes Domani
2026-08-27 10:42 ` Joos, Christina
2026-08-27 14:20 ` Hannes Domani
2026-08-27 15:17 ` Joos, Christina
2026-08-27 16:05 ` Hannes Domani
2026-08-27 16:30 ` Joos, Christina
2026-07-27 17:42 ` [PATCH v2 8/8] Windows gdbserver: " Hannes Domani
2026-08-12 22:00 ` [PATCH v2 1/8] gdb/testsuite: Add Windows replacement for aligned_alloc Luis
2026-08-12 22:08 ` Hannes Domani
2026-08-21 17:56 ` 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=87bjavpbfg.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
/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