mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -24,6 +24,7 @@ LIBCTF_1.0 {
|
||||
ctf_simple_open;
|
||||
ctf_create;
|
||||
ctf_close;
|
||||
ctf_ref;
|
||||
ctf_file_close;
|
||||
|
||||
ctf_cuname;
|
||||
|
Reference in New Issue
Block a user