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