diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-08 09:24:01 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-07-22 17:57:49 +0100 |
commit | 2399827bfa1062c7f782499e6dcd9f988318d422 (patch) | |
tree | ea65807b4e18793968c87cc905ac034239cd4cd9 /libctf/ChangeLog | |
parent | 9850ce4d7bb89d4f9216dd5eebc88156bf31b70b (diff) | |
download | binutils-2399827bfa1062c7f782499e6dcd9f988318d422.zip binutils-2399827bfa1062c7f782499e6dcd9f988318d422.tar.gz binutils-2399827bfa1062c7f782499e6dcd9f988318d422.tar.bz2 |
libctf: add ctf_ref
This allows you to bump the refcount on a ctf_file_t, so that you can
smuggle it out of iterators which open and close the ctf_file_t for you
around the loop body (like ctf_archive_iter).
You still can't use this to preserve a ctf_file_t for longer than the
lifetime of its containing entity (e.g. ctf_archive).
include/
* ctf-api.h (ctf_ref): New.
libctf/
* libctf.ver (ctf_ref): New.
* ctf-open.c (ctf_ref): Implement it.
Diffstat (limited to 'libctf/ChangeLog')
-rw-r--r-- | libctf/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index c22cba0..84f82fa 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,10 @@ 2020-07-22 Nick Alcock <nick.alcock@oracle.com> + * libctf.ver (ctf_ref): New. + * ctf-open.c (ctf_ref): Implement it. + +2020-07-22 Nick Alcock <nick.alcock@oracle.com> + * ctf-inlines.h (ctf_forwardable_kind): New. * ctf-create.c (ctf_add_forward): Use it. |