diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-07-13 20:00:07 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-09-23 14:12:54 +0100 |
commit | 534c153947309dd8a8ae9f44887a045e22473e76 (patch) | |
tree | aca81cc3efea3f1659a7250c83a2edac3712fd13 /libctf/ctf-string.c | |
parent | ab39915041942a14604716d8325ba3d7f9290d4a (diff) | |
download | binutils-534c153947309dd8a8ae9f44887a045e22473e76.zip binutils-534c153947309dd8a8ae9f44887a045e22473e76.tar.gz binutils-534c153947309dd8a8ae9f44887a045e22473e76.tar.bz2 |
libctf: Add iteration over non-root types
The existing function ctf_type_iter lets you iterate over root-visible
types (types you can look up by name). There is no way to iterate over
non-root-visible types, which is troublesome because both the linker
and dumper want to do that.
So add a new function that can do it: the callback it takes accepts
an extra parameter which indicates whether the type is root-visible
or not.
include/
* ctf-api.h (ctf_type_all_f): New.
(ctf_type_iter_all): New.
libctf/
* ctf_types.c (ctf_type_iter_all): New.
Diffstat (limited to 'libctf/ctf-string.c')
0 files changed, 0 insertions, 0 deletions