Re: [PATCH v3 0/8] gdbserver improvements for AArch64 SVE support

Simon Marchi via Gdb-patches
2023-02-07T13:50:39Z

>> Tangentially, I'm wondering if querying qXfer:features:read (mostly
>> fetching "target.xml" is going to become thread-sensitive. In other
>> words, if GDB set the general thread to a thread with vq == A, gets
>> target.xml, then sets the general thread to a thread with vq == B, then
>> gets target.xml, is it going to get two different target descriptions?
>> I think that it would make sense to do so *.
>
> I am not so sure about that making sense.
>
> As target.xml is documented as the main tdesc, it would continue that way,
> with "main" meaning the tdesc that the initial thread has when the process
> is first started.

My interpretation of the work "main" here was "top-level". At least, I
suppose that's what the original author meant, because I suppose it was
written assuming there's a single target description "tree" per process.
So there wouldn't need to be the need to differentiate "main" vs
"secondary".

Simon