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