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