3 * configure: Regenerated.
7 * 2.36 release branch crated.
11 * configure: Regenerate.
15 * configure: Regenerate.
19 * testsuite/libctf-lookup/struct-iteration.c (main):
20 ctf_member_count returns an int.
24 * Makefile.am (BASEDIR): New.
26 (check-DEJAGNU): Add development.exp to prerequisites.
27 (development.exp): New.
28 (CONFIG_STATUS_DEPENDENCIES): New.
29 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
30 (DISTCLEANFILES): Likewise.
31 * Makefile.in: Regenerated.
32 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
33 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
34 * testsuite/libctf-regression/regression.exp: Likewise.
38 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
43 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
44 <ctf_pptrtab_len>: New.
45 <ctf_pptrtab_typemax>: New.
46 * ctf-create.c (ctf_serialize): Update accordingly.
47 (ctf_add_reftype): Note that we don't need to update pptrtab here,
48 despite updating ptrtab.
49 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
50 (ctf_import): Likewise.
51 (ctf_import_unref): Likewise.
52 * ctf-lookup.c (grow_pptrtab): New.
53 (refresh_pptrtab): New, update a pptrtab.
54 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
55 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
56 use it in addition to the parent's ptrtab when parent dicts are
58 * testsuite/libctf-regression/regression.exp: New testsuite for
60 * testsuite/libctf-regression/pptrtab*: New test.
61 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
63 * testsuite/libctf-writable/pptrtab*: New test.
67 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
71 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
73 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
74 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
75 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
76 (ctf_member_next): ... this. Support recursive unnamed member
77 iteration (off by default).
78 (ctf_member_info): Look up members in unnamed sub-structs.
79 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
80 (ctf_dedup_emit_struct_members): Likewise.
81 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
82 members, and a normal member after the end.
83 * testsuite/libctf-lookup/struct-iteration.c: Verify that
84 ctf_member_count is consistent with the number of successful returns
85 from a non-recursive ctf_member_next.
86 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
88 * testsuite/libctf-lookup/struct-lookup.c: New test.
89 * testsuite/libctf-lookup/struct-lookup.lk: New test.
93 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
94 (ctf_link_write): Call it.
98 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
99 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
100 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
104 * Makefile.am (EXPECT): New.
106 (RUNTESTFLAGS): Likewise.
107 (CC_FOR_TARGET): Likewise.
108 (check-DEJAGNU): Likewise.
109 (AUTOMAKE_OPTIONS): Add dejagnu.
110 * Makefile.in: Regenerated.
111 * testsuite/config/default.exp: New.
112 * testsuite/lib/ctf-lib.exp: Likewise.
113 * testsuite/libctf-lookup/enum.lk: New test.
114 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
115 * testsuite/libctf-lookup/enum.c: New lookup test.
116 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
117 * testsuite/libctf-lookup/lookup.exp: New.
121 * configure.ac (BFD_LIBADD): Remove.
122 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
123 (SHARED_LIBADD): Rename to...
124 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
126 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
128 (libctf_la_LIBADD): Reference libbfd.la directly, not via
130 (libctf_la_DEPENDENCIES): Remove.
131 * Makefile.in: Regenerate.
132 * configure: Likewise.
136 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
137 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
138 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
140 (CTF_FT_BITFIELD): Likewise.
141 (CTF_FT_ID): Likewise.
142 (ctf_dump_member): Do not do indentation here. Migrate the
143 type-printing parts of this into...
144 (ctf_dump_format_type): ... here, to be shared by all type printers.
145 Get the errno value for non-representable types right. Do not print
146 bitfield info for non-bitfields. Improve the format and indentation
147 of other type output. Shuffle spacing around to make all indentation
148 either 'width of column' or 4 chars.
149 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
150 (ctf_dump_objts): Likewise. Spacing shuffle.
151 (ctf_dump_var): Likewise.
152 (type_hex_digits): Migrate down in the file, to above its new user.
153 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
154 ctf_dump_format_type. Don't trim off excess linefeeds now we no
155 longer generate them. Dump enumerated types.
159 * ctf-types.c (ctf_type_resolve): Improve comment.
160 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
161 Emit errors into the right dict.
162 (ctf_type_align): Likewise.
163 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
164 when adding a member without explicit offset when this member, or
165 the previous member, is incomplete.
166 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
168 (ctf_dump_member): Do not try to print their alignment.
172 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
173 (ctf_dump_format_type): Don't emit the size for function objects.
174 Dump the element type of arrays like we dump the pointed-to type of
179 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
180 (ctf_dump_header): Add 0x to the hex magic number.
181 (ctf_dump_str): Add 0x to the hex string offsets.
182 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
183 (ctf_dump_type): Adjust. Free it when we're done.
184 (type_hex_digits): New.
185 (ctf_dump_member): Align output depending on the width of the type
186 ID being generated. Use printf padding, not a loop, to generate
191 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
196 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
197 ACLOCAL_AMFLAGS -I dirs.
198 * configure: Regenerate.
202 Update year range in copyright notice of all files.
204 For older changes see ChangeLog-2020
206 Copyright (C) 2021 Free Software Foundation, Inc.
208 Copying and distribution of this file, with or without modification,
209 are permitted in any medium without royalty provided the copyright
210 notice and this notice are preserved.
216 version-control: never