]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: do not deduplicate strings in the header
authorNick Alcock <nick.alcock@oracle.com>
Mon, 15 Jul 2024 21:08:10 +0000 (22:08 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 30 Oct 2025 14:17:51 +0000 (14:17 +0000)
commit9dd81f14b3574ef188f05a5e16b20013fee3fb39
tree6802b81323dbe92347145956f115d659d8c9ee3f
parentcbeb2732ee1a71a87899dfad35a2bc58ddad9993
libctf: do not deduplicate strings in the header

It is unreasonable to expect users to ctf_import the parent before being
able to understand the header -- doubly so because the only string in the
header which is likely to be deduplicable is the parent name, which is the
same in every child, yet without the parent name being *available* in the
child's strtab you cannot call ctf_parent_name to figure out which parent
to import!

libctf/
* ctf-serialize.c (ctf_preserialize): Prevent deduplication of header string
        fields.
* ctf-open.c (ctf_set_base): Note this.
* ctf-string.c (ctf_str_free_atom): Likewise.
libctf/ctf-open.c
libctf/ctf-serialize.c
libctf/ctf-string.c