diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-10-21 11:27:43 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-06-26 15:56:39 +0100 |
commit | fe4c2d55634c700ba527ac4183e05c66e9f93c62 (patch) | |
tree | 67eeb7d1fa76d860f2d2473eddc9c7f4533cc6c9 /include/ctf-api.h | |
parent | 094e34f22146ad53eb93da22e480cab428bd23b5 (diff) | |
download | binutils-fe4c2d55634c700ba527ac4183e05c66e9f93c62.zip binutils-fe4c2d55634c700ba527ac4183e05c66e9f93c62.tar.gz binutils-fe4c2d55634c700ba527ac4183e05c66e9f93c62.tar.bz2 |
libctf: create: non-root-visible types should not appear in name tables
We were accidentally interning newly-added and newly-opened
non-root-visible types into name tables, and removing names from name
tables when such types were removed. This is very wrong: the whole
point of non-root-visible types is they do not go in name tables and
cannot be looked up by name. This bug made non-root-visible types
basically identical to root-visible types, right back to the earliest
days of libctf in the Solaris era.
libctf/
* ctf-open.c (init_types): Only intern root-visible types.
* ctf-create.c (ctf_dtd_insert): Likewise.
(ctf_dtd_delete): Only remove root-visible types.
(ctf_rollback): Likewise.
(ctf_add_generic): Adjust.
(ctf_add_struct_sized): Adjust comment.
(ctf_add_union_sized): Likewise.
(ctf_add_enum): Likewise.
* ctf-impl.h (ctf_dtd_insert): Adjust prototype.
Diffstat (limited to 'include/ctf-api.h')
0 files changed, 0 insertions, 0 deletions