]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - include/ChangeLog
libctf: add ctf_ref
authorNick Alcock <nick.alcock@oracle.com>
Mon, 8 Jun 2020 08:24:01 +0000 (09:24 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:49 +0000 (17:57 +0100)
commit2399827bfa1062c7f782499e6dcd9f988318d422
treeea65807b4e18793968c87cc905ac034239cd4cd9
parent9850ce4d7bb89d4f9216dd5eebc88156bf31b70b
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.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-open.c
libctf/libctf.ver