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

Thiago Jung Bauermann via Gdb-patches
2023-02-10T17:26:56Z

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.

--
Thiago