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

Tom Tromey
2023-02-10T15:04:40Z

Luis> But it is also a larger effort that has to revamp some things in
Luis> gdb's type system to allow for sizeless types, and that also has
Luis> implications in other areas of gdb.

I doubt I understand the problem here, but we do have dynamic types and
dynamic type resolution now. This lets you express a type's size,
offsets of members, and even fields (via variant parts) by referring to
other members of the object.

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.)

Tom