libctf: dump: check the right error values when dumping functions
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index 64d644f8a6c2daf557ba342638be70ea1f033c55..c23e5aedcfc10e94f42933eb0ddbfb9b63ac4c45 100644 (file)
@@ -1,3 +1,72 @@
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_funcs): Check the right error value.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump): Use ctf_type_iter_all to dump types, not
+       ctf_type_iter.
+       (ctf_dump_type): Pass down the flag from ctf_type_iter_all.
+       (ctf_dump_format_type): Add non-root-type { } notation.
+       Add root flag to prototype.
+       (ctf_dump_label): Adjust accordingly.
+       (ctf_dump_objts): Likewise.
+       (ctf_dump_var): Likewise.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c (ctf_compress_write): Fix double-free.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-archive.c (ctf_arc_write): Split off, and reimplement in terms
+       of...
+       (ctf_arc_write_fd): ... this new function.
+       * ctf-create.c (ctf_write_mem): New.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_str_atom_t) <csa_offset>: New field.
+       (ctf_file_t) <ctf_syn_ext_strtab>: Likewise.
+       (ctf_str_add_ref): Name the last arg.
+       (ctf_str_add_external) New.
+       (ctf_str_add_strraw_explicit): Likewise.
+       (ctf_simple_open_internal): Likewise.
+       (ctf_bufopen_internal): Likewise.
+
+       * ctf-string.c (ctf_strraw_explicit): Split from...
+       (ctf_strraw): ... here, with new support for ctf_syn_ext_strtab.
+       (ctf_str_add_ref_internal): Return the atom, not the
+       string.
+       (ctf_str_add): Adjust accordingly.
+       (ctf_str_add_ref): Likewise.  Move up in the file.
+       (ctf_str_add_external): New: update the csa_offset.
+       (ctf_str_count_strtab): Only account for strings with no csa_offset
+       in the internal strtab length.
+       (ctf_str_write_strtab): If the csa_offset is set, update the
+       string's refs without writing the string out, and update the
+       ctf_syn_ext_strtab.  Make OOM handling less ugly.
+       * ctf-create.c (struct ctf_sort_var_arg_cb): New.
+       (ctf_update): Handle failure to populate the strtab.  Pass in the
+       new ctf_sort_var arg.  Adjust for ctf_syn_ext_strtab addition.
+       Call ctf_simple_open_internal, not ctf_simple_open.
+       (ctf_sort_var): Call ctf_strraw_explicit rather than looking up
+       strings by hand.
+       * ctf-hash.c (ctf_hash_insert_type): Likewise (but using
+       ctf_strraw).  Adjust to diagnose ECTF_STRTAB nonetheless.
+       * ctf-open.c (init_types): No longer filter out ECTF_STRTAB.
+       (ctf_file_close): Destroy the ctf_syn_ext_strtab.
+       (ctf_simple_open): Rename to, and reimplement as a wrapper around...
+       (ctf_simple_open_internal): ... this new function, which calls
+       ctf_bufopen_internal.
+       (ctf_bufopen): Rename to, and reimplement as a wrapper around...
+       (ctf_bufopen_internal): ... this new function, which sets
+       ctf_syn_ext_strtab.
+
+2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf_types.c (ctf_type_iter_all): New.
+
 2019-07-13  Nick Alcock  <nick.alcock@oracle.com>
 
        * ctf-open.c (init_symtab): Check for overflow against the right
This page took 0.026786 seconds and 4 git commands to generate.