libctf regen for NEWS
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
8255cf42
AM
12021-02-26 Alan Modra <amodra@gmail.com>
2
3 * Makefile.in: Regenerate.
4
93993f67
AM
52021-02-21 Alan Modra <amodra@gmail.com>
6
7 * configure.ac: Invoke AC_CANONICAL_TARGET, AC_CANONICAL_HOST
8 and AC_CANONICAL_BUILD.
9 * configure: Regenerate.
10 * Makefile.in: Regenerate.
11
f4f60336
NA
122021-02-17 Nick Alcock <nick.alcock@oracle.com>
13
14 * ctf-impl.h (ctf_dict_t) <ctf_symhash>: New.
15 <ctf_symhash_latest>: Likewise.
16 (struct ctf_archive_internal) <ctfi_crossdict_cache>: New.
17 <ctfi_symnamedicts>: New.
18 <ctfi_syms>: Remove.
19 (ctf_lookup_symbol_name): Remove.
20 * ctf-lookup.c (ctf_lookup_symbol_name): Propagate errors from
21 parent properly. Make static.
22 (ctf_lookup_symbol_idx): New, linear search for the symbol name,
23 cached in the crossdict cache's ctf_symhash (if available), or
24 this dict's (otherwise).
25 (ctf_try_lookup_indexed): Allow the symname to be passed in.
26 (ctf_lookup_by_symbol): Turn into a wrapper around...
27 (ctf_lookup_by_sym_or_name): ... this, supporting name lookup too,
28 using ctf_lookup_symbol_idx in non-writable dicts. Special-case
29 name lookup in dynamic dicts without reported symbols, which have
30 no symtab or dynsymidx but where name lookup should still work.
31 (ctf_lookup_by_symbol_name): New, another wrapper.
32 * ctf-archive.c (enosym): Note that this is present in
33 ctfi_symnamedicts too.
34 (ctf_arc_close): Adjust for removal of ctfi_syms. Free the
35 ctfi_symnamedicts.
36 (ctf_arc_flush_caches): Likewise.
37 (ctf_dict_open_cached): Memoize the first cached dict in the
38 crossdict cache.
39 (ctf_arc_lookup_symbol): Turn into a wrapper around...
40 (ctf_arc_lookup_sym_or_name): ... this. No longer cache
41 ctf_id_t lookups: just call ctf_lookup_by_symbol as needed (but
42 still cache the dicts those lookups succeed in). Add
43 lookup-by-name support, with dicts of successful lookups cached in
44 ctfi_symnamedicts. Refactor the caching code a bit.
45 (ctf_arc_lookup_symbol_name): New, another wrapper.
46 * ctf-open.c (ctf_dict_close): Free the ctf_symhash.
47 * libctf.ver (LIBCTF_1.2): New version. Add
48 ctf_lookup_by_symbol_name, ctf_arc_lookup_symbol_name.
49 * testsuite/libctf-lookup/enum-symbol.c (main): Use
50 ctf_arc_lookup_symbol rather than looking up the name ourselves.
51 Fish it out repeatedly, to make sure that symbol caching isn't
52 broken.
53 (symidx_64): Remove.
54 (symidx_32): Remove.
55 * testsuite/libctf-lookup/enum-symbol-obj.lk: Test symbol lookup
56 in an unlinked object file (indexed symtypetab sections only).
57 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.c
58 (try_maybe_reporting): Check symbol types via
59 ctf_lookup_by_symbol_name as well as ctf_symbol_next.
60 * testsuite/libctf-lookup/conflicting-type-syms.*: New test of
61 lookups in a multi-dict archive.
62
c3bf9dc5
AM
632021-02-20 Alan Modra <amodra@gmail.com>
64
65 * testsuite/config/default.exp (ld_L_opt): Define.
66 * testsuite/lib/ctf-lib.exp (load_common_lib): Delete. Instead load
67 ld-lib.exp.
68 (run_host_cmd, run_host_cmd_yesno, check_compiler_available): Delete.
69 (compile_one_cc, check_ctf_available): Delete.
70
758f5907
NA
712021-02-03 Nick Alcock <nick.alcock@oracle.com>
72
73 * configure.ac (ac_cv_libctf_bfd_elf): Include string.h.
74 * configure: Regenerated.
75
cbd8f5bb
NA
762021-02-03 Nick Alcock <nick.alcock@oracle.com>
77
78 * configure.ac (EXPECT): Check for, in order to define...
79 (TCL_TRY): ... this, if Tcl supports try/catch.
80 * Makefile.am (TCL_TRY): Run the testsuite only if set.
81 * configure: Regenerated.
82 * Makefile.in: Likewise.
83
95148614
NA
842021-02-02 Nick Alcock <nick.alcock@oracle.com>
85
86 * configure.ac (CTF_LIBADD): Remove explicit -lintl population in
87 favour of LIBINTL.
88 * Makefile.am (libctf_nobfd_la_LIBADD): No longer explicitly
89 include $(LIBINTL).
90 (check-DEJAGNU): Pass down to tests as well.
91 * configure: Regenerated.
92 * Makefile.in: Likewise.
93
ee87f50b
NA
942021-01-27 Nick Alcock <nick.alcock@oracle.com>
95
96 * ctf-string.c (ctf_str_add): Treat adding a NULL as adding "".
97 (ctf_str_add_ref): Likewise.
98 (ctf_str_add_external): Likewise.
99 * ctf-types.c (ctf_type_name_raw): Always return "" for offset 0.
100 * ctf-dedup.c (ctf_dedup_multiple_input_dicts): Don't armour
101 against NULL name.
102 (ctf_dedup_maybe_synthesize_forward): Likewise.
103
5dacd11d
NA
1042021-01-27 Nick Alcock <nick.alcock@oracle.com>
105
106 * ctf-create.c (ctf_serialize): Fix shadowing.
107
caa17049
NA
1082021-01-27 Nick Alcock <nick.alcock@oracle.com>
109
110 * ctf-create.c (ctf_add_encoded): Add check for non-empty name.
111 (ctf_add_forward): Likewise.
112 (ctf_add_typedef): Likewise.
113
78f28b89
NA
1142021-01-27 Nick Alcock <nick.alcock@oracle.com>
115
116 * ctf-open.c (init_types): Rip out code to check anonymous typedef
117 nodes.
118 * ctf-create.c (ctf_add_reftype): Likewise.
119 * ctf-lookup.c (refresh_pptrtab): Likewise.
120
35a01a04
NA
1212021-01-27 Nick Alcock <nick.alcock@oracle.com>
122
123 * ctf-impl.c (_libctf_nonnull_): Add parameters.
124 (LCTF_LINKING): New flag.
125 (ctf_dict_t) <ctf_link_flags>: Mention it.
126 * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call.
127 (ctf_write): Likewise, including in child dictionaries.
128 (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there
129 are no reported symbols.
130 * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure
131 the variable has been reported as a symbol by the linker.
132 (symtypetab_skippable): Mention relationship between SYMFP and the
133 flags.
134 (symtypetab_density): Adjust nonnullity. Exit early if no symbols
135 were reported and force-indexing is off (i.e., we are doing a
136 final link).
137 (ctf_serialize): Handle the !LCTF_LINKING case by writing out an
138 indexed, sorted symtypetab (and allow SYMFP to be NULL in this
139 case). Turn sorting off if this is a non-final link. Only delete
140 nonstatic vars if we are filtering symbols and the linker has
141 reported some.
142 * testsuite/libctf-regression/nonstatic-var-section-ld-r*:
143 New test of variable and symtypetab section population when
144 ld -r is used.
145 * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk:
146 Likewise, when ld of an executable is used.
147 * testsuite/libctf-regression/nonstatic-var-section-ld.lk:
148 Likewise, when ld -shared alone is used.
149 * testsuite/libctf-regression/nonstatic-var-section-ld*.c:
150 Lookup programs for the above.
151 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New
152 test, testing survival of symbols across ctf_write paths.
153 * testsuite/lib/ctf-lib.exp (run_lookup_test): New option,
154 nonshared, suppressing linking of the SOURCE with -shared.
155
26503e2f
NA
1562021-01-19 Nick Alcock <nick.alcock@oracle.com>
157
158 * ctf-create.c (membadd): Transform ""-named members into
159 NULL-named ones.
160 * testsuite/libctf-regression/type-add-unnamed-struct*: New test.
161
e05a3e5a
NA
1622021-01-19 Nick Alcock <nick.alcock@oracle.com>
163
164 * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
165 base type if looking up a nonexistent pointer type.
166 * testsuite/libctf-regression/pptrtab*: Test it.
167
5347ed60
AM
1682021-01-13 Alan Modra <amodra@gmail.com>
169
170 * Makefile.in: Regenerate.
171
d546b610
L
1722021-01-12 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR binutils/26792
175 * configure.ac: Use GNU_MAKE_JOBSERVER.
176 * aclocal.m4: Regenerated.
177 * configure: Likewise.
178
83b33c6c
L
1792021-01-11 H.J. Lu <hongjiu.lu@intel.com>
180
181 PR ld/27173
182 * configure: Regenerated.
183
a4966cd9
L
1842021-01-09 H.J. Lu <hongjiu.lu@intel.com>
185
186 * configure: Regenerated.
187
055bc77a
NC
1882021-01-09 Nick Clifton <nickc@redhat.com>
189
190 * 2.36 release branch crated.
191
64307045
AM
1922021-01-09 Alan Modra <amodra@gmail.com>
193
194 * configure: Regenerate.
195
f4782128
ST
1962021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
197
198 * configure: Regenerate.
199
0814dbfb
NA
2002021-01-05 Nick Alcock <nick.alcock@oracle.com>
201
202 * testsuite/libctf-lookup/struct-iteration.c (main):
203 ctf_member_count returns an int.
204
70d3120f
NA
2052021-01-05 Nick Alcock <nick.alcock@oracle.com>
206
207 * Makefile.am (BASEDIR): New.
208 (BFDDIR): Likewise.
209 (check-DEJAGNU): Add development.exp to prerequisites.
210 (development.exp): New.
211 (CONFIG_STATUS_DEPENDENCIES): New.
212 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
213 (DISTCLEANFILES): Likewise.
214 * Makefile.in: Regenerated.
215 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
216 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
217 * testsuite/libctf-regression/regression.exp: Likewise.
218
b4b6ea46
NA
2192021-01-05 Nick Alcock <nick.alcock@oracle.com>
220
221 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
222 properly.
223
abe4ca69
NA
2242021-01-05 Nick Alcock <nick.alcock@oracle.com>
225
226 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
227 <ctf_pptrtab_len>: New.
228 <ctf_pptrtab_typemax>: New.
229 * ctf-create.c (ctf_serialize): Update accordingly.
230 (ctf_add_reftype): Note that we don't need to update pptrtab here,
231 despite updating ptrtab.
232 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
233 (ctf_import): Likewise.
234 (ctf_import_unref): Likewise.
235 * ctf-lookup.c (grow_pptrtab): New.
236 (refresh_pptrtab): New, update a pptrtab.
237 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
238 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
239 use it in addition to the parent's ptrtab when parent dicts are
240 searched.
241 * testsuite/libctf-regression/regression.exp: New testsuite for
242 regression tests.
243 * testsuite/libctf-regression/pptrtab*: New test.
244 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
245 writable CTF dicts.
246 * testsuite/libctf-writable/pptrtab*: New test.
247
8769046e
NA
2482021-01-05 Nick Alcock <nick.alcock@oracle.com>
249
250 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
251
6c3a3877
NA
2522021-01-05 Nick Alcock <nick.alcock@oracle.com>
253
254 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
255 <ctn_next>: ... here.
256 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
257 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
258 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
259 (ctf_member_next): ... this. Support recursive unnamed member
260 iteration (off by default).
261 (ctf_member_info): Look up members in unnamed sub-structs.
262 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
263 (ctf_dedup_emit_struct_members): Likewise.
264 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
265 members, and a normal member after the end.
266 * testsuite/libctf-lookup/struct-iteration.c: Verify that
267 ctf_member_count is consistent with the number of successful returns
268 from a non-recursive ctf_member_next.
269 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
270 over struct members.
271 * testsuite/libctf-lookup/struct-lookup.c: New test.
272 * testsuite/libctf-lookup/struct-lookup.lk: New test.
273
abed0b07
NA
2742021-01-05 Nick Alcock <nick.alcock@oracle.com>
275
276 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
277 (ctf_link_write): Call it.
278
9bc76971
NA
2792021-01-05 Nick Alcock <nick.alcock@oracle.com>
280
281 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
282 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
283 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
284
c59e30ed
NA
2852021-01-05 Nick Alcock <nick.alcock@oracle.com>
286
287 * Makefile.am (EXPECT): New.
288 (RUNTEST): Likewise.
289 (RUNTESTFLAGS): Likewise.
290 (CC_FOR_TARGET): Likewise.
291 (check-DEJAGNU): Likewise.
292 (AUTOMAKE_OPTIONS): Add dejagnu.
293 * Makefile.in: Regenerated.
294 * testsuite/config/default.exp: New.
295 * testsuite/lib/ctf-lib.exp: Likewise.
296 * testsuite/libctf-lookup/enum.lk: New test.
297 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
298 * testsuite/libctf-lookup/enum.c: New lookup test.
299 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
300 * testsuite/libctf-lookup/lookup.exp: New.
301
1038406a
NA
3022021-01-05 Nick Alcock <nick.alcock@oracle.com>
303
304 * configure.ac (BFD_LIBADD): Remove.
305 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
306 (SHARED_LIBADD): Rename to...
307 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
308 linking statically.
309 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
310 libctf uses libintl.
311 (libctf_la_LIBADD): Reference libbfd.la directly, not via
312 BFD_LIBADD.
313 (libctf_la_DEPENDENCIES): Remove.
314 * Makefile.in: Regenerate.
315 * configure: Likewise.
316
37002871
NA
3172021-01-05 Nick Alcock <nick.alcock@oracle.com>
318
319 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
320 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
321 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
322 (CTF_FT_REFS): New.
323 (CTF_FT_BITFIELD): Likewise.
324 (CTF_FT_ID): Likewise.
325 (ctf_dump_member): Do not do indentation here. Migrate the
326 type-printing parts of this into...
327 (ctf_dump_format_type): ... here, to be shared by all type printers.
328 Get the errno value for non-representable types right. Do not print
329 bitfield info for non-bitfields. Improve the format and indentation
330 of other type output. Shuffle spacing around to make all indentation
331 either 'width of column' or 4 chars.
332 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
333 (ctf_dump_objts): Likewise. Spacing shuffle.
334 (ctf_dump_var): Likewise.
335 (type_hex_digits): Migrate down in the file, to above its new user.
336 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
337 ctf_dump_format_type. Don't trim off excess linefeeds now we no
338 longer generate them. Dump enumerated types.
339
ffeece6a
NA
3402021-01-05 Nick Alcock <nick.alcock@oracle.com>
341
342 * ctf-types.c (ctf_type_resolve): Improve comment.
343 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
344 Emit errors into the right dict.
345 (ctf_type_align): Likewise.
346 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
347 when adding a member without explicit offset when this member, or
348 the previous member, is incomplete.
349 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
350 forwards.
351 (ctf_dump_member): Do not try to print their alignment.
352
91e7ce2f
NA
3532021-01-05 Nick Alcock <nick.alcock@oracle.com>
354
355 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
356 (ctf_dump_format_type): Don't emit the size for function objects.
357 Dump the element type of arrays like we dump the pointed-to type of
358 pointers, etc.
359
57f97d0e
NA
3602021-01-05 Nick Alcock <nick.alcock@oracle.com>
361
362 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
363 (ctf_dump_header): Add 0x to the hex magic number.
364 (ctf_dump_str): Add 0x to the hex string offsets.
365 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
366 (ctf_dump_type): Adjust. Free it when we're done.
367 (type_hex_digits): New.
368 (ctf_dump_member): Align output depending on the width of the type
369 ID being generated. Use printf padding, not a loop, to generate
370 indentation.
371
b09ad6ea
NA
3722021-01-05 Nick Alcock <nick.alcock@oracle.com>
373
374 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
375
a7c23ac9
NB
3762021-01-04 Nicolas Boulenguez <nicolas@debian.org>
377
378 PR 27117
379 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
380 ACLOCAL_AMFLAGS -I dirs.
381 * configure: Regenerate.
382
250d07de
AM
3832021-01-01 Alan Modra <amodra@gmail.com>
384
385 Update year range in copyright notice of all files.
386
c2795844
AM
387For older changes see ChangeLog-2020
388\f
389Copyright (C) 2021 Free Software Foundation, Inc.
60da9d95 390
c2795844
AM
391Copying and distribution of this file, with or without modification,
392are permitted in any medium without royalty provided the copyright
393notice and this notice are preserved.
60da9d95 394
60da9d95
NA
395Local Variables:
396mode: change-log
397left-margin: 8
c2795844 398fill-column: 74
60da9d95
NA
399version-control: never
400End:
This page took 0.163902 seconds and 4 git commands to generate.