libctf: fix __extension__ with non-GNU C compilers
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index bf604421bb2b7ead9873913cae0fc243a26345c1..642ed3f83c1e7c68555d75bf1c6c91faef3408da 100644 (file)
@@ -1,3 +1,124 @@
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h [!__GNUC__] (__extension__): Define to nothing.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-archive.c (ctf_archive_count): New.
+       * libctf.ver: New public function.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_member_count): New.
+       * libctf.ver: New public function.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_kind_forwarded): New.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_name_raw): New.
+       (ctf_type_aname_raw): Reimplement accordingly.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-subr.c (ctf_dprintf): _libctf_debug is unlikely to be set.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (struct ctf_archive_internal)
+       <ctfi_unmap_on_close>: New.
+       (ctf_new_archive_internal): Adjust.
+       * ctf-archive.c (ctf_new_archive_internal): Likewise.
+       Initialize ctfi_unmap_on_close.  Adjust error path.
+       (ctf_arc_bufopen): Adjust ctf_new_archive_internal call
+       (unmap_on_close is 0).
+       (ctf_arc_close): Only unmap if ctfi_unmap_on_close.
+       * ctf-open-bfd.c (ctf_fdopen): Adjust.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_aname): Return ECTF_CORRUPT if
+       ints, floats or typedefs have no name.  Fix comment typo.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_add_slice): Support slices of any kind that
+       resolves to an integral type.
+       * ctf-types.c (ctf_type_encoding): Resolve the type before
+       fishing its encoding out.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_create): Mark dirty.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (membcmp)  Skip nameless members.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_add_member_offset): Support names of ""
+       as if they were the null pointer.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (init_types): Remove typeless CTF_K_FORWARD
+       special-casing.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_reference): Add support for dynamic slices.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_serialize): Add cast.
+       (ctf_add_slice): Likewise.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtu_argv>: Fix type.
+       * ctf-create.c (ctf_add_function): Check for unimplemented type
+       and populate at the same time.  Populate one-by-one, not via
+       memcpy.
+       (ctf_serialize): Remove unnecessary cast.
+       * ctf-types.c (ctf_func_type_info): Likewise.
+       (ctf_func_type_args): Likewise.  Fix comment typo.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_add_reftype): Support refs to type zero.
+       (ctf_add_array): Support array contents of type zero.
+       (ctf_add_function): Support arguments and return types of
+       type zero.
+       (ctf_add_typedef): Support typedefs to type zero.
+       (ctf_add_member_offset): Support members of type zero,
+       unless added at unspecified (naturally-aligned) offset.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-error.c: Include <stddef.h>, for offsetof.
+       (_ctf_errlist): Migrate to...
+       (_ctf_errlist_t): ... this.
+       (_ctf_erridx): New, indexes into _ctf_errlist_t.
+       (_ctf_nerr): Remove.
+       (ctf_errmsg): Adjust accordingly.
+       * Makefile.am (BUILT_SOURCES): Note...
+       (ctf-error.h): ... this new rule.
+       * Makefile.in: Regenerate.
+       * mkerrors.sed: New, process ctf-api.h to generate ctf-error.h.
+       * .gitignore: New, ignore ctf-error.h.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h: Fix typos in comments.
+
+2020-07-22  Nick Clifton  <nickc@redhat.com>
+
+       * ctf-archive.c (ctf_arc_write): Avoid calling close twice on the
+       same file descriptor.
+
 2020-07-04  Nick Clifton  <nickc@redhat.com>
 
        Binutils 2.35 branch created.
This page took 0.024121 seconds and 4 git commands to generate.