diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/ctf-api.h | 1 | ||||
-rw-r--r-- | include/ctf.h | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 0f277f9..aed37fd 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2021-05-06 Nick Alcock <nick.alcock@oracle.com> + + * ctf.h (CTF_K_UNKNOWN): Document that it can be used for + nonrepresentable types, not just padding. + * ctf-api.h (ctf_add_unknown): New. + 2021-04-22 Clément Chigot <clement.chigot@atos.net> * coff/internal.h (union internal_auxent): diff --git a/include/ctf-api.h b/include/ctf-api.h index 25dbe9e..fa8f2cd 100644 --- a/include/ctf-api.h +++ b/include/ctf-api.h @@ -491,6 +491,7 @@ extern ctf_id_t ctf_add_struct_sized (ctf_dict_t *, uint32_t, const char *, size_t); extern ctf_id_t ctf_add_union_sized (ctf_dict_t *, uint32_t, const char *, size_t); +extern ctf_id_t ctf_add_unknown (ctf_dict_t *, uint32_t, const char *); extern ctf_id_t ctf_add_volatile (ctf_dict_t *, uint32_t, ctf_id_t); extern int ctf_add_enumerator (ctf_dict_t *, ctf_id_t, const char *, int); diff --git a/include/ctf.h b/include/ctf.h index 90631fc..fa31c46 100644 --- a/include/ctf.h +++ b/include/ctf.h @@ -405,7 +405,8 @@ union CTF_INFO_VLEN() will extract the number of elements in the list, and the type of each element is shown in the comments below. */ -#define CTF_K_UNKNOWN 0 /* Unknown type (used for padding). */ +#define CTF_K_UNKNOWN 0 /* Unknown type (used for padding and + unrepresentable types). */ #define CTF_K_INTEGER 1 /* Variant data is CTF_INT_DATA (see below). */ #define CTF_K_FLOAT 2 /* Variant data is CTF_FP_DATA (see below). */ #define CTF_K_POINTER 3 /* ctt_type is referenced type. */ |