libctf: work with compilers not supporting GNU C attributes
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
86670658
NA
12020-06-26 Nick Alcock <nick.alcock@oracle.com>
2
3 PR libctf/25120
4 * ctf-impl.h (_libctf_printflike_): Add non-GNU-C fallback.
5 (_libctf_unlikely_): Likewise.
6 (_libctf_unused): Likewise.
7 (_libctf_malloc_): Likewise.
8
2e428e74
NA
92020-06-26 Nick Alcock <nick.alcock@oracle.com>
10
11 PR libctf/25120
12 * ctf-archive.c (search_nametbl): No longer global: declare...
13 (ctf_arc_open_by_name_internal): ... here. Use bsearch_r.
14 (search_modent_by_name): Take and use ARG for the nametbl.
15
2f6ecaed
NA
162020-06-26 Nick Alcock <nick.alcock@oracle.com>
17
18 * ctf-impl.h (ctf_new_archive_internal): Declare.
19 (ctf_arc_bufopen): Remove.
20 (ctf_archive_internal) <ctfi_free_symsect>: New.
21 * ctf-archive.c (ctf_arc_close): Use it.
22 (ctf_arc_bufopen): Fuse into...
23 (ctf_new_archive_internal): ... this, moved across from...
24 * ctf-open-bfd.c: ... here.
25 (ctf_bfdopen_ctfsect): Use ctf_arc_bufopen.
26 * libctf.ver: Add it.
27
8ffcdf18
NA
282020-06-26 Nick Alcock <nick.alcock@oracle.com>
29
30 * ctf-create.c (ctf_add_forward): Intern in the right namespace.
31 (ctf_dtd_delete): Remove correspondingly.
32 (ctf_rollback): Likewise.
33
d04a47ac
NA
342020-06-26 Nick Alcock <nick.alcock@oracle.com>
35
36 * ctf-create.c (ctf_add_type_internal): Hand back existing types
37 unchanged.
38
6bbf9da8
NA
392020-06-26 Nick Alcock <nick.alcock@oracle.com>
40
41 * ctf-create.c (ctf_add_forward): Don't add forwards to
42 types that already exist.
43
fe4c2d55
NA
442020-06-26 Nick Alcock <nick.alcock@oracle.com>
45
46 * ctf-open.c (init_types): Only intern root-visible types.
47 * ctf-create.c (ctf_dtd_insert): Likewise.
48 (ctf_dtd_delete): Only remove root-visible types.
49 (ctf_rollback): Likewise.
50 (ctf_add_generic): Adjust.
51 (ctf_add_struct_sized): Adjust comment.
52 (ctf_add_union_sized): Likewise.
53 (ctf_add_enum): Likewise.
54 * ctf-impl.h (ctf_dtd_insert): Adjust prototype.
55
11978942
JB
562020-03-11 John Baldwin <jhb@FreeBSD.org>
57
58 * swap.h (bswap_identity_64): Make static.
59
ae774686
NC
602020-01-18 Nick Clifton <nickc@redhat.com>
61
62 Binutils 2.34 branch created.
63
eb9a7e35 642020-01-05 Joel Brobecker <brobecker@adacore.com>
3a657c60
EZ
65
66 PR binutils/25155:
67 * configure.ac: Add AC_CHECK_DECLS([asprintf]).
68 * configure, config.h.in: Regenerate.
69
b14ce8bf
AM
702020-01-01 Alan Modra <amodra@gmail.com>
71
72 Update year range in copyright notice of all files.
73
cbbbc402
SM
742019-10-16 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * swap.h (bswap_16, bswap_32, bswap_64): Make static.
77
fa56cdcd
NA
782019-09-30 Nick Alcock <nick.alcock@oracle.com>
79
80 * ctf-open.c (ctf_bufopen_internal): Fix tabdamage.
81 * ctf-types.c (ctf_type_lname): Likewise.
82
ad613f1d
NA
832019-09-23 Nick Alcock <nick.alcock@oracle.com>
84
85 * ctf-open.c (ctf_import): Do not leak a ctf_file_t ref on every
86 ctf_import after the first for a given file.
87
9323dd86
NA
882019-09-23 Nick Alcock <nick.alcock@oracle.com>
89
90 * ctf-impl.h (ctf_str_append_noerr): Declare.
91 * ctf-util.c (ctf_str_append_noerr): Define in terms of
92 ctf_str_append.
93 * ctf-dump.c (str_append): New, call it.
94 (ctf_dump_format_type): Use str_append, not ctf_str_append.
95 (ctf_dump_label): Likewise.
96 (ctf_dump_objts): Likewise.
97 (ctf_dump_funcs): Likewise.
98 (ctf_dump_var): Likewise.
99 (ctf_dump_member): Likewise.
100 (ctf_dump_type): Likewise.
101 (ctf_dump): Likewise.
102
de07e349
NA
1032019-09-23 Nick Alcock <nick.alcock@oracle.com>
104
105 * ctf-impl.h (ctf_alloc): Remove.
106 (ctf_free): Likewise.
107 (ctf_strdup): Likewise.
108 * ctf-subr.c (ctf_alloc): Remove.
109 (ctf_free): Likewise.
110 * ctf-util.c (ctf_strdup): Remove.
111
112 * ctf-create.c (ctf_serialize): Use malloc, not ctf_alloc; free, not
113 ctf_free; strdup, not ctf_strdup.
114 (ctf_dtd_delete): Likewise.
115 (ctf_dvd_delete): Likewise.
116 (ctf_add_generic): Likewise.
117 (ctf_add_function): Likewise.
118 (ctf_add_enumerator): Likewise.
119 (ctf_add_member_offset): Likewise.
120 (ctf_add_variable): Likewise.
121 (membadd): Likewise.
122 (ctf_compress_write): Likewise.
123 (ctf_write_mem): Likewise.
124 * ctf-decl.c (ctf_decl_push): Likewise.
125 (ctf_decl_fini): Likewise.
126 (ctf_decl_sprintf): Likewise. Check for OOM.
127 * ctf-dump.c (ctf_dump_append): Use malloc, not ctf_alloc; free, not
128 ctf_free; strdup, not ctf_strdup.
129 (ctf_dump_free): Likewise.
130 (ctf_dump): Likewise.
131 * ctf-open.c (upgrade_types_v1): Likewise.
132 (init_types): Likewise.
133 (ctf_file_close): Likewise.
134 (ctf_bufopen_internal): Likewise. Check for OOM.
135 (ctf_parent_name_set): Likewise: report the OOM to the caller.
136 (ctf_cuname_set): Likewise.
137 (ctf_import): Likewise.
138 * ctf-string.c (ctf_str_purge_atom_refs): Use malloc, not ctf_alloc;
139 free, not ctf_free; strdup, not ctf_strdup.
140 (ctf_str_free_atom): Likewise.
141 (ctf_str_create_atoms): Likewise.
142 (ctf_str_add_ref_internal): Likewise.
143 (ctf_str_remove_ref): Likewise.
144 (ctf_str_write_strtab): Likewise.
145
9c1a2295
NA
1462019-08-09 Nick Alcock <nick.alcock@oracle.com>
147
148 * ctf-types.c (ctf_type_encoding): Fix the dynamic case to
149 work right for non-int/fps.
150
1a6ab13e
NA
1512019-08-08 Nick Alcock <nick.alcock@oracle.com>
152
153 * ctf-types.c (ctf_type_name): Don't strlen a potentially-
154 null pointer.
155
99dc3ebd
NA
1562019-08-07 Nick Alcock <nick.alcock@oracle.com>
157
158 * ctf-impl.h (ctf_file_t) <ctf_add_processing>: New.
159 * ctf-open.c (ctf_file_close): Free it.
160 * ctf-create.c (ctf_serialize): Adjust.
161 (membcmp): When reporting a conflict due to an error, report the
162 error.
163 (ctf_add_type): Turn into a ctf_add_processing wrapper. Rename to...
164 (ctf_add_type_internal): ... this. Hand back types we are already
165 in the middle of adding immediately. Hand back structs/unions with
166 the same number of members immediately. Do not walk the dynamic
167 list. Call ctf_add_type_internal, not ctf_add_type. Handle
168 forwards promoted to other types and the inverse case identically.
169 Add structs to the mapping as soon as we intern them, before they
170 gain any members.
171
676c3ecb
NA
1722019-08-09 Nick Alcock <nick.alcock@oracle.com>
173
174 * ctf-impl.h (ctf_names_t): New.
175 (ctf_lookup_t) <ctf_hash>: Now a ctf_names_t, not a ctf_hash_t.
176 (ctf_file_t) <ctf_structs>: Likewise.
177 <ctf_unions>: Likewise.
178 <ctf_enums>: Likewise.
179 <ctf_names>: Likewise.
180 <ctf_lookups>: Improve comment.
181 <ctf_ptrtab_len>: New.
182 <ctf_prov_strtab>: New.
183 <ctf_str_prov_offset>: New.
184 <ctf_dtbyname>: Remove, redundant to the names hashes.
185 <ctf_dtnextid>: Remove, redundant to ctf_typemax.
186 (ctf_dtdef_t) <dtd_name>: Remove.
187 <dtd_data>: Note that the ctt_name is now populated.
188 (ctf_str_atom_t) <csa_offset>: This is now the strtab
189 offset for internal strings too.
190 <csa_external_offset>: New, the external strtab offset.
191 (CTF_INDEX_TO_TYPEPTR): Handle the LCTF_RDWR case.
192 (ctf_name_table): New declaration.
193 (ctf_lookup_by_rawname): Likewise.
194 (ctf_lookup_by_rawhash): Likewise.
195 (ctf_set_ctl_hashes): Likewise.
196 (ctf_serialize): Likewise.
197 (ctf_dtd_insert): Adjust.
198 (ctf_simple_open_internal): Likewise.
199 (ctf_bufopen_internal): Likewise.
200 (ctf_list_empty_p): Likewise.
201 (ctf_str_remove_ref): Likewise.
202 (ctf_str_add): Returns uint32_t now.
203 (ctf_str_add_ref): Likewise.
204 (ctf_str_add_external): Now returns a boolean (int).
205 * ctf-string.c (ctf_strraw_explicit): Check the ctf_prov_strtab
206 for strings in the appropriate range.
207 (ctf_str_create_atoms): Create the ctf_prov_strtab. Detect OOM
208 when adding the null string to the new strtab.
209 (ctf_str_free_atoms): Destroy the ctf_prov_strtab.
210 (ctf_str_add_ref_internal): Add make_provisional argument. If
211 make_provisional, populate the offset and fill in the
212 ctf_prov_strtab accordingly.
213 (ctf_str_add): Return the offset, not the string.
214 (ctf_str_add_ref): Likewise.
215 (ctf_str_add_external): Return a success integer.
216 (ctf_str_remove_ref): New, remove a single ref.
217 (ctf_str_count_strtab): Do not count the initial null string's
218 length or the existence or length of any unreferenced internal
219 atoms.
220 (ctf_str_populate_sorttab): Skip atoms with no refs.
221 (ctf_str_write_strtab): Populate the nullstr earlier. Add one
222 to the cts_len for the null string, since it is no longer done
223 in ctf_str_count_strtab. Adjust for csa_external_offset rename.
224 Populate the csa_offset for both internal and external cases.
225 Flush the ctf_prov_strtab afterwards, and reset the
226 ctf_str_prov_offset.
227 * ctf-create.c (ctf_grow_ptrtab): New.
228 (ctf_create): Call it. Initialize new fields rather than old
229 ones. Tell ctf_bufopen_internal that this is a writable dictionary.
230 Set the ctl hashes and data model.
231 (ctf_update): Rename to...
232 (ctf_serialize): ... this. Leave a compatibility function behind.
233 Tell ctf_simple_open_internal that this is a writable dictionary.
234 Pass the new fields along from the old dictionary. Drop
235 ctf_dtnextid and ctf_dtbyname. Use ctf_strraw, not dtd_name.
236 Do not zero out the DTD's ctt_name.
237 (ctf_prefixed_name): Rename to...
238 (ctf_name_table): ... this. No longer return a prefixed name: return
239 the applicable name table instead.
240 (ctf_dtd_insert): Use it, and use the right name table. Pass in the
241 kind we're adding. Migrate away from dtd_name.
242 (ctf_dtd_delete): Adjust similarly. Remove the ref to the
243 deleted ctt_name.
244 (ctf_dtd_lookup_type_by_name): Remove.
245 (ctf_dynamic_type): Always return NULL on read-only dictionaries.
246 No longer check ctf_dtnextid: check ctf_typemax instead.
247 (ctf_snapshot): No longer use ctf_dtnextid: use ctf_typemax instead.
248 (ctf_rollback): Likewise. No longer fail with ECTF_OVERROLLBACK. Use
249 ctf_name_table and the right name table, and migrate away from
250 dtd_name as in ctf_dtd_delete.
251 (ctf_add_generic): Pass in the kind explicitly and pass it to
252 ctf_dtd_insert. Use ctf_typemax, not ctf_dtnextid. Migrate away
253 from dtd_name to using ctf_str_add_ref to populate the ctt_name.
254 Grow the ptrtab if needed.
255 (ctf_add_encoded): Pass in the kind.
256 (ctf_add_slice): Likewise.
257 (ctf_add_array): Likewise.
258 (ctf_add_function): Likewise.
259 (ctf_add_typedef): Likewise.
260 (ctf_add_reftype): Likewise. Initialize the ctf_ptrtab, checking
261 ctt_name rather than dtd_name.
262 (ctf_add_struct_sized): Pass in the kind. Use
263 ctf_lookup_by_rawname, not ctf_hash_lookup_type /
264 ctf_dtd_lookup_type_by_name.
265 (ctf_add_union_sized): Likewise.
266 (ctf_add_enum): Likewise.
267 (ctf_add_enum_encoded): Likewise.
268 (ctf_add_forward): Likewise.
269 (ctf_add_type): Likewise.
270 (ctf_compress_write): Call ctf_serialize: adjust for ctf_size not
271 being initialized until after the call.
272 (ctf_write_mem): Likewise.
273 (ctf_write): Likewise.
274 * ctf-archive.c (arc_write_one_ctf): Likewise.
275 * ctf-lookup.c (ctf_lookup_by_name): Use ctf_lookuup_by_rawhash, not
276 ctf_hash_lookup_type.
277 (ctf_lookup_by_id): No longer check the readonly types if the
278 dictionary is writable.
279 * ctf-open.c (init_types): Assert that this dictionary is not
280 writable. Adjust to use the new name hashes, ctf_name_table,
281 and ctf_ptrtab_len. GNU style fix for the final ptrtab scan.
282 (ctf_bufopen_internal): New 'writable' parameter. Flip on LCTF_RDWR
283 if set. Drop out early when dictionary is writable. Split the
284 ctf_lookups initialization into...
285 (ctf_set_cth_hashes): ... this new function.
286 (ctf_simple_open_internal): Adjust. New 'writable' parameter.
287 (ctf_simple_open): Adjust accordingly.
288 (ctf_bufopen): Likewise.
289 (ctf_file_close): Destroy the appropriate name hashes. No longer
290 destroy ctf_dtbyname, which is gone.
291 (ctf_getdatasect): Remove spurious "extern".
292 * ctf-types.c (ctf_lookup_by_rawname): New, look up types in the
293 specified name table, given a kind.
294 (ctf_lookup_by_rawhash): Likewise, given a ctf_names_t *.
295 (ctf_member_iter): Add support for iterating over the
296 dynamic type list.
297 (ctf_enum_iter): Likewise.
298 (ctf_variable_iter): Likewise.
299 (ctf_type_rvisit): Likewise.
300 (ctf_member_info): Add support for types in the dynamic type list.
301 (ctf_enum_name): Likewise.
302 (ctf_enum_value): Likewise.
303 (ctf_func_type_info): Likewise.
304 (ctf_func_type_args): Likewise.
305 * ctf-link.c (ctf_accumulate_archive_names): No longer call
306 ctf_update.
307 (ctf_link_write): Likewise.
308 (ctf_link_intern_extern_string): Adjust for new
309 ctf_str_add_external return value.
310 (ctf_link_add_strtab): Likewise.
311 * ctf-util.c (ctf_list_empty_p): New.
312
791915db
NA
3132019-08-05 Nick Alcock <nick.alcock@oracle.com>
314
315 * ctf-types.c (ctf_type_resolve): Return ECTF_NONREPRESENTABLE on
316 type zero.
317 * ctf-create.c (ctf_add_type): Detect and skip nonrepresentable
318 members and types.
319 (ctf_add_variable): Likewise for variables pointing to them.
320 * ctf-link.c (ctf_link_one_type): Do not warn for nonrepresentable
321 type link failure, but do warn for others.
322 * ctf-dump.c (ctf_dump_format_type): Likewise. Do not assume all
323 errors to be ENOMEM.
324 (ctf_dump_member): Likewise.
325 (ctf_dump_type): Likewise.
326 (ctf_dump_header_strfield): Do not assume all errors to be ENOMEM.
327 (ctf_dump_header_sectfield): Do not assume all errors to be ENOMEM.
328 (ctf_dump_header): Likewise.
329 (ctf_dump_label): likewise.
330 (ctf_dump_objts): likewise.
331 (ctf_dump_funcs): likewise.
332 (ctf_dump_var): likewise.
333 (ctf_dump_str): Likewise.
334
87279e3c
NA
3352019-09-30 Nick Alcock <nick.alcock@oracle.com>
336
337 * configure.ac (AC_DISABLE_SHARED): New, like opcodes/.
338 (LT_INIT): Likewise.
339 (AM_INSTALL_LIBBFD): Likewise.
340 (dlopen): Note why this is necessary in a comment.
341 (SHARED_LIBADD): Initialize for possibly-PIC libiberty: derived from
342 opcodes/.
343 (SHARED_LDFLAGS): Likewise.
344 (BFD_LIBADD): Likewise, for libbfd.
345 (BFD_DEPENDENCIES): Likewise.
346 (VERSION_FLAGS): Initialize, using a version script if ld supports
347 one, or libtool -export-symbols-regex otherwise.
348 (AC_CONFIG_MACRO_DIR): Add ../BFD.
349 * Makefile.am (ACLOCAL_AMFLAGS): Likewise.
350 (INCDIR): New.
351 (AM_CPPFLAGS): Use $(srcdir), not $(top_srcdir).
352 (noinst_LIBRARIES): Replace with...
353 [INSTALL_LIBBFD] (lib_LTLIBRARIES): This, or...
354 [!INSTALL_LIBBFD] (noinst_LTLIBRARIES): ... this, mentioning new
355 libctf-nobfd.la as well.
356 [INSTALL_LIBCTF] (include_HEADERS): Add the CTF headers.
357 [!INSTALL_LIBCTF] (include_HEADERS): New, empty.
358 (libctf_a_SOURCES): Rename to...
359 (libctf_nobfd_la_SOURCES): ... this, all of libctf other than
360 ctf-open-bfd.c.
361 (libctf_la_SOURCES): Now derived from libctf_nobfd_la_SOURCES,
362 with ctf-open-bfd.c added.
363 (libctf_nobfd_la_LIBADD): New, using @SHARED_LIBADD@.
364 (libctf_la_LIBADD): New, using @BFD_LIBADD@ as well.
365 (libctf_la_DEPENDENCIES): New, using @BFD_DEPENDENCIES@.
366 * Makefile.am [INSTALL_LIBCTF]: Use it.
367 * aclocal.m4: Add ../bfd/acinclude.m4, ../config/acx.m4, and the
368 libtool macros.
369 * libctf.ver: New, everything is version LIBCTF_1.0 currently (even
370 the unstable components).
371 * Makefile.in: Regenerated.
372 * config.h.in: Likewise.
373 * configure: Likewise.
374
3752019-07-30 Nick Alcock <nick.alcock@oracle.com>
376
377 * configure.ac (INSTALL_LIBCTF): New, controlled by
378 --enable-install-libctf.
379 [INSTALL_LIBCTF] (lib_LIBRARIES): Add libctf.a.
380 * Makefile.in: Regenerated.
381 * configure: Regenerated.
382
f046147d
NA
3832019-07-30 Nick Alcock <nick.alcock@oracle.com>
384
385 * ctf-archive.c (ctf_arc_close): Call ctfi_bfd_close if set.
386 * ctf-open-bfd.c (ctf_bfdclose): Fix comment.
387
edc8bbe9
NA
3882019-07-30 Nick Alcock <nick.alcock@oracle.com>
389
390 * ctf-open-bfd.c (ctf_fdopen): Call bfd_set_cacheable.
391
7e97445a
NA
3922019-07-13 Nick Alcock <nick.alcock@oracle.com>
393
394 * ctf-impl.h (includes): Include <sys/param.h> here.
395
5ae6af75
NA
3962019-07-30 Nick Alcock <nick.alcock@oracle.com>
397
398 * ctf-open.c (flip_lbls): Eschew for-loop initial declarations.
399 (flip_objts): Likewise.
400 (flip_vars): Likewise.
401 (flip_types): Likewise.
402
1820745a
NA
4032019-07-30 Nick Alcock <nick.alcock@oracle.com>
404
405 * ctf-hash.c (ctf_hashtab_insert): Pass in the key and value
406 freeing functions: if set, free the key and value if the slot
407 already exists. Always reassign the key.
408 (ctf_dynhash_insert): Adjust call appropriately.
409 (ctf_hash_insert_type): Likewise.
410
5de9eada
NA
4112019-08-03 Nick Alcock <nick.alcock@oracle.com>
412
413 * ctf-create.c (ctf_add_type): Look up and use the forwarded-to
414 type kind. Allow forwards to unify with pre-existing structs/
415 unions/enums.
416
49ea9b45
NA
4172019-07-30 Nick Alcock <nick.alcock@oracle.com>
418
419 * ctf-impl.h (ctf_file_t) <ctf_link_cu_mappping>: New.
420 <ctf_link_memb_name_changer>: Likewise.
421 <ctf_link_memb_name_changer_arg>: Likewise.
422 * ctf-create.c (ctf_update): Update accordingly.
423 * ctf-open.c (ctf_file_close): Likewise.
424 * ctf-link.c (ctf_create_per_cu): Apply the cu mapping.
425 (ctf_link_add_cu_mapping): New.
426 (ctf_link_set_memb_name_changer): Likewise.
427 (ctf_change_parent_name): New.
428 (ctf_name_list_accum_cb_arg_t) <dynames>: New, storage for names
429 allocated by the caller's ctf_link_memb_name_changer.
430 <ndynames>: Likewise.
431 (ctf_accumulate_archive_names): Call the ctf_link_memb_name_changer.
432 (ctf_link_write): Likewise (for _CTF_SECTION only): also call
433 ctf_change_parent_name. Free any resulting names.
434
eabb7154
NA
4352019-07-13 Nick Alcock <nick.alcock@oracle.com>
436
437 * ctf-link.c (ctf_create_per_cu): New, refactored out of...
438 (ctf_link_one_type): ... here, with parent-name setting added.
439 (check_variable): New.
440 (ctf_link_one_variable): Likewise.
441 (ctf_link_one_input_archive_member): Call it.
442 * ctf-error.c (_ctf_errlist): Updated with new errors.
443
886453cb
NA
4442019-07-13 Nick Alcock <nick.alcock@oracle.com>
445
446 * ctf-impl.h (ctf_file_t): New field ctf_link_type_mapping.
447 (struct ctf_link_type_mapping_key): New.
448 (ctf_hash_type_mapping_key): Likewise.
449 (ctf_hash_eq_type_mapping_key): Likewise.
450 (ctf_add_type_mapping): Likewise.
451 (ctf_type_mapping): Likewise.
452 (ctf_dynhash_empty): Likewise.
453 * ctf-open.c (ctf_file_close): Update accordingly.
454 * ctf-create.c (ctf_update): Likewise.
455 (ctf_add_type): Populate the mapping.
456 * ctf-hash.c (ctf_hash_type_mapping_key): Hash a type mapping key.
457 (ctf_hash_eq_type_mapping_key): Check the key for equality.
458 (ctf_dynhash_insert): Fix comment typo.
459 (ctf_dynhash_empty): New.
460 * ctf-link.c (ctf_add_type_mapping): New.
461 (ctf_type_mapping): Likewise.
462 (empty_link_type_mapping): New.
463 (ctf_link_one_input_archive): Call it.
464
72c83edd
NA
4652019-07-13 Nick Alcock <nick.alcock@oracle.com>
466
467 * ctf-link.c: New file, linking of the string and type sections.
468 * Makefile.am (libctf_a_SOURCES): Add it.
469 * Makefile.in: Regenerate.
470
471 * ctf-impl.h (ctf_file_t): New fields ctf_link_inputs,
472 ctf_link_outputs.
473 * ctf-create.c (ctf_update): Update accordingly.
474 * ctf-open.c (ctf_file_close): Likewise.
475 * ctf-error.c (_ctf_errlist): Updated with new errors.
476
d18f9f16
NA
4772019-07-13 Nick Alcock <nick.alcock@oracle.com>
478
479 * ctf-dump.c (ctf_dump_funcs): Check the right error value.
480
b4f0e09c
NA
4812019-07-13 Nick Alcock <nick.alcock@oracle.com>
482
483 * ctf-dump.c (ctf_dump): Use ctf_type_iter_all to dump types, not
484 ctf_type_iter.
485 (ctf_dump_type): Pass down the flag from ctf_type_iter_all.
486 (ctf_dump_format_type): Add non-root-type { } notation.
487 Add root flag to prototype.
488 (ctf_dump_label): Adjust accordingly.
489 (ctf_dump_objts): Likewise.
490 (ctf_dump_var): Likewise.
491
3dde2c91
NA
4922019-07-13 Nick Alcock <nick.alcock@oracle.com>
493
494 * ctf-create.c (ctf_compress_write): Fix double-free.
495
5537f9b9
NA
4962019-07-13 Nick Alcock <nick.alcock@oracle.com>
497
498 * ctf-archive.c (ctf_arc_write): Split off, and reimplement in terms
499 of...
500 (ctf_arc_write_fd): ... this new function.
501 * ctf-create.c (ctf_write_mem): New.
502
d851ecd3
NA
5032019-07-13 Nick Alcock <nick.alcock@oracle.com>
504
505 * ctf-impl.h (ctf_str_atom_t) <csa_offset>: New field.
506 (ctf_file_t) <ctf_syn_ext_strtab>: Likewise.
507 (ctf_str_add_ref): Name the last arg.
508 (ctf_str_add_external) New.
509 (ctf_str_add_strraw_explicit): Likewise.
510 (ctf_simple_open_internal): Likewise.
511 (ctf_bufopen_internal): Likewise.
512
513 * ctf-string.c (ctf_strraw_explicit): Split from...
514 (ctf_strraw): ... here, with new support for ctf_syn_ext_strtab.
515 (ctf_str_add_ref_internal): Return the atom, not the
516 string.
517 (ctf_str_add): Adjust accordingly.
518 (ctf_str_add_ref): Likewise. Move up in the file.
519 (ctf_str_add_external): New: update the csa_offset.
520 (ctf_str_count_strtab): Only account for strings with no csa_offset
521 in the internal strtab length.
522 (ctf_str_write_strtab): If the csa_offset is set, update the
523 string's refs without writing the string out, and update the
524 ctf_syn_ext_strtab. Make OOM handling less ugly.
525 * ctf-create.c (struct ctf_sort_var_arg_cb): New.
526 (ctf_update): Handle failure to populate the strtab. Pass in the
527 new ctf_sort_var arg. Adjust for ctf_syn_ext_strtab addition.
528 Call ctf_simple_open_internal, not ctf_simple_open.
529 (ctf_sort_var): Call ctf_strraw_explicit rather than looking up
530 strings by hand.
531 * ctf-hash.c (ctf_hash_insert_type): Likewise (but using
532 ctf_strraw). Adjust to diagnose ECTF_STRTAB nonetheless.
533 * ctf-open.c (init_types): No longer filter out ECTF_STRTAB.
534 (ctf_file_close): Destroy the ctf_syn_ext_strtab.
535 (ctf_simple_open): Rename to, and reimplement as a wrapper around...
536 (ctf_simple_open_internal): ... this new function, which calls
537 ctf_bufopen_internal.
538 (ctf_bufopen): Rename to, and reimplement as a wrapper around...
539 (ctf_bufopen_internal): ... this new function, which sets
540 ctf_syn_ext_strtab.
541
0ac62312
NA
5422019-07-13 Nick Alcock <nick.alcock@oracle.com>
543
544 * ctf_types.c (ctf_type_iter_all): New.
545
2db912ba
NA
5462019-07-13 Nick Alcock <nick.alcock@oracle.com>
547
548 * ctf-open.c (init_symtab): Check for overflow against the right
549 section.
550 (upgrade_header): Set cth_objtidxoff, cth_funcidxoff to zero-length.
551 (upgrade_types_v1): Note that these sections are not checked.
552 (flip_header): Endian-swap the header fields.
553 (flip_ctf): Endian-swap the sections.
554 (flip_objts): Update comment.
555 (ctf_bufopen): Check header offsets and alignment for validity.
556
6d5944fc
NA
5572019-07-13 Nick Alcock <nick.alcock@oracle.com>
558
559 * ctf-open-bfd.c: Add <assert.h>.
560 (ctf_bfdopen_ctfsect): Open string and symbol tables using
561 techniques borrowed from bfd_elf_sym_name.
562 (ctf_new_archive_internal): Improve comment.
563 * ctf-archive.c (ctf_arc_close): Do not free the ctfi_strsect.
564 * ctf-open.c (ctf_bufopen): Allow opening with a string section but
565 no symbol section, but not vice versa.
566
9b32cba4
NA
5672019-07-08 Nick Alcock <nick.alcock@oracle.com>
568
569 * ctf-impl.h (ctf_file_t): New field ctf_openflags.
570 * ctf-open.c (ctf_bufopen): Set it. No longer dump header offsets.
571 * ctf-dump.c (dump_header): New function, dump the CTF header.
572 (ctf_dump): Call it.
573 (ctf_dump_header_strfield): New function.
574 (ctf_dump_header_sectfield): Likewise.
575
fd55eae8
NA
5762019-07-06 Nick Alcock <nick.alcock@oracle.com>
577
578 * ctf-impl.h (ctf_file_t): New fields ctf_header, ctf_dynbase,
579 ctf_cuname, ctf_dyncuname: ctf_base and ctf_buf are no longer const.
580 * ctf-open.c (ctf_set_base): Preserve the gap between ctf_buf and
581 ctf_base: do not assume that it is always sizeof (ctf_header_t).
582 Print out ctf_cuname: only print out ctf_parname if set.
583 (ctf_free_base): Removed, ctf_base is no longer freed: free
584 ctf_dynbase instead.
585 (ctf_set_version): Fix spacing.
586 (upgrade_header): New, in-place header upgrading.
587 (upgrade_types): Rename to...
588 (upgrade_types_v1): ... this. Free ctf_dynbase, not ctf_base. No
589 longer track old and new headers separately. No longer allow for
590 header sizes explicitly: squeeze the headers out on upgrade (they
591 are preserved in fp->ctf_header). Set ctf_dynbase, ctf_base and
592 ctf_buf explicitly. Use ctf_free, not ctf_free_base.
593 (upgrade_types): New, also handle ctf_parmax updating.
594 (flip_header): Flip ctf_cuname.
595 (flip_types): Flip BUF explicitly rather than deriving BUF from
596 BASE.
597 (ctf_bufopen): Store the header in fp->ctf_header. Correct minimum
598 required alignment of objtoff and funcoff. No longer store it in
599 the ctf_buf unless that buf is derived unmodified from the input.
600 Set ctf_dynbase where ctf_base is dynamically allocated. Drop locals
601 that duplicate fields in ctf_file: move allocation of ctf_file
602 further up instead. Call upgrade_header as needed. Move
603 version-specific ctf_parmax initialization into upgrade_types. More
604 concise error handling.
605 (ctf_file_close): No longer test for null pointers before freeing.
606 Free ctf_dyncuname, ctf_dynbase, and ctf_header. Do not call
607 ctf_free_base.
608 (ctf_cuname): New.
609 (ctf_cuname_set): New.
610 * ctf-create.c (ctf_update): Populate ctf_cuname.
611 (ctf_gzwrite): Write out the header explicitly. Remove obsolescent
612 comment.
613 (ctf_write): Likewise.
614 (ctf_compress_write): Get the header from ctf_header, not ctf_base.
615 Fix the compression length: fp->ctf_size never counted the CTF
616 header. Simplify the compress call accordingly.
617
a2230b5e
HPN
6182019-07-11 Hans-Peter Nilsson <hp@bitrange.com>
619
620 * ctf-endian.h: Don't assume htole64 and le64toh are always
621 present if HAVE_ENDIAN_H; also check if htole64 is defined.
622 [!WORDS_BIGENDIAN] (htole64, le64toh): Define as identity,
623 not bswap_identity_64.
624
fd361982
AM
6252019-09-18 Alan Modra <amodra@gmail.com>
626
627 * ctf-open-bfd.c: Update throughout for bfd section macro changes.
628
60391a25
PB
6292019-09-09 Phil Blundell <pb@pbcl.net>
630
631 binutils 2.33 branch created.
632
12a0b67d
NA
6332019-07-18 Nick Alcock <nick.alcock@oracle.com>
634
635 * ctf-types.c (ctf_type_aname_raw): New.
636 (ctf_func_type_info): Likewise.
637 (ctf_func_type_args): Likewise.
638 * ctf-error.c (_ctf_errlist): Fix description.
639 * ctf-lookup.c: Fix file description.
640
083114f8 6412019-06-28 Nick Alcock <nick.alcock@oracle.com>
f57cf0e3
NA
642
643 * ctf-create.c (ctf_create): Fix off-by-one error.
644
083114f8 6452019-06-28 Nick Alcock <nick.alcock@oracle.com>
f5e9c9bd
NA
646
647 * ctf-impl.h: (struct ctf_strs_writable): New, non-const version of
648 struct ctf_strs.
649 (struct ctf_dtdef): Note that dtd_data.ctt_name is unpopulated.
650 (struct ctf_str_atom): New, disambiguated single string.
651 (struct ctf_str_atom_ref): New, points to some other location that
652 references this string's offset.
653 (struct ctf_file): New members ctf_str_atoms and ctf_str_num_refs.
654 Remove member ctf_dtvstrlen: we no longer track the total strlen
655 as we add strings.
656 (ctf_str_create_atoms): Declare new function in ctf-string.c.
657 (ctf_str_free_atoms): Likewise.
658 (ctf_str_add): Likewise.
659 (ctf_str_add_ref): Likewise.
660 (ctf_str_rollback): Likewise.
661 (ctf_str_purge_refs): Likewise.
662 (ctf_str_write_strtab): Likewise.
663 (ctf_realloc): Declare new function in ctf-util.c.
664
665 * ctf-open.c (ctf_bufopen): Create the atoms table.
666 (ctf_file_close): Destroy it.
667 * ctf-create.c (ctf_update): Copy-and-free it on update. No longer
668 special-case the position of the parname string. Construct the
669 strtab by calling ctf_str_add_ref and ctf_str_write_strtab after the
670 rest of each buffer element is constructed, not via open-coding:
671 realloc the CTF buffer and append the strtab to it. No longer
672 maintain ctf_dtvstrlen. Sort the variable entry table later, after
673 strtab construction.
674 (ctf_copy_membnames): Remove: integrated into ctf_copy_{s,l,e}members.
675 (ctf_copy_smembers): Drop the string offset: call ctf_str_add_ref
676 after buffer element construction instead.
677 (ctf_copy_lmembers): Likewise.
678 (ctf_copy_emembers): Likewise.
679 (ctf_create): No longer maintain the ctf_dtvstrlen.
680 (ctf_dtd_delete): Likewise.
681 (ctf_dvd_delete): Likewise.
682 (ctf_add_generic): Likewise.
683 (ctf_add_enumerator): Likewise.
684 (ctf_add_member_offset): Likewise.
685 (ctf_add_variable): Likewise.
686 (membadd): Likewise.
687 * ctf-util.c (ctf_realloc): New, wrapper around realloc that aborts
688 if there are active ctf_str_num_refs.
689 (ctf_strraw): Move to ctf-string.c.
690 (ctf_strptr): Likewise.
691 * ctf-string.c: New file, strtab manipulation.
692
693 * Makefile.am (libctf_a_SOURCES): Add it.
694 * Makefile.in: Regenerate.
695
083114f8 6962019-06-28 Nick Alcock <nick.alcock@oracle.com>
9658dc39
NA
697
698 * ctf-impl.h (ctf_hash_iter_f): New.
699 (ctf_dynhash_iter): New declaration.
700 (ctf_dynhash_iter_remove): New declaration.
701 * ctf-hash.c (ctf_dynhash_iter): Define.
702 (ctf_dynhash_iter_remove): Likewise.
703 (ctf_hashtab_traverse): New.
704 (ctf_hashtab_traverse_remove): Likewise.
705 (struct ctf_traverse_cb_arg): Likewise.
706 (struct ctf_traverse_remove_cb_arg): Likewise.
707
083114f8 7082019-06-28 Nick Alcock <nick.alcock@oracle.com>
3e10cffc
NA
709
710 * ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element.
711
083114f8 7122019-06-28 Nick Alcock <nick.alcock@oracle.com>
c550e7ba
NA
713
714 * ctf-dump.c (ctf_dump_format_type): Prefix hex strings with 0x.
715 (ctf_dump_funcs): Likewise.
716
083114f8 7172019-06-19 Nick Alcock <nick.alcock@oracle.com>
cf02c44d
NA
718
719 * ctf-open-bfd.c: Add swap.h and ctf-endian.h.
720 (ctf_fdopen): Check for endian-swapped raw CTF magic, and
721 little-endian CTF archive magic. Do not check the CTF version:
722 ctf_simple_open does that in endian-safe ways. Do not dereference
723 null pointers on open failure.
724
083114f8 7252019-06-19 Nick Alcock <nick.alcock@oracle.com>
7cee1826
NA
726
727 * ctf-open.c (get_vbytes_common): Return the new slice size.
728 (ctf_bufopen): Flip the endianness of the CTF-section header copy.
729 Remember to copy in the CTF data when opening an uncompressed
730 foreign-endian CTF file. Prune useless variable manipulation.
731
083114f8 7322019-06-19 Nick Alcock <nick.alcock@oracle.com>
0b4fa56e
NA
733
734 * ctf-open.c (ctf_types): Fail when unidentified type kinds are
735 seen.
736
083114f8 7372019-06-19 Nick Alcock <nick.alcock@oracle.com>
364620bf
NA
738
739 * ctf-open.c (ctf_bufopen): Dump header offsets into the debugging
740 output.
741
083114f8 7422019-06-19 Nick Alcock <nick.alcock@oracle.com>
65365aa8
NA
743
744 * ctf-subr.c (_PAGESIZE): Remove.
745 (ctf_data_alloc): Likewise.
746 (ctf_data_free): Likewise.
747 (ctf_data_protect): Likewise.
748 * ctf-impl.h: Remove declarations.
749 * ctf-create.c (ctf_update): No longer call ctf_data_protect: use
750 ctf_free, not ctf_data_free.
751 (ctf_compress_write): Use ctf_data_alloc, not ctf_alloc. Free
752 the buffer again on compression error.
753 * ctf-open.c (ctf_set_base): No longer track the size: call
754 ctf_free, not ctf_data_free.
755 (upgrade_types): Likewise. Call ctf_alloc, not ctf_data_alloc.
756 (ctf_bufopen): Likewise. No longer call ctf_data_protect.
757
083114f8 7582019-06-19 Nick Alcock <nick.alcock@oracle.com>
24865428
NA
759
760 * ctf-create.c (ctf_dtd_insert): Pass on error returns from
761 ctf_dynhash_insert.
762 (ctf_dvd_insert): Likewise.
763 (ctf_add_generic): Likewise.
764 (ctf_add_variable): Likewise.
765 * ctf-impl.h: Adjust declarations.
766
3a3a077c
AM
7672019-06-14 Alan Modra <amodra@gmail.com>
768
769 * configure: Regenerate.
770
942d35f7
NA
7712019-06-06 Nick Alcock <nick.alcock@oracle.com>
772
773 * ctf-decls.h: Include <libiberty.h>.
774 * ctf-lookup.c (ctf_lookup_by_name): Call xstrndup(), not strndup().
775
595a4d43
NA
7762019-06-06 Nick Alcock <nick.alcock@oracle.com>
777
778 * ctf-dump.c (ctf_dump_format_type): Cast size_t's used in printf()s.
779 (ctf_dump_objts): Likewise.
780 (ctf_dump_funcs): Likewise.
781 (ctf_dump_member): Likewise.
782 (ctf_dump_str): Likewise.
783
f5e73be1
NA
7842019-06-06 Nick Alcock <nick.alcock@oracle.com>
785
786 * ctf-archive.c (arc_mmap_header): Mark fd as potentially unused.
787 * ctf-subr.c (ctf_data_protect): Mark both args as potentially unused.
788
62d8e3b7
NA
7892019-06-05 Nick Alcock <nick.alcock@oracle.com>
790
791 * ctf-archive.c (ctf_arc_write): Eschew %zi format specifier.
792 (ctf_arc_open_by_offset): Likewise.
793 * ctf-create.c (ctf_add_type): Likewise.
794
76fad999
TT
7952019-06-04 Tom Tromey <tromey@adacore.com>
796
797 * ctf-create.c (ctf_add_encoded, ctf_add_slice)
798 (ctf_add_member_offset): Use CHAR_BIT, not NBBY.
799
ad118caa
NA
8002019-06-04 Nick Alcock <nick.alcock@oracle.com>
801
802 * configure.ac: Check for O_CLOEXEC.
803 * ctf-decls.h (O_CLOEXEC): Define (to 0), if need be.
804 * config.h.in: Regenerate.
805 * configure: Likewise.
806
6b22174f
NA
8072019-06-04 Nick Alcock <nick.alcock@oracle.com>
808
809 * qsort_r.c: Rename to...
810 * ctf-qsort_r.c: ... this.
811 (_quicksort): Define to ctf_qsort_r.
812 * ctf-decls.h (qsort_r): Remove.
813 (ctf_qsort_r): Add.
814 (struct ctf_qsort_arg): New, transport the real ARG and COMPAR.
815 (ctf_qsort_compar_thunk): Rearrange the arguments to COMPAR.
816 * Makefile.am (libctf_a_LIBADD): Remove.
817 (libctf_a_SOURCES): New, add ctf-qsort_r.c.
818 * ctf-archive.c (ctf_arc_write): Call ctf_qsort_r, not qsort_r.
819 * ctf-create.c (ctf_update): Likewise.
820 * configure.ac: Check for BSD versus GNU qsort_r signature.
821 * Makefile.in: Regenerate.
822 * config.h.in: Likewise.
823 * configure: Likewise.
824
941accce
NA
8252019-06-03 Nick Alcock <nick.alcock@oracle.com>
826
827 * ctf-dump.c (ctf_dump_funcs): Free in the right place.
828
a0486bac
JM
8292019-05-29 Nick Alcock <nick.alcock@oracle.com>
830
831 * Makefile.am (ZLIB): New.
832 (ZLIBINC): Likewise.
833 (AM_CFLAGS): Use them.
834 (libctf_a_LIBADD): New, for LIBOBJS.
835 * configure.ac: Check for zlib, endian.h, and qsort_r.
836 * ctf-endian.h: New, providing htole64 and le64toh.
837 * swap.h: Code style fixes.
838 (bswap_identity_64): New.
839 * qsort_r.c: New, from gnulib (with one added #include).
840 * ctf-decls.h: New, providing a conditional qsort_r declaration,
841 and unconditional definitions of MIN and MAX.
842 * ctf-impl.h: Use it. Do not use <sys/errno.h>.
843 (ctf_set_errno): Now returns unsigned long.
844 * ctf-util.c (ctf_set_errno): Adjust here too.
845 * ctf-archive.c: Use ctf-endian.h.
846 (ctf_arc_open_by_offset): Use memset, not bzero. Drop cts_type,
847 cts_flags and cts_offset.
848 (ctf_arc_write): Drop debugging dependent on the size of off_t.
849 * ctf-create.c: Provide a definition of roundup if not defined.
850 (ctf_create): Drop cts_type, cts_flags and cts_offset.
851 (ctf_add_reftype): Do not check if type IDs are below zero.
852 (ctf_add_slice): Likewise.
853 (ctf_add_typedef): Likewise.
854 (ctf_add_member_offset): Cast error-returning ssize_t's to size_t
855 when known error-free. Drop CTF_ERR usage for functions returning
856 int.
857 (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning
858 int.
859 (ctf_add_variable): Likewise.
860 (enumcmp): Likewise.
861 (enumadd): Likewise.
862 (membcmp): Likewise.
863 (ctf_add_type): Likewise. Cast error-returning ssize_t's to size_t
864 when known error-free.
865 * ctf-dump.c (ctf_is_slice): Drop CTF_ERR usage for functions
866 returning int: use CTF_ERR for functions returning ctf_type_id.
867 (ctf_dump_label): Likewise.
868 (ctf_dump_objts): Likewise.
869 * ctf-labels.c (ctf_label_topmost): Likewise.
870 (ctf_label_iter): Likewise.
871 (ctf_label_info): Likewise.
872 * ctf-lookup.c (ctf_func_args): Likewise.
873 * ctf-open.c (upgrade_types): Cast to size_t where appropriate.
874 (ctf_bufopen): Likewise. Use zlib types as needed.
875 * ctf-types.c (ctf_member_iter): Drop CTF_ERR usage for functions
876 returning int.
877 (ctf_enum_iter): Likewise.
878 (ctf_type_size): Likewise.
879 (ctf_type_align): Likewise. Cast to size_t where appropriate.
880 (ctf_type_kind_unsliced): Likewise.
881 (ctf_type_kind): Likewise.
882 (ctf_type_encoding): Likewise.
883 (ctf_member_info): Likewise.
884 (ctf_array_info): Likewise.
885 (ctf_enum_value): Likewise.
886 (ctf_type_rvisit): Likewise.
887 * ctf-open-bfd.c (ctf_bfdopen): Drop cts_type, cts_flags and
888 cts_offset.
889 (ctf_simple_open): Likewise.
890 (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly.
891 * Makefile.in: Regenerate.
892 * aclocal.m4: Likewise.
893 * config.h: Likewise.
894 * configure: Likewise.
895
9698cf9b
NA
8962019-05-28 Nick Alcock <nick.alcock@oracle.com>
897
898 * configure.in: Check for bfd_section_from_elf_index.
899 * configure: Regenerate.
900 * config.h.in [HAVE_BFD_ELF]: Likewise.
901 * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it.
902 abfd is potentially unused now.
903
0e65dfba
NA
9042019-05-28 Nick Alcock <nick.alcock@oracle.com>
905
906 * Makefile.am: New.
907 * Makefile.in: Regenerated.
908 * config.h.in: Likewise.
909 * aclocal.m4: Likewise.
910 * configure: Likewise.
911
a30b3e18
NA
9122019-05-28 Nick Alcock <nick.alcock@oracle.com>
913
914 * ctf-dump.c: New.
915
6dbf2b73
NA
9162019-05-28 Nick Alcock <nick.alcock@oracle.com>
917
918 * ctf-labels.c: New.
919
6c33b742
NA
9202019-05-28 Nick Alcock <nick.alcock@oracle.com>
921
922 * ctf-impl.h (_libctf_version): New declaration.
923 * ctf-subr.c (_libctf_version): Define it.
924 (ctf_version): New.
925
c499eb68
NA
9262019-05-28 Nick Alcock <nick.alcock@oracle.com>
927
928 * ctf-create.c (enumcmp): New.
929 (enumadd): Likewise.
930 (membcmp): Likewise.
931 (membadd): Likewise.
932 (ctf_add_type): Likewise.
933
b437bfe0
NA
9342019-05-28 Nick Alcock <nick.alcock@oracle.com>
935
936 * ctf-lookup.c (isqualifier): New.
937 (ctf_lookup_by_name): Likewise.
938 (struct ctf_lookup_var_key): Likewise.
939 (ctf_lookup_var): Likewise.
940 (ctf_lookup_variable): Likewise.
941 (ctf_lookup_symbol_name): Likewise.
942 (ctf_lookup_by_symbol): Likewise.
943 (ctf_func_info): Likewise.
944 (ctf_func_args): Likewise.
945
316afdb1
NA
9462019-05-28 Nick Alcock <nick.alcock@oracle.com>
947
948 * ctf-decl.c: New file.
949 * ctf-types.c: Likewise.
950 * ctf-impl.h: New declarations.
951
143dce84
NA
9522019-05-28 Nick Alcock <nick.alcock@oracle.com>
953
954 * ctf-open-bfd.c: New file.
955 * ctf-open.c (ctf_close): New.
956 * ctf-impl.h: Include bfd.h.
957 (ctf_file): New members ctf_data_mmapped, ctf_data_mmapped_len.
958 (ctf_archive_internal): New members ctfi_abfd, ctfi_data,
959 ctfi_bfd_close.
960 (ctf_bfdopen_ctfsect): New declaration.
961 (_CTF_SECTION): likewise.
962
9402cc59
NA
9632019-05-28 Nick Alcock <nick.alcock@oracle.com>
964
965 * ctf-archive.c: New.
966 * ctf-impl.h (ctf_archive_internal): New type.
967 (ctf_arc_open_internal): New declaration.
968 (ctf_arc_bufopen): Likewise.
969 (ctf_arc_close_internal): Likewise.
970
72f33921
NA
9712019-05-28 Nick Alcock <nick.alcock@oracle.com>
972
973 * ctf-open.c: New file.
974 * swap.h: Likewise.
975
47d546f4
NA
9762019-05-28 Nick Alcock <nick.alcock@oracle.com>
977
978 * ctf-create.c: New file.
979 * ctf-lookup.c: New file.
980
a5be9bbe
NA
9812019-05-28 Nick Alcock <nick.alcock@oracle.com>
982
983 * ctf-impl.h: New definitions and declarations for type creation
984 and lookup.
985
c0754cdd
NA
9862019-05-28 Nick Alcock <nick.alcock@oracle.com>
987
988 * ctf-hash.c: New file.
989 * ctf-impl.h: New declarations.
990
479604f4
NA
9912019-05-28 Nick Alcock <nick.alcock@oracle.com>
992
993 * ctf-error.c: New file.
994
94585e7f
NA
9952019-05-28 Nick Alcock <nick.alcock@oracle.com>
996
997 * ctf-util.c: New file.
998 * elf.h: Likewise.
999 * ctf-impl.h: Include it, and add declarations.
1000
60da9d95
NA
10012019-05-28 Nick Alcock <nick.alcock@oracle.com>
1002
1003 * ctf-impl.h: New file.
1004 * ctf-subr.c: New file.
1005
1006\f
1007Local Variables:
1008mode: change-log
1009left-margin: 8
1010fill-column: 76
1011version-control: never
1012End:
This page took 0.120881 seconds and 4 git commands to generate.