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