Re: [PATCH v2 2/2] gdb: add warning when no native target is available

Guinevere Larsen
2026-01-09T14:27:26Z

On 1/9/26 11:16 AM, Ciaran Woodward wrote:
>> Hmmm, that's a good point. I think I can add a switch to this, to be
>> added to the gdbinit (or maybe gdbearlyinit), will cook a v3 in a moment.
> Would you object to making it configure-time, or would that break your
> intended use case?

I think making it configure-time would essentially render this change
useless

I can't imagine anyone distributing GDB without native support where the
distributor doesn't do it on purpose, so from their PoV it makes sense
to disable the warning. However, a user in a Mac using M-series CPUs
might not recognize or understand what they're reading, so this warning
would be important but disabled for them.

What I'm thinking is making -q suppress this warning, would that be
enough for you?

>
> Thanks,
> Ciaran
>

--
Cheers,
Guinevere Larsen
It/she