mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
libctf: types: ctf_type_resolve_nonrepresentable
This new internal function allows us to say "resolve a type to its base type, but treat type 0 like BTF, returning 0 if it is found rather than erroring with ECTF_NONREPRESENTABLE". Used in the next commit.
This commit is contained in:
@@ -811,6 +811,7 @@ extern char *ctf_str_append (char *, const char *);
|
||||
extern char *ctf_str_append_noerr (char *, const char *);
|
||||
|
||||
extern ctf_id_t ctf_type_resolve_unsliced (ctf_dict_t *, ctf_id_t);
|
||||
extern ctf_id_t ctf_type_resolve_nonrepresentable (ctf_dict_t *, ctf_id_t, int allow_zero);
|
||||
extern int ctf_type_kind_unsliced (ctf_dict_t *, ctf_id_t);
|
||||
extern ssize_t ctf_type_align_natural (ctf_dict_t *fp, ctf_id_t prev_type,
|
||||
ctf_id_t type, ssize_t bit_offset);
|
||||
|
||||
Reference in New Issue
Block a user