1 2021-02-20 Alan Modra <amodra@gmail.com>
3 * testsuite/config/default.exp (ld_L_opt): Define.
4 * testsuite/lib/ctf-lib.exp (load_common_lib): Delete. Instead load
6 (run_host_cmd, run_host_cmd_yesno, check_compiler_available): Delete.
7 (compile_one_cc, check_ctf_available): Delete.
9 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
11 * configure.ac (ac_cv_libctf_bfd_elf): Include string.h.
12 * configure: Regenerated.
14 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
16 * configure.ac (EXPECT): Check for, in order to define...
17 (TCL_TRY): ... this, if Tcl supports try/catch.
18 * Makefile.am (TCL_TRY): Run the testsuite only if set.
19 * configure: Regenerated.
20 * Makefile.in: Likewise.
22 2021-02-02 Nick Alcock <nick.alcock@oracle.com>
24 * configure.ac (CTF_LIBADD): Remove explicit -lintl population in
26 * Makefile.am (libctf_nobfd_la_LIBADD): No longer explicitly
28 (check-DEJAGNU): Pass down to tests as well.
29 * configure: Regenerated.
30 * Makefile.in: Likewise.
32 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
34 * ctf-string.c (ctf_str_add): Treat adding a NULL as adding "".
35 (ctf_str_add_ref): Likewise.
36 (ctf_str_add_external): Likewise.
37 * ctf-types.c (ctf_type_name_raw): Always return "" for offset 0.
38 * ctf-dedup.c (ctf_dedup_multiple_input_dicts): Don't armour
40 (ctf_dedup_maybe_synthesize_forward): Likewise.
42 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
44 * ctf-create.c (ctf_serialize): Fix shadowing.
46 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
48 * ctf-create.c (ctf_add_encoded): Add check for non-empty name.
49 (ctf_add_forward): Likewise.
50 (ctf_add_typedef): Likewise.
52 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
54 * ctf-open.c (init_types): Rip out code to check anonymous typedef
56 * ctf-create.c (ctf_add_reftype): Likewise.
57 * ctf-lookup.c (refresh_pptrtab): Likewise.
59 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
61 * ctf-impl.c (_libctf_nonnull_): Add parameters.
62 (LCTF_LINKING): New flag.
63 (ctf_dict_t) <ctf_link_flags>: Mention it.
64 * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call.
65 (ctf_write): Likewise, including in child dictionaries.
66 (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there
67 are no reported symbols.
68 * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure
69 the variable has been reported as a symbol by the linker.
70 (symtypetab_skippable): Mention relationship between SYMFP and the
72 (symtypetab_density): Adjust nonnullity. Exit early if no symbols
73 were reported and force-indexing is off (i.e., we are doing a
75 (ctf_serialize): Handle the !LCTF_LINKING case by writing out an
76 indexed, sorted symtypetab (and allow SYMFP to be NULL in this
77 case). Turn sorting off if this is a non-final link. Only delete
78 nonstatic vars if we are filtering symbols and the linker has
80 * testsuite/libctf-regression/nonstatic-var-section-ld-r*:
81 New test of variable and symtypetab section population when
83 * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk:
84 Likewise, when ld of an executable is used.
85 * testsuite/libctf-regression/nonstatic-var-section-ld.lk:
86 Likewise, when ld -shared alone is used.
87 * testsuite/libctf-regression/nonstatic-var-section-ld*.c:
88 Lookup programs for the above.
89 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New
90 test, testing survival of symbols across ctf_write paths.
91 * testsuite/lib/ctf-lib.exp (run_lookup_test): New option,
92 nonshared, suppressing linking of the SOURCE with -shared.
94 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
96 * ctf-create.c (membadd): Transform ""-named members into
98 * testsuite/libctf-regression/type-add-unnamed-struct*: New test.
100 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
102 * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
103 base type if looking up a nonexistent pointer type.
104 * testsuite/libctf-regression/pptrtab*: Test it.
106 2021-01-13 Alan Modra <amodra@gmail.com>
108 * Makefile.in: Regenerate.
110 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
113 * configure.ac: Use GNU_MAKE_JOBSERVER.
114 * aclocal.m4: Regenerated.
115 * configure: Likewise.
117 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
120 * configure: Regenerated.
122 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
124 * configure: Regenerated.
126 2021-01-09 Nick Clifton <nickc@redhat.com>
128 * 2.36 release branch crated.
130 2021-01-09 Alan Modra <amodra@gmail.com>
132 * configure: Regenerate.
134 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
136 * configure: Regenerate.
138 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
140 * testsuite/libctf-lookup/struct-iteration.c (main):
141 ctf_member_count returns an int.
143 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
145 * Makefile.am (BASEDIR): New.
147 (check-DEJAGNU): Add development.exp to prerequisites.
148 (development.exp): New.
149 (CONFIG_STATUS_DEPENDENCIES): New.
150 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
151 (DISTCLEANFILES): Likewise.
152 * Makefile.in: Regenerated.
153 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
154 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
155 * testsuite/libctf-regression/regression.exp: Likewise.
157 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
159 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
162 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
164 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
165 <ctf_pptrtab_len>: New.
166 <ctf_pptrtab_typemax>: New.
167 * ctf-create.c (ctf_serialize): Update accordingly.
168 (ctf_add_reftype): Note that we don't need to update pptrtab here,
169 despite updating ptrtab.
170 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
171 (ctf_import): Likewise.
172 (ctf_import_unref): Likewise.
173 * ctf-lookup.c (grow_pptrtab): New.
174 (refresh_pptrtab): New, update a pptrtab.
175 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
176 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
177 use it in addition to the parent's ptrtab when parent dicts are
179 * testsuite/libctf-regression/regression.exp: New testsuite for
181 * testsuite/libctf-regression/pptrtab*: New test.
182 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
184 * testsuite/libctf-writable/pptrtab*: New test.
186 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
188 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
190 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
192 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
193 <ctn_next>: ... here.
194 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
195 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
196 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
197 (ctf_member_next): ... this. Support recursive unnamed member
198 iteration (off by default).
199 (ctf_member_info): Look up members in unnamed sub-structs.
200 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
201 (ctf_dedup_emit_struct_members): Likewise.
202 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
203 members, and a normal member after the end.
204 * testsuite/libctf-lookup/struct-iteration.c: Verify that
205 ctf_member_count is consistent with the number of successful returns
206 from a non-recursive ctf_member_next.
207 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
209 * testsuite/libctf-lookup/struct-lookup.c: New test.
210 * testsuite/libctf-lookup/struct-lookup.lk: New test.
212 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
214 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
215 (ctf_link_write): Call it.
217 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
219 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
220 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
221 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
223 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
225 * Makefile.am (EXPECT): New.
227 (RUNTESTFLAGS): Likewise.
228 (CC_FOR_TARGET): Likewise.
229 (check-DEJAGNU): Likewise.
230 (AUTOMAKE_OPTIONS): Add dejagnu.
231 * Makefile.in: Regenerated.
232 * testsuite/config/default.exp: New.
233 * testsuite/lib/ctf-lib.exp: Likewise.
234 * testsuite/libctf-lookup/enum.lk: New test.
235 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
236 * testsuite/libctf-lookup/enum.c: New lookup test.
237 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
238 * testsuite/libctf-lookup/lookup.exp: New.
240 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
242 * configure.ac (BFD_LIBADD): Remove.
243 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
244 (SHARED_LIBADD): Rename to...
245 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
247 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
249 (libctf_la_LIBADD): Reference libbfd.la directly, not via
251 (libctf_la_DEPENDENCIES): Remove.
252 * Makefile.in: Regenerate.
253 * configure: Likewise.
255 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
257 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
258 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
259 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
261 (CTF_FT_BITFIELD): Likewise.
262 (CTF_FT_ID): Likewise.
263 (ctf_dump_member): Do not do indentation here. Migrate the
264 type-printing parts of this into...
265 (ctf_dump_format_type): ... here, to be shared by all type printers.
266 Get the errno value for non-representable types right. Do not print
267 bitfield info for non-bitfields. Improve the format and indentation
268 of other type output. Shuffle spacing around to make all indentation
269 either 'width of column' or 4 chars.
270 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
271 (ctf_dump_objts): Likewise. Spacing shuffle.
272 (ctf_dump_var): Likewise.
273 (type_hex_digits): Migrate down in the file, to above its new user.
274 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
275 ctf_dump_format_type. Don't trim off excess linefeeds now we no
276 longer generate them. Dump enumerated types.
278 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
280 * ctf-types.c (ctf_type_resolve): Improve comment.
281 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
282 Emit errors into the right dict.
283 (ctf_type_align): Likewise.
284 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
285 when adding a member without explicit offset when this member, or
286 the previous member, is incomplete.
287 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
289 (ctf_dump_member): Do not try to print their alignment.
291 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
293 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
294 (ctf_dump_format_type): Don't emit the size for function objects.
295 Dump the element type of arrays like we dump the pointed-to type of
298 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
300 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
301 (ctf_dump_header): Add 0x to the hex magic number.
302 (ctf_dump_str): Add 0x to the hex string offsets.
303 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
304 (ctf_dump_type): Adjust. Free it when we're done.
305 (type_hex_digits): New.
306 (ctf_dump_member): Align output depending on the width of the type
307 ID being generated. Use printf padding, not a loop, to generate
310 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
312 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
314 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
317 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
318 ACLOCAL_AMFLAGS -I dirs.
319 * configure: Regenerate.
321 2021-01-01 Alan Modra <amodra@gmail.com>
323 Update year range in copyright notice of all files.
325 For older changes see ChangeLog-2020
327 Copyright (C) 2021 Free Software Foundation, Inc.
329 Copying and distribution of this file, with or without modification,
330 are permitted in any medium without royalty provided the copyright
331 notice and this notice are preserved.
337 version-control: never