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