libctf: rename the type_mapping_key to type_key
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index 4a10f63d00c12c11f45ce128791fea413e97c633..f756fc4eeb71a9235b174a703e42406b09946059 100644 (file)
@@ -1,3 +1,94 @@
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_link_type_mapping_key): Rename to...
+       (ctf_link_type_key): ... this, adjusting member prefixes to
+       match.
+       (ctf_hash_type_mapping_key): Rename to...
+       (ctf_hash_type_key): ... this.
+       (ctf_hash_eq_type_mapping_key): Rename to...
+       (ctf_hash_eq_type_key): ... this.
+       * ctf-hash.c (ctf_hash_type_mapping_key): Rename to...
+       (ctf_hash_type_key): ... this, and adjust for member name
+       changes.
+       (ctf_hash_eq_type_mapping_key): Rename to...
+       (ctf_hash_eq_type_key): ... this, and adjust for member name
+       changes.
+       * ctf-link.c (ctf_add_type_mapping): Adjust.  Note the lack of
+       need for out-of-memory checking in this code.
+       (ctf_type_mapping): Adjust.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       configure.ac: Check for vasprintf.
+       configure: Regenerated.
+       config.h.in: Likewise.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-archive.c (ctf_arc_bufopen): Fix message.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (struct ctf_archive_internal) <ctfi_free_strsect>
+       New.
+       * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Explicitly open a strtab
+       if the input has no symtab, rather than dividing by
+       zero. Arrange to free it later via ctfi_free_ctfsect.
+       * ctf-archive.c (ctf_new_archive_internal): Do not
+       ctfi_free_strsect by default.
+       (ctf_arc_close): Possibly free it here.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_is_slice): Delete, unnecessary.
+       (ctf_dump_format_type): improve slice formatting.  Always print
+       the type size, even of slices.
+       (ctf_dump_member): Print slices (-> bitfields) differently from
+       non-slices.  Failure to format a type is not an OOM.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_format_type): Emit a warning.
+       (ctf_dump_label): Swallow errors from ctf_dump_format_type.
+       (ctf_dump_objts): Likewise.
+       (ctf_dump_var): Likewise.
+       (ctf_dump_type): Do not emit a duplicate message.  Move to
+       ctf_err_warning, and swallow all errors.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-decl.c (ctf_decl_fini): Free the cd_buf.
+       (ctf_decl_buf): Once it escapes, don't try to free it later.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_aname): Print arg types here...
+       * ctf-dump.c (ctf_dump_funcs): ... not here: but do substitute
+       in the type name here.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_assert): New.
+       (ctf_err_warning_t): Likewise.
+       (ctf_file_t) <ctf_errs_warnings>: Likewise.
+       (ctf_err_warn): New prototype.
+       (ctf_assert_fail_internal): Likewise.
+       * ctf-inlines.h (ctf_assert_internal): Likewise.
+       * ctf-open.c (ctf_file_close): Free ctf_errs_warnings.
+       * ctf-create.c (ctf_serialize): Copy it on serialization.
+       * ctf-subr.c (ctf_err_warn): New, add an error/warning.
+       (ctf_errwarning_next): New iterator, free and pass back
+       errors/warnings in succession.
+       * libctf.ver (ctf_errwarning_next): Add.
+
+2020-07-22  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
+
+       * ctf-types.c (ctf_variable_iter): Fix error return.
+
+2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (ctf_bufopen_internal): Diagnose invalid flags.
+
 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
 
        ctf-decls.h (ctf_qsort_compar_thunk): Fix arg passing.
This page took 0.023423 seconds and 4 git commands to generate.