Re: [PATCH v3 4/8] gdbserver/linux-aarch64: When thread stops, update its target description

Simon Marchi via Gdb-patches
2023-02-10T21:02:09Z

On 2/10/23 12:26, Thiago Jung Bauermann via Gdb-patches wrote:
>
> Tom Tromey <tom@tromey.com> writes:
>
>> Luis> I'd be happy with an intermediate solution like what Thiago put
>> Luis> together. It would solve a long-standing issue for SVE and
>> Luis> gdbserver and it seems simpler at this point, plus Thiago already
>> Luis> put the effort to write the code.
>>
>> I haven't followed this discussion, but with the remote protocol,
>> whatever we do now will be baked in forever. So, it's worth spending
>> extra time up front to get a really solid approach. (I'm not saying
>> this isn't, just pointing out that there's a long-term cost.)
>
> Andrew recommended adding a new feature to the qSupported packet so it
> would be an optional extension of the remote protocol — not really baked
> into it but rather a complementary muffin.
>
> Per-thread target descriptions are also a very generic feature that
> I can see being useful for heterogeneous computers, though I don't know
> if there's any actual interest in that in the context of GDB and the
> remote protocol.

Maybe Pedro will correct me but... for ROCm, it's possible we'll want to
support remote debugging in the future. And our model is a mix of host
and GPU threads in a single inferior. So I can see this feature being
useful for that.

Simon