gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index b4da0407ca9736263ff0a269efb424fe33b31f4a..7ccc54209b05177b3d42753b4c13b34b4b2444a6 100644 (file)
@@ -1,3 +1,162 @@
+2021-07-03  Nick Clifton  <nickc@redhat.com>
+
+       * 2.37 release branch created.
+
+2021-05-09  Alan Modra  <amodra@gmail.com>
+
+       * ctf-impl.h (ctf_dynset_eq_string): Don't declare.
+       * ctf-hash.c (ctf_dynset_eq_string): Delete function.
+       * ctf-dedup.c (make_set_element): Use htab_eq_string.
+       (ctf_dedup_atoms_init, ADD_CITER, ctf_dedup_init): Likewise.
+       (ctf_dedup_conflictify_unshared): Likewise.
+       (ctf_dedup_walk_output_mapping): Likewise.
+
+2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/lib/ctf-lib.exp: Use -gctf, not -gt.
+       * testsuite/libctf-regression/nonstatic-var-section-ld-r.lk:
+       Hidden symbols now get into the symtypetab anyway.
+
+2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (init_types): Unknown types may have names.
+       * ctf-types.c (ctf_type_resolve): CTF_K_UNKNOWN is as
+       non-representable as type ID 0.
+       (ctf_type_aname): Print unknown types.
+       * ctf-dedup.c (ctf_dedup_hash_type): Do not early-exit for
+       CTF_K_UNKNOWN types: they have real hash values now.
+       (ctf_dedup_rwalk_one_output_mapping): Treat CTF_K_UNKNOWN types
+       like other types with no referents: call the callback and do not
+       skip them.
+       (ctf_dedup_emit_type): Emit via...
+       * ctf-create.c (ctf_add_unknown): ... this new function.
+       * libctf.ver (LIBCTF_1.2): Add it.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * configure.ac: Check for dlsym, not dlopen.
+       * configure: Regenerate.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c: Don't
+       leak buf.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27628
+       * ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
+       qhash values.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open-bfd.c (ctf_bfdopen_ctfsect): Initialize debugging.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       PR libctf/27628
+       * ctf-serialize.c (ctf_emit_type_sect): Allow for a NULL vlen in
+       CTF_K_FUNCTION types.
+
+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_format_type): Don't emit size or alignment
+       on error.
+
+2021-03-21  Alan Modra  <amodra@gmail.com>
+
+       * ctf-impl.h: Include string.h.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_encoding): Support, after a fashion, for enums.
+       * ctf-dump.c (ctf_dump_format_type): Do not report enums' degenerate
+       encoding.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-dedup.c (ctf_dedup_rhash_type): Report errors on the input
+       dict properly.
+       * ctf-open.c (ctf_bufopen_internal): Report errors initializing
+       the atoms table.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_next_t) <ctn_tp>: New.
+       <u.ctn_mp>: Remove.
+       <u.ctn_lmp>: Remove.
+       <u.ctn_vlen>: New.
+       * ctf-types.c (ctf_struct_member): New.
+       (ctf_member_next): Use it, dropping separate large/small code paths.
+       (ctf_type_align): Likewise.
+       (ctf_member_info): Likewise.
+       (ctf_type_rvisit): Likewise.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtu_members>: Remove.
+       <dtd_u>: Likewise.
+       (ctf_dmdef_t): Remove.
+       (struct ctf_next) <u.ctn_dmd>: Remove.
+       * ctf-create.c (INITIAL_VLEN): New, more-or-less arbitrary initial
+       vlen size.
+       (ctf_add_enum): Use it.
+       (ctf_dtd_delete): Do not free the (removed) dmd; remove string
+       refs from the vlen on struct deletion.
+       (ctf_add_struct_sized): Populate the vlen: do it by hand if
+       promoting forwards.  Always populate the full-size
+       lsizehi/lsizelo members.
+       (ctf_add_union_sized): Likewise.
+       (ctf_add_member_offset): Set up the vlen rather than the dmd.
+       Expand it as needed, repointing string refs via
+       ctf_str_move_pending. Add the member names as pending strings.
+       Always populate the full-size lsizehi/lsizelo members.
+       (membadd): Remove, folding back into...
+       (ctf_add_type_internal): ... here, adding via an ordinary
+       ctf_add_struct_sized and _next iteration rather than doing
+       everything by hand.
+       * ctf-serialize.c (ctf_copy_smembers): Remove this...
+       (ctf_copy_lmembers): ... and this...
+       (ctf_emit_type_sect): ... folding into here. Figure out if a
+       ctf_stype_t is needed here, not in ctf_add_*_sized.
+       (ctf_type_sect_size): Figure out the ctf_stype_t stuff the same
+       way here.
+       * ctf-types.c (ctf_member_next): Remove the dmd path and always
+       use the vlen.  Force large-structure usage for dynamic types.
+       (ctf_type_align): Likewise.
+       (ctf_member_info): Likewise.
+       (ctf_type_rvisit): Likewise.
+       * testsuite/libctf-regression/type-add-unnamed-struct-ctf.c: Add a
+       self-referential type to this test.
+       * testsuite/libctf-regression/type-add-unnamed-struct.c: Adjusted
+       accordingly.
+       * testsuite/libctf-regression/type-add-unnamed-struct.lk: Likewise.
+
+2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_dtdef_t) <dtd_vlen_alloc>: New.
+       (ctf_str_move_pending): Declare.
+       * ctf-string.c (ctf_str_add_ref_internal): Fix error return.
+       (ctf_str_move_pending): New.
+       * ctf-create.c (ctf_grow_vlen): New.
+       (ctf_dtd_delete): Zero out the vlen_alloc after free.  Free the
+       vlen later: iterate over it and free enum name refs first.
+       (ctf_add_generic): Populate dtd_vlen_alloc from vlen.
+       (ctf_add_enum): populate the vlen; do it by hand if promoting
+       forwards.
+       (ctf_add_enumerator): Set up the vlen rather than the dmd.  Expand
+       it as needed, repointing string refs via ctf_str_move_pending. Add
+       the enumerand names as pending strings.
+       * ctf-serialize.c (ctf_copy_emembers): Remove.
+       (ctf_emit_type_sect): Copy the vlen into place and ref the
+       strings.
+       * ctf-types.c (ctf_enum_next): The dynamic portion now uses
+       the same code as the non-dynamic.
+       (ctf_enum_name): Likewise.
+       (ctf_enum_value): Likewise.
+       * testsuite/libctf-lookup/enum-many-ctf.c: New test.
+       * testsuite/libctf-lookup/enum-many.lk: New test.
+
 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
 
        * ctf-hash.c (ctf_dynset_elements): New.
This page took 0.024234 seconds and 4 git commands to generate.