]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: create: DTD addition and deletion; ctf_rollback
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 15:11:53 +0000 (16:11 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:42 +0000 (18:07 +0100)
commitd5bb2772c6daa71d289b0ab2ff4a5b5e086eb63f
tree0e3af213163093739c8a28a9d74ed9319f3c8e8a
parent05a2970ad1e49be050a5e8ec4b7e0acac9b54b4e
libctf: create: DTD addition and deletion; ctf_rollback

DTD deletion changes mostly relate to the changes to the ctf_dtdef_t, but
also we no longer nede to have special handling for forwards (we can just
use ctf_type_kind_forwarded like everyone else).

Rollback no longer needs to delete things by hand (it hasn't needed to for
years): it can just call ctf_dtd_delete.

ctf_add_generic changes substantially, mostly to allow for the ctf_dtdef_t
changes.  Rather than returning a type ID it now returns the DTD it just
allocated: it can also be asked to add some prefixes, and return the first
prefix added (which may not be the first prefix in the type, because if it
is asked to add a non-root-visible type it will additionally allocate a
CTF_K_CONFLICTING prefix to encode that).

Finally, duplicate name detection is suppressed for type and decl tags.
libctf/ctf-create.c