]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf, create, types: encoding, BTF floats
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 16:28:34 +0000 (17:28 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:42 +0000 (18:07 +0100)
commit2c1a0a70d14a5e26acd9a3bafcd40845d1cabf4f
treef5b17cd119c0fd620d7fa6877856d69b2297aeae
parent03609073b080074129441905fa70da93817c4d25
libctf, create, types: encoding, BTF floats

This adds support for the nearly useless BTF_KIND_FLOAT, under the name
CTF_K_BTF_FLOAT.  At the same time we fix up the ctf_add_encoding and
ctf_type_encoding machinery for the new API changes.

I expect this to change a bit: Ali Bahrami reckons I've oversimplified the
CTFv4 encoding representation and need to reintroduce at least a width.

New API:

ctf_id_t ctf_add_btf_float (ctf_dict_t *, uint32_t,
                            const char *, const ctf_encoding_t *);
include/ctf-api.h
libctf/ctf-create.c
libctf/ctf-types.c
libctf/libctf.ver