diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-07-13 20:00:07 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-10-03 17:04:55 +0100 |
commit | 0ac6231298cbc5a3a16bd4e98d85d98700b81dee (patch) | |
tree | 89040caa55c0d64d462235ef2ba45cc50b84b74d /libctf/ChangeLog | |
parent | binutils: objdump does not take --ctf-symbols or --ctf-strings options (diff) | |
download | binutils-gdb-0ac6231298cbc5a3a16bd4e98d85d98700b81dee.tar.gz binutils-gdb-0ac6231298cbc5a3a16bd4e98d85d98700b81dee.tar.bz2 binutils-gdb-0ac6231298cbc5a3a16bd4e98d85d98700b81dee.zip |
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/ChangeLog')
-rw-r--r-- | libctf/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 64d644f8a6c..df52650b16d 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,9 @@ 2019-07-13 Nick Alcock <nick.alcock@oracle.com> + * ctf_types.c (ctf_type_iter_all): New. + +2019-07-13 Nick Alcock <nick.alcock@oracle.com> + * ctf-open.c (init_symtab): Check for overflow against the right section. (upgrade_header): Set cth_objtidxoff, cth_funcidxoff to zero-length. |