]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: ctf-lookup: support prefixes in ctf_lookup_by_id
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 13:17:19 +0000 (14:17 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:41 +0000 (18:07 +0100)
commit2ef95540239a6687ef032839c936cf1a49454b98
tree4834bd16a5ef95aa2d2e3a9a98f16d9691a9866a
parenta80b903b45313cb6b17b79395d6bdb5bf016bc02
libctf: ctf-lookup: support prefixes in ctf_lookup_by_id

ctf_lookup_by_id now has a new optional suffix argument, which,
if set, returns the suffix of a prefixed type: the ctf_type_t it
returns remains (as ever) the first one in the type (i.e. it
may be a prefix type).  This is most convenient because the prefix
is the ctf_type_t that LCTF_KIND and other LCTF functions taking
ctf_type_t's expect.

Callers not yet adjusted.
libctf/ctf-impl.h
libctf/ctf-lookup.c