Re: [PATCH v3 5/8] gdbserver: Transmit target description ID in thread list and stop reply

Simon Marchi via Gdb-patches
2023-02-03T12:50:44Z

> Are you considering an encoded block of data that gdbserver sends to gdb, which in turn unpacks it on its end and use it to compute a target description?
>
> Something along the lines of gdb/arch/aarch64.h:"struct aarch64_features" and how we encode features through bits?

No, I imagine a hash being transmitted as a hex string, much like git
commit sha1s or build-ids. Imagine passing the XML file through
sha256sum and sending that as a fingerprint for the tdesc. Except that
an actual implementation could be smarter and hash the contents of the
XML in some way so that the particular (meaningless) formatting of the
XML doesn't change the hash (but that's an implementation detail).

Simon