aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-string.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-07-13 20:00:07 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-09-23 14:12:54 +0100
commit534c153947309dd8a8ae9f44887a045e22473e76 (patch)
treeaca81cc3efea3f1659a7250c83a2edac3712fd13 /libctf/ctf-string.c
parentab39915041942a14604716d8325ba3d7f9290d4a (diff)
downloadbinutils-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