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