1 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
3 * ctf-impl.h (ctf_dtdef_t) <dtd_u.dtu_enc>: Remove.
4 <dtd_u.dtu_slice>: Likewise.
6 * ctf-create.c (ctf_add_generic): Perhaps allocate it. All
8 (ctf_dtd_delete): Free it.
9 (ctf_add_slice): Use the dtd_vlen, not dtu_enc.
10 (ctf_add_encoded): Likewise. Assert that this must be an int or
12 * ctf-serialize.c (ctf_emit_type_sect): Just copy the dtd_vlen.
13 * ctf-dedup.c (ctf_dedup_rhash_type): Use the dtd_vlen, not
15 * ctf-types.c (ctf_type_reference): Likewise.
16 (ctf_type_encoding): Remove most dynamic-type-specific code: just
17 get the vlen from the right place. Report failure to look up the
18 underlying type's encoding.
20 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
22 * ctf-archive.c (ctf_archive_next): GNU style fix for do {} while.
23 * ctf-dedup.c (ctf_dedup_rhash_type): Likewise.
24 (ctf_dedup_rwalk_one_output_mapping): Likewise.
25 * ctf-dump.c (ctf_dump_format_type): Likewise.
26 * ctf-lookup.c (ctf_symbol_next): Likewise.
27 * swap.h (swap_thing): Likewise.
29 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
31 * ctf-serialize.c: General reshuffling, and...
32 (emit_symtypetab_state_t): New, migrated from
33 local variables in ctf_serialize.
34 (ctf_serialize): Split out most section sizing and
36 (ctf_symtypetab_sect_sizes): New (split out).
37 (ctf_emit_symtypetab_sects): Likewise.
38 (ctf_type_sect_size): Likewise.
39 (ctf_emit_type_sect): Likewise.
41 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
43 * ctf-impl.h (ctf_dict_t): Fix comment.
45 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
47 * ctf-create.c (symtypetab_delete_nonstatic_vars): Move
49 (ctf_symtab_skippable): Likewise.
50 (CTF_SYMTYPETAB_EMIT_FUNCTION): Likewise.
51 (CTF_SYMTYPETAB_EMIT_PAD): Likewise.
52 (CTF_SYMTYPETAB_FORCE_INDEXED): Likewise.
53 (symtypetab_density): Likewise.
54 (emit_symtypetab): Likewise.
55 (emit_symtypetab_index): Likewise.
56 (ctf_copy_smembers): Likewise.
57 (ctf_copy_lmembers): Likewise.
58 (ctf_copy_emembers): Likewise.
59 (ctf_sort_var): Likewise.
60 (ctf_serialize): Likewise.
61 (ctf_gzwrite): Likewise.
62 (ctf_compress_write): Likewise.
63 (ctf_write_mem): Likewise.
64 (ctf_write): Likewise.
65 * ctf-serialize.c: New file.
66 * Makefile.am (libctf_nobfd_la_SOURCES): Add it.
67 * Makefile.in: Regenerate.
69 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
71 * ctf-link.c (ctf_link_lazy_open): Move up in the file, to near
73 * ctf-lookup.c (ctf_lookup_symbol_idx): Repair tabdamage.
74 (ctf_lookup_by_sym_or_name): Likewise.
75 * testsuite/libctf-lookup/struct-iteration.c: Likewise.
76 * testsuite/libctf-regression/type-add-unnamed-struct.c: Likewise.
78 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
80 * ctf-create.c (symtypetab_density): Report the symbol name as
81 well as index in the name != object error; note the likely
83 * ctf-link.c (ctf_link_shuffle_syms): Report the symbol index
86 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
88 * ctf-link.c (ctf_link_shuffle_syms): Free ctf_dynsyms properly.
90 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
92 * ctf-dump.c (ctf_dump_format_type): Fix signed/unsigned confusion.
94 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
96 * ctf-dedup.c (ctf_dedup): Pass on errors from ctf_dedup_hash_type.
97 Call ctf_dedup_fini properly on other errors.
98 (ctf_dedup_emit_type): Set the errno on dynhash insertion failure.
99 * ctf-link.c (ctf_link_deduplicating_per_cu): Close outputs beyond
100 output 0 when asserting because >1 output is found.
101 (ctf_link_deduplicating): Likewise, when asserting because the
102 shared output is not the same as the passed-in fp.
104 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
106 * ctf-impl.h (ctf_dict_t) <ctf_link_type_mapping>: No longer used
107 by the nondeduplicating linker.
108 (ctf_add_type_mapping): Removed, now static.
109 (ctf_type_mapping): Likewise.
110 (ctf_dedup_type_mapping): New.
111 (ctf_dedup_t) <cd_input_nums>: New.
112 * ctf-dedup.c (ctf_dedup_init): Populate it.
113 (ctf_dedup_fini): Free it again. Emphasise that this has to be
114 the last thing called.
115 (ctf_dedup): Populate it.
116 (ctf_dedup_populate_type_mapping): Removed.
117 (ctf_dedup_populate_type_mappings): Likewise.
118 (ctf_dedup_emit): No longer call it. No longer call
119 ctf_dedup_fini either.
120 (ctf_dedup_type_mapping): New.
121 * ctf-link.c (ctf_unnamed_cuname): New.
122 (ctf_create_per_cu): Arguments must be non-null now.
123 (ctf_in_member_cb_arg): Removed.
124 (ctf_link): No longer populate it. No longer discard the
126 (ctf_link_deduplicating_one_symtypetab): Use
127 ctf_dedup_type_mapping, not ctf_type_mapping. Use
129 (ctf_link_one_variable): Likewise. Pass in args individually: no
130 longer a ctf_variable_iter callback.
131 (empty_link_type_mapping): Removed.
132 (ctf_link_deduplicating_variables): Use ctf_variable_next, not
133 ctf_variable_iter. No longer pack arguments to
134 ctf_link_one_variable into a struct.
135 (ctf_link_deduplicating_per_cu): Call ctf_dedup_fini once
136 all link phases are done.
137 (ctf_link_deduplicating): Likewise.
138 (ctf_link_intern_extern_string): Improve comment.
139 (ctf_add_type_mapping): Migrate...
140 (ctf_type_mapping): ... these functions...
141 * ctf-create.c (ctf_add_type_mapping): ... here...
142 (ctf_type_mapping): ... and make static, for the sole use of
145 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
147 * ctf-link.c (ctf_link_one_variable): Remove reference to
148 "unconflicted link mode".
150 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
152 * ctf-link.c (ctf_create_per_cu): Drop FILENAME now that it is
153 always identical to CUNAME.
154 (ctf_link_deduplicating_one_symtypetab): Adjust.
155 (ctf_link_one_type): Remove.
156 (ctf_link_one_input_archive_member): Likewise.
157 (ctf_link_close_one_input_archive): Likewise.
158 (ctf_link_one_input_archive): Likewise.
159 (ctf_link): No longer call it. Drop CTF_LINK_NONDEDUP path.
160 Improve header comment a bit (dicts, not files). Adjust
161 ctf_create_per_cu call.
162 (ctf_link_deduplicating_variables): Simplify.
163 (ctf_link_in_member_cb_arg_t) <cu_name>: Remove.
164 <in_input_cu_file>: Likewise.
165 <in_fp_parent>: Likewise.
166 <done_parent>: Likewise.
167 (ctf_link_one_variable): Turn uses of in_file_name to in_cuname.
169 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
171 * ctf-types.c (ctf_member_iter): Move 'rc' to an inner scope.
172 (ctf_enum_iter): Reimplement in terms of ctf_enum_next.
173 (ctf_type_iter): Reimplement in terms of ctf_type_next.
174 (ctf_type_iter_all): Likewise.
175 (ctf_variable_iter): Reimplement in terms of ctf_variable_next.
176 * ctf-archive.c (ctf_archive_iter_internal): Remove.
177 (ctf_archive_iter): Reimplement in terms of ctf_archive_next.
179 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
181 * ctf-archive.c (ctf_archive_next): Set the name of parents in
182 single-member archives.
184 2021-02-26 Alan Modra <amodra@gmail.com>
186 * Makefile.in: Regenerate.
188 2021-02-21 Alan Modra <amodra@gmail.com>
190 * configure.ac: Invoke AC_CANONICAL_TARGET, AC_CANONICAL_HOST
191 and AC_CANONICAL_BUILD.
192 * configure: Regenerate.
193 * Makefile.in: Regenerate.
195 2021-02-20 Nick Alcock <nick.alcock@oracle.com>
197 * ctf-impl.h (ctf_dict_t) <ctf_symhash>: New.
198 <ctf_symhash_latest>: Likewise.
199 (struct ctf_archive_internal) <ctfi_crossdict_cache>: New.
200 <ctfi_symnamedicts>: New.
202 (ctf_lookup_symbol_name): Remove.
203 * ctf-lookup.c (ctf_lookup_symbol_name): Propagate errors from
204 parent properly. Make static.
205 (ctf_lookup_symbol_idx): New, linear search for the symbol name,
206 cached in the crossdict cache's ctf_symhash (if available), or
207 this dict's (otherwise).
208 (ctf_try_lookup_indexed): Allow the symname to be passed in.
209 (ctf_lookup_by_symbol): Turn into a wrapper around...
210 (ctf_lookup_by_sym_or_name): ... this, supporting name lookup too,
211 using ctf_lookup_symbol_idx in non-writable dicts. Special-case
212 name lookup in dynamic dicts without reported symbols, which have
213 no symtab or dynsymidx but where name lookup should still work.
214 (ctf_lookup_by_symbol_name): New, another wrapper.
215 * ctf-archive.c (enosym): Note that this is present in
216 ctfi_symnamedicts too.
217 (ctf_arc_close): Adjust for removal of ctfi_syms. Free the
219 (ctf_arc_flush_caches): Likewise.
220 (ctf_dict_open_cached): Memoize the first cached dict in the
222 (ctf_arc_lookup_symbol): Turn into a wrapper around...
223 (ctf_arc_lookup_sym_or_name): ... this. No longer cache
224 ctf_id_t lookups: just call ctf_lookup_by_symbol as needed (but
225 still cache the dicts those lookups succeed in). Add
226 lookup-by-name support, with dicts of successful lookups cached in
227 ctfi_symnamedicts. Refactor the caching code a bit.
228 (ctf_arc_lookup_symbol_name): New, another wrapper.
229 * ctf-open.c (ctf_dict_close): Free the ctf_symhash.
230 * libctf.ver (LIBCTF_1.2): New version. Add
231 ctf_lookup_by_symbol_name, ctf_arc_lookup_symbol_name.
232 * testsuite/libctf-lookup/enum-symbol.c (main): Use
233 ctf_arc_lookup_symbol rather than looking up the name ourselves.
234 Fish it out repeatedly, to make sure that symbol caching isn't
238 * testsuite/libctf-lookup/enum-symbol-obj.lk: Test symbol lookup
239 in an unlinked object file (indexed symtypetab sections only).
240 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
241 (try_maybe_reporting): Check symbol types via
242 ctf_lookup_by_symbol_name as well as ctf_symbol_next.
243 * testsuite/libctf-lookup/conflicting-type-syms.*: New test of
244 lookups in a multi-dict archive.
246 2021-02-20 Alan Modra <amodra@gmail.com>
248 * testsuite/config/default.exp (ld_L_opt): Define.
249 * testsuite/lib/ctf-lib.exp (load_common_lib): Delete. Instead load
251 (run_host_cmd, run_host_cmd_yesno, check_compiler_available): Delete.
252 (compile_one_cc, check_ctf_available): Delete.
254 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
256 * configure.ac (ac_cv_libctf_bfd_elf): Include string.h.
257 * configure: Regenerated.
259 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
261 * configure.ac (EXPECT): Check for, in order to define...
262 (TCL_TRY): ... this, if Tcl supports try/catch.
263 * Makefile.am (TCL_TRY): Run the testsuite only if set.
264 * configure: Regenerated.
265 * Makefile.in: Likewise.
267 2021-02-02 Nick Alcock <nick.alcock@oracle.com>
269 * configure.ac (CTF_LIBADD): Remove explicit -lintl population in
271 * Makefile.am (libctf_nobfd_la_LIBADD): No longer explicitly
273 (check-DEJAGNU): Pass down to tests as well.
274 * configure: Regenerated.
275 * Makefile.in: Likewise.
277 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
279 * ctf-string.c (ctf_str_add): Treat adding a NULL as adding "".
280 (ctf_str_add_ref): Likewise.
281 (ctf_str_add_external): Likewise.
282 * ctf-types.c (ctf_type_name_raw): Always return "" for offset 0.
283 * ctf-dedup.c (ctf_dedup_multiple_input_dicts): Don't armour
285 (ctf_dedup_maybe_synthesize_forward): Likewise.
287 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
289 * ctf-create.c (ctf_serialize): Fix shadowing.
291 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
293 * ctf-create.c (ctf_add_encoded): Add check for non-empty name.
294 (ctf_add_forward): Likewise.
295 (ctf_add_typedef): Likewise.
297 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
299 * ctf-open.c (init_types): Rip out code to check anonymous typedef
301 * ctf-create.c (ctf_add_reftype): Likewise.
302 * ctf-lookup.c (refresh_pptrtab): Likewise.
304 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
306 * ctf-impl.c (_libctf_nonnull_): Add parameters.
307 (LCTF_LINKING): New flag.
308 (ctf_dict_t) <ctf_link_flags>: Mention it.
309 * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call.
310 (ctf_write): Likewise, including in child dictionaries.
311 (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there
312 are no reported symbols.
313 * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure
314 the variable has been reported as a symbol by the linker.
315 (symtypetab_skippable): Mention relationship between SYMFP and the
317 (symtypetab_density): Adjust nonnullity. Exit early if no symbols
318 were reported and force-indexing is off (i.e., we are doing a
320 (ctf_serialize): Handle the !LCTF_LINKING case by writing out an
321 indexed, sorted symtypetab (and allow SYMFP to be NULL in this
322 case). Turn sorting off if this is a non-final link. Only delete
323 nonstatic vars if we are filtering symbols and the linker has
325 * testsuite/libctf-regression/nonstatic-var-section-ld-r*:
326 New test of variable and symtypetab section population when
328 * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk:
329 Likewise, when ld of an executable is used.
330 * testsuite/libctf-regression/nonstatic-var-section-ld.lk:
331 Likewise, when ld -shared alone is used.
332 * testsuite/libctf-regression/nonstatic-var-section-ld*.c:
333 Lookup programs for the above.
334 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New
335 test, testing survival of symbols across ctf_write paths.
336 * testsuite/lib/ctf-lib.exp (run_lookup_test): New option,
337 nonshared, suppressing linking of the SOURCE with -shared.
339 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
341 * ctf-create.c (membadd): Transform ""-named members into
343 * testsuite/libctf-regression/type-add-unnamed-struct*: New test.
345 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
347 * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
348 base type if looking up a nonexistent pointer type.
349 * testsuite/libctf-regression/pptrtab*: Test it.
351 2021-01-13 Alan Modra <amodra@gmail.com>
353 * Makefile.in: Regenerate.
355 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
358 * configure.ac: Use GNU_MAKE_JOBSERVER.
359 * aclocal.m4: Regenerated.
360 * configure: Likewise.
362 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
365 * configure: Regenerated.
367 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
369 * configure: Regenerated.
371 2021-01-09 Nick Clifton <nickc@redhat.com>
373 * 2.36 release branch crated.
375 2021-01-09 Alan Modra <amodra@gmail.com>
377 * configure: Regenerate.
379 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
381 * configure: Regenerate.
383 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
385 * testsuite/libctf-lookup/struct-iteration.c (main):
386 ctf_member_count returns an int.
388 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
390 * Makefile.am (BASEDIR): New.
392 (check-DEJAGNU): Add development.exp to prerequisites.
393 (development.exp): New.
394 (CONFIG_STATUS_DEPENDENCIES): New.
395 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
396 (DISTCLEANFILES): Likewise.
397 * Makefile.in: Regenerated.
398 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
399 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
400 * testsuite/libctf-regression/regression.exp: Likewise.
402 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
404 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
407 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
409 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
410 <ctf_pptrtab_len>: New.
411 <ctf_pptrtab_typemax>: New.
412 * ctf-create.c (ctf_serialize): Update accordingly.
413 (ctf_add_reftype): Note that we don't need to update pptrtab here,
414 despite updating ptrtab.
415 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
416 (ctf_import): Likewise.
417 (ctf_import_unref): Likewise.
418 * ctf-lookup.c (grow_pptrtab): New.
419 (refresh_pptrtab): New, update a pptrtab.
420 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
421 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
422 use it in addition to the parent's ptrtab when parent dicts are
424 * testsuite/libctf-regression/regression.exp: New testsuite for
426 * testsuite/libctf-regression/pptrtab*: New test.
427 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
429 * testsuite/libctf-writable/pptrtab*: New test.
431 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
433 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
435 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
437 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
438 <ctn_next>: ... here.
439 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
440 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
441 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
442 (ctf_member_next): ... this. Support recursive unnamed member
443 iteration (off by default).
444 (ctf_member_info): Look up members in unnamed sub-structs.
445 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
446 (ctf_dedup_emit_struct_members): Likewise.
447 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
448 members, and a normal member after the end.
449 * testsuite/libctf-lookup/struct-iteration.c: Verify that
450 ctf_member_count is consistent with the number of successful returns
451 from a non-recursive ctf_member_next.
452 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
454 * testsuite/libctf-lookup/struct-lookup.c: New test.
455 * testsuite/libctf-lookup/struct-lookup.lk: New test.
457 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
459 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
460 (ctf_link_write): Call it.
462 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
464 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
465 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
466 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
468 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
470 * Makefile.am (EXPECT): New.
472 (RUNTESTFLAGS): Likewise.
473 (CC_FOR_TARGET): Likewise.
474 (check-DEJAGNU): Likewise.
475 (AUTOMAKE_OPTIONS): Add dejagnu.
476 * Makefile.in: Regenerated.
477 * testsuite/config/default.exp: New.
478 * testsuite/lib/ctf-lib.exp: Likewise.
479 * testsuite/libctf-lookup/enum.lk: New test.
480 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
481 * testsuite/libctf-lookup/enum.c: New lookup test.
482 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
483 * testsuite/libctf-lookup/lookup.exp: New.
485 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
487 * configure.ac (BFD_LIBADD): Remove.
488 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
489 (SHARED_LIBADD): Rename to...
490 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
492 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
494 (libctf_la_LIBADD): Reference libbfd.la directly, not via
496 (libctf_la_DEPENDENCIES): Remove.
497 * Makefile.in: Regenerate.
498 * configure: Likewise.
500 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
502 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
503 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
504 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
506 (CTF_FT_BITFIELD): Likewise.
507 (CTF_FT_ID): Likewise.
508 (ctf_dump_member): Do not do indentation here. Migrate the
509 type-printing parts of this into...
510 (ctf_dump_format_type): ... here, to be shared by all type printers.
511 Get the errno value for non-representable types right. Do not print
512 bitfield info for non-bitfields. Improve the format and indentation
513 of other type output. Shuffle spacing around to make all indentation
514 either 'width of column' or 4 chars.
515 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
516 (ctf_dump_objts): Likewise. Spacing shuffle.
517 (ctf_dump_var): Likewise.
518 (type_hex_digits): Migrate down in the file, to above its new user.
519 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
520 ctf_dump_format_type. Don't trim off excess linefeeds now we no
521 longer generate them. Dump enumerated types.
523 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
525 * ctf-types.c (ctf_type_resolve): Improve comment.
526 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
527 Emit errors into the right dict.
528 (ctf_type_align): Likewise.
529 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
530 when adding a member without explicit offset when this member, or
531 the previous member, is incomplete.
532 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
534 (ctf_dump_member): Do not try to print their alignment.
536 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
538 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
539 (ctf_dump_format_type): Don't emit the size for function objects.
540 Dump the element type of arrays like we dump the pointed-to type of
543 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
545 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
546 (ctf_dump_header): Add 0x to the hex magic number.
547 (ctf_dump_str): Add 0x to the hex string offsets.
548 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
549 (ctf_dump_type): Adjust. Free it when we're done.
550 (type_hex_digits): New.
551 (ctf_dump_member): Align output depending on the width of the type
552 ID being generated. Use printf padding, not a loop, to generate
555 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
557 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
559 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
562 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
563 ACLOCAL_AMFLAGS -I dirs.
564 * configure: Regenerate.
566 2021-01-01 Alan Modra <amodra@gmail.com>
568 Update year range in copyright notice of all files.
570 For older changes see ChangeLog-2020
572 Copyright (C) 2021 Free Software Foundation, Inc.
574 Copying and distribution of this file, with or without modification,
575 are permitted in any medium without royalty provided the copyright
576 notice and this notice are preserved.
582 version-control: never