]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libctf/ChangeLog
libctf: teach ctf_add_type how forwards work
[thirdparty/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
5de9eada
NA
12019-08-03 Nick Alcock <nick.alcock@oracle.com>
2
3 * ctf-create.c (ctf_add_type): Look up and use the forwarded-to
4 type kind. Allow forwards to unify with pre-existing structs/
5 unions/enums.
6
49ea9b45
NA
72019-07-30 Nick Alcock <nick.alcock@oracle.com>
8
9 * ctf-impl.h (ctf_file_t) <ctf_link_cu_mappping>: New.
10 <ctf_link_memb_name_changer>: Likewise.
11 <ctf_link_memb_name_changer_arg>: Likewise.
12 * ctf-create.c (ctf_update): Update accordingly.
13 * ctf-open.c (ctf_file_close): Likewise.
14 * ctf-link.c (ctf_create_per_cu): Apply the cu mapping.
15 (ctf_link_add_cu_mapping): New.
16 (ctf_link_set_memb_name_changer): Likewise.
17 (ctf_change_parent_name): New.
18 (ctf_name_list_accum_cb_arg_t) <dynames>: New, storage for names
19 allocated by the caller's ctf_link_memb_name_changer.
20 <ndynames>: Likewise.
21 (ctf_accumulate_archive_names): Call the ctf_link_memb_name_changer.
22 (ctf_link_write): Likewise (for _CTF_SECTION only): also call
23 ctf_change_parent_name. Free any resulting names.
24
eabb7154
NA
252019-07-13 Nick Alcock <nick.alcock@oracle.com>
26
27 * ctf-link.c (ctf_create_per_cu): New, refactored out of...
28 (ctf_link_one_type): ... here, with parent-name setting added.
29 (check_variable): New.
30 (ctf_link_one_variable): Likewise.
31 (ctf_link_one_input_archive_member): Call it.
32 * ctf-error.c (_ctf_errlist): Updated with new errors.
33
886453cb
NA
342019-07-13 Nick Alcock <nick.alcock@oracle.com>
35
36 * ctf-impl.h (ctf_file_t): New field ctf_link_type_mapping.
37 (struct ctf_link_type_mapping_key): New.
38 (ctf_hash_type_mapping_key): Likewise.
39 (ctf_hash_eq_type_mapping_key): Likewise.
40 (ctf_add_type_mapping): Likewise.
41 (ctf_type_mapping): Likewise.
42 (ctf_dynhash_empty): Likewise.
43 * ctf-open.c (ctf_file_close): Update accordingly.
44 * ctf-create.c (ctf_update): Likewise.
45 (ctf_add_type): Populate the mapping.
46 * ctf-hash.c (ctf_hash_type_mapping_key): Hash a type mapping key.
47 (ctf_hash_eq_type_mapping_key): Check the key for equality.
48 (ctf_dynhash_insert): Fix comment typo.
49 (ctf_dynhash_empty): New.
50 * ctf-link.c (ctf_add_type_mapping): New.
51 (ctf_type_mapping): Likewise.
52 (empty_link_type_mapping): New.
53 (ctf_link_one_input_archive): Call it.
54
72c83edd
NA
552019-07-13 Nick Alcock <nick.alcock@oracle.com>
56
57 * ctf-link.c: New file, linking of the string and type sections.
58 * Makefile.am (libctf_a_SOURCES): Add it.
59 * Makefile.in: Regenerate.
60
61 * ctf-impl.h (ctf_file_t): New fields ctf_link_inputs,
62 ctf_link_outputs.
63 * ctf-create.c (ctf_update): Update accordingly.
64 * ctf-open.c (ctf_file_close): Likewise.
65 * ctf-error.c (_ctf_errlist): Updated with new errors.
66
d18f9f16
NA
672019-07-13 Nick Alcock <nick.alcock@oracle.com>
68
69 * ctf-dump.c (ctf_dump_funcs): Check the right error value.
70
b4f0e09c
NA
712019-07-13 Nick Alcock <nick.alcock@oracle.com>
72
73 * ctf-dump.c (ctf_dump): Use ctf_type_iter_all to dump types, not
74 ctf_type_iter.
75 (ctf_dump_type): Pass down the flag from ctf_type_iter_all.
76 (ctf_dump_format_type): Add non-root-type { } notation.
77 Add root flag to prototype.
78 (ctf_dump_label): Adjust accordingly.
79 (ctf_dump_objts): Likewise.
80 (ctf_dump_var): Likewise.
81
3dde2c91
NA
822019-07-13 Nick Alcock <nick.alcock@oracle.com>
83
84 * ctf-create.c (ctf_compress_write): Fix double-free.
85
5537f9b9
NA
862019-07-13 Nick Alcock <nick.alcock@oracle.com>
87
88 * ctf-archive.c (ctf_arc_write): Split off, and reimplement in terms
89 of...
90 (ctf_arc_write_fd): ... this new function.
91 * ctf-create.c (ctf_write_mem): New.
92
d851ecd3
NA
932019-07-13 Nick Alcock <nick.alcock@oracle.com>
94
95 * ctf-impl.h (ctf_str_atom_t) <csa_offset>: New field.
96 (ctf_file_t) <ctf_syn_ext_strtab>: Likewise.
97 (ctf_str_add_ref): Name the last arg.
98 (ctf_str_add_external) New.
99 (ctf_str_add_strraw_explicit): Likewise.
100 (ctf_simple_open_internal): Likewise.
101 (ctf_bufopen_internal): Likewise.
102
103 * ctf-string.c (ctf_strraw_explicit): Split from...
104 (ctf_strraw): ... here, with new support for ctf_syn_ext_strtab.
105 (ctf_str_add_ref_internal): Return the atom, not the
106 string.
107 (ctf_str_add): Adjust accordingly.
108 (ctf_str_add_ref): Likewise. Move up in the file.
109 (ctf_str_add_external): New: update the csa_offset.
110 (ctf_str_count_strtab): Only account for strings with no csa_offset
111 in the internal strtab length.
112 (ctf_str_write_strtab): If the csa_offset is set, update the
113 string's refs without writing the string out, and update the
114 ctf_syn_ext_strtab. Make OOM handling less ugly.
115 * ctf-create.c (struct ctf_sort_var_arg_cb): New.
116 (ctf_update): Handle failure to populate the strtab. Pass in the
117 new ctf_sort_var arg. Adjust for ctf_syn_ext_strtab addition.
118 Call ctf_simple_open_internal, not ctf_simple_open.
119 (ctf_sort_var): Call ctf_strraw_explicit rather than looking up
120 strings by hand.
121 * ctf-hash.c (ctf_hash_insert_type): Likewise (but using
122 ctf_strraw). Adjust to diagnose ECTF_STRTAB nonetheless.
123 * ctf-open.c (init_types): No longer filter out ECTF_STRTAB.
124 (ctf_file_close): Destroy the ctf_syn_ext_strtab.
125 (ctf_simple_open): Rename to, and reimplement as a wrapper around...
126 (ctf_simple_open_internal): ... this new function, which calls
127 ctf_bufopen_internal.
128 (ctf_bufopen): Rename to, and reimplement as a wrapper around...
129 (ctf_bufopen_internal): ... this new function, which sets
130 ctf_syn_ext_strtab.
131
0ac62312
NA
1322019-07-13 Nick Alcock <nick.alcock@oracle.com>
133
134 * ctf_types.c (ctf_type_iter_all): New.
135
2db912ba
NA
1362019-07-13 Nick Alcock <nick.alcock@oracle.com>
137
138 * ctf-open.c (init_symtab): Check for overflow against the right
139 section.
140 (upgrade_header): Set cth_objtidxoff, cth_funcidxoff to zero-length.
141 (upgrade_types_v1): Note that these sections are not checked.
142 (flip_header): Endian-swap the header fields.
143 (flip_ctf): Endian-swap the sections.
144 (flip_objts): Update comment.
145 (ctf_bufopen): Check header offsets and alignment for validity.
146
6d5944fc
NA
1472019-07-13 Nick Alcock <nick.alcock@oracle.com>
148
149 * ctf-open-bfd.c: Add <assert.h>.
150 (ctf_bfdopen_ctfsect): Open string and symbol tables using
151 techniques borrowed from bfd_elf_sym_name.
152 (ctf_new_archive_internal): Improve comment.
153 * ctf-archive.c (ctf_arc_close): Do not free the ctfi_strsect.
154 * ctf-open.c (ctf_bufopen): Allow opening with a string section but
155 no symbol section, but not vice versa.
156
9b32cba4
NA
1572019-07-08 Nick Alcock <nick.alcock@oracle.com>
158
159 * ctf-impl.h (ctf_file_t): New field ctf_openflags.
160 * ctf-open.c (ctf_bufopen): Set it. No longer dump header offsets.
161 * ctf-dump.c (dump_header): New function, dump the CTF header.
162 (ctf_dump): Call it.
163 (ctf_dump_header_strfield): New function.
164 (ctf_dump_header_sectfield): Likewise.
165
fd55eae8
NA
1662019-07-06 Nick Alcock <nick.alcock@oracle.com>
167
168 * ctf-impl.h (ctf_file_t): New fields ctf_header, ctf_dynbase,
169 ctf_cuname, ctf_dyncuname: ctf_base and ctf_buf are no longer const.
170 * ctf-open.c (ctf_set_base): Preserve the gap between ctf_buf and
171 ctf_base: do not assume that it is always sizeof (ctf_header_t).
172 Print out ctf_cuname: only print out ctf_parname if set.
173 (ctf_free_base): Removed, ctf_base is no longer freed: free
174 ctf_dynbase instead.
175 (ctf_set_version): Fix spacing.
176 (upgrade_header): New, in-place header upgrading.
177 (upgrade_types): Rename to...
178 (upgrade_types_v1): ... this. Free ctf_dynbase, not ctf_base. No
179 longer track old and new headers separately. No longer allow for
180 header sizes explicitly: squeeze the headers out on upgrade (they
181 are preserved in fp->ctf_header). Set ctf_dynbase, ctf_base and
182 ctf_buf explicitly. Use ctf_free, not ctf_free_base.
183 (upgrade_types): New, also handle ctf_parmax updating.
184 (flip_header): Flip ctf_cuname.
185 (flip_types): Flip BUF explicitly rather than deriving BUF from
186 BASE.
187 (ctf_bufopen): Store the header in fp->ctf_header. Correct minimum
188 required alignment of objtoff and funcoff. No longer store it in
189 the ctf_buf unless that buf is derived unmodified from the input.
190 Set ctf_dynbase where ctf_base is dynamically allocated. Drop locals
191 that duplicate fields in ctf_file: move allocation of ctf_file
192 further up instead. Call upgrade_header as needed. Move
193 version-specific ctf_parmax initialization into upgrade_types. More
194 concise error handling.
195 (ctf_file_close): No longer test for null pointers before freeing.
196 Free ctf_dyncuname, ctf_dynbase, and ctf_header. Do not call
197 ctf_free_base.
198 (ctf_cuname): New.
199 (ctf_cuname_set): New.
200 * ctf-create.c (ctf_update): Populate ctf_cuname.
201 (ctf_gzwrite): Write out the header explicitly. Remove obsolescent
202 comment.
203 (ctf_write): Likewise.
204 (ctf_compress_write): Get the header from ctf_header, not ctf_base.
205 Fix the compression length: fp->ctf_size never counted the CTF
206 header. Simplify the compress call accordingly.
207
a2230b5e
HPN
2082019-07-11 Hans-Peter Nilsson <hp@bitrange.com>
209
210 * ctf-endian.h: Don't assume htole64 and le64toh are always
211 present if HAVE_ENDIAN_H; also check if htole64 is defined.
212 [!WORDS_BIGENDIAN] (htole64, le64toh): Define as identity,
213 not bswap_identity_64.
214
fd361982
AM
2152019-09-18 Alan Modra <amodra@gmail.com>
216
217 * ctf-open-bfd.c: Update throughout for bfd section macro changes.
218
60391a25
PB
2192019-09-09 Phil Blundell <pb@pbcl.net>
220
221 binutils 2.33 branch created.
222
12a0b67d
NA
2232019-07-18 Nick Alcock <nick.alcock@oracle.com>
224
225 * ctf-types.c (ctf_type_aname_raw): New.
226 (ctf_func_type_info): Likewise.
227 (ctf_func_type_args): Likewise.
228 * ctf-error.c (_ctf_errlist): Fix description.
229 * ctf-lookup.c: Fix file description.
230
083114f8 2312019-06-28 Nick Alcock <nick.alcock@oracle.com>
f57cf0e3
NA
232
233 * ctf-create.c (ctf_create): Fix off-by-one error.
234
083114f8 2352019-06-28 Nick Alcock <nick.alcock@oracle.com>
f5e9c9bd
NA
236
237 * ctf-impl.h: (struct ctf_strs_writable): New, non-const version of
238 struct ctf_strs.
239 (struct ctf_dtdef): Note that dtd_data.ctt_name is unpopulated.
240 (struct ctf_str_atom): New, disambiguated single string.
241 (struct ctf_str_atom_ref): New, points to some other location that
242 references this string's offset.
243 (struct ctf_file): New members ctf_str_atoms and ctf_str_num_refs.
244 Remove member ctf_dtvstrlen: we no longer track the total strlen
245 as we add strings.
246 (ctf_str_create_atoms): Declare new function in ctf-string.c.
247 (ctf_str_free_atoms): Likewise.
248 (ctf_str_add): Likewise.
249 (ctf_str_add_ref): Likewise.
250 (ctf_str_rollback): Likewise.
251 (ctf_str_purge_refs): Likewise.
252 (ctf_str_write_strtab): Likewise.
253 (ctf_realloc): Declare new function in ctf-util.c.
254
255 * ctf-open.c (ctf_bufopen): Create the atoms table.
256 (ctf_file_close): Destroy it.
257 * ctf-create.c (ctf_update): Copy-and-free it on update. No longer
258 special-case the position of the parname string. Construct the
259 strtab by calling ctf_str_add_ref and ctf_str_write_strtab after the
260 rest of each buffer element is constructed, not via open-coding:
261 realloc the CTF buffer and append the strtab to it. No longer
262 maintain ctf_dtvstrlen. Sort the variable entry table later, after
263 strtab construction.
264 (ctf_copy_membnames): Remove: integrated into ctf_copy_{s,l,e}members.
265 (ctf_copy_smembers): Drop the string offset: call ctf_str_add_ref
266 after buffer element construction instead.
267 (ctf_copy_lmembers): Likewise.
268 (ctf_copy_emembers): Likewise.
269 (ctf_create): No longer maintain the ctf_dtvstrlen.
270 (ctf_dtd_delete): Likewise.
271 (ctf_dvd_delete): Likewise.
272 (ctf_add_generic): Likewise.
273 (ctf_add_enumerator): Likewise.
274 (ctf_add_member_offset): Likewise.
275 (ctf_add_variable): Likewise.
276 (membadd): Likewise.
277 * ctf-util.c (ctf_realloc): New, wrapper around realloc that aborts
278 if there are active ctf_str_num_refs.
279 (ctf_strraw): Move to ctf-string.c.
280 (ctf_strptr): Likewise.
281 * ctf-string.c: New file, strtab manipulation.
282
283 * Makefile.am (libctf_a_SOURCES): Add it.
284 * Makefile.in: Regenerate.
285
083114f8 2862019-06-28 Nick Alcock <nick.alcock@oracle.com>
9658dc39
NA
287
288 * ctf-impl.h (ctf_hash_iter_f): New.
289 (ctf_dynhash_iter): New declaration.
290 (ctf_dynhash_iter_remove): New declaration.
291 * ctf-hash.c (ctf_dynhash_iter): Define.
292 (ctf_dynhash_iter_remove): Likewise.
293 (ctf_hashtab_traverse): New.
294 (ctf_hashtab_traverse_remove): Likewise.
295 (struct ctf_traverse_cb_arg): Likewise.
296 (struct ctf_traverse_remove_cb_arg): Likewise.
297
083114f8 2982019-06-28 Nick Alcock <nick.alcock@oracle.com>
3e10cffc
NA
299
300 * ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element.
301
083114f8 3022019-06-28 Nick Alcock <nick.alcock@oracle.com>
c550e7ba
NA
303
304 * ctf-dump.c (ctf_dump_format_type): Prefix hex strings with 0x.
305 (ctf_dump_funcs): Likewise.
306
083114f8 3072019-06-19 Nick Alcock <nick.alcock@oracle.com>
cf02c44d
NA
308
309 * ctf-open-bfd.c: Add swap.h and ctf-endian.h.
310 (ctf_fdopen): Check for endian-swapped raw CTF magic, and
311 little-endian CTF archive magic. Do not check the CTF version:
312 ctf_simple_open does that in endian-safe ways. Do not dereference
313 null pointers on open failure.
314
083114f8 3152019-06-19 Nick Alcock <nick.alcock@oracle.com>
7cee1826
NA
316
317 * ctf-open.c (get_vbytes_common): Return the new slice size.
318 (ctf_bufopen): Flip the endianness of the CTF-section header copy.
319 Remember to copy in the CTF data when opening an uncompressed
320 foreign-endian CTF file. Prune useless variable manipulation.
321
083114f8 3222019-06-19 Nick Alcock <nick.alcock@oracle.com>
0b4fa56e
NA
323
324 * ctf-open.c (ctf_types): Fail when unidentified type kinds are
325 seen.
326
083114f8 3272019-06-19 Nick Alcock <nick.alcock@oracle.com>
364620bf
NA
328
329 * ctf-open.c (ctf_bufopen): Dump header offsets into the debugging
330 output.
331
083114f8 3322019-06-19 Nick Alcock <nick.alcock@oracle.com>
65365aa8
NA
333
334 * ctf-subr.c (_PAGESIZE): Remove.
335 (ctf_data_alloc): Likewise.
336 (ctf_data_free): Likewise.
337 (ctf_data_protect): Likewise.
338 * ctf-impl.h: Remove declarations.
339 * ctf-create.c (ctf_update): No longer call ctf_data_protect: use
340 ctf_free, not ctf_data_free.
341 (ctf_compress_write): Use ctf_data_alloc, not ctf_alloc. Free
342 the buffer again on compression error.
343 * ctf-open.c (ctf_set_base): No longer track the size: call
344 ctf_free, not ctf_data_free.
345 (upgrade_types): Likewise. Call ctf_alloc, not ctf_data_alloc.
346 (ctf_bufopen): Likewise. No longer call ctf_data_protect.
347
083114f8 3482019-06-19 Nick Alcock <nick.alcock@oracle.com>
24865428
NA
349
350 * ctf-create.c (ctf_dtd_insert): Pass on error returns from
351 ctf_dynhash_insert.
352 (ctf_dvd_insert): Likewise.
353 (ctf_add_generic): Likewise.
354 (ctf_add_variable): Likewise.
355 * ctf-impl.h: Adjust declarations.
356
3a3a077c
AM
3572019-06-14 Alan Modra <amodra@gmail.com>
358
359 * configure: Regenerate.
360
942d35f7
NA
3612019-06-06 Nick Alcock <nick.alcock@oracle.com>
362
363 * ctf-decls.h: Include <libiberty.h>.
364 * ctf-lookup.c (ctf_lookup_by_name): Call xstrndup(), not strndup().
365
595a4d43
NA
3662019-06-06 Nick Alcock <nick.alcock@oracle.com>
367
368 * ctf-dump.c (ctf_dump_format_type): Cast size_t's used in printf()s.
369 (ctf_dump_objts): Likewise.
370 (ctf_dump_funcs): Likewise.
371 (ctf_dump_member): Likewise.
372 (ctf_dump_str): Likewise.
373
f5e73be1
NA
3742019-06-06 Nick Alcock <nick.alcock@oracle.com>
375
376 * ctf-archive.c (arc_mmap_header): Mark fd as potentially unused.
377 * ctf-subr.c (ctf_data_protect): Mark both args as potentially unused.
378
62d8e3b7
NA
3792019-06-05 Nick Alcock <nick.alcock@oracle.com>
380
381 * ctf-archive.c (ctf_arc_write): Eschew %zi format specifier.
382 (ctf_arc_open_by_offset): Likewise.
383 * ctf-create.c (ctf_add_type): Likewise.
384
76fad999
TT
3852019-06-04 Tom Tromey <tromey@adacore.com>
386
387 * ctf-create.c (ctf_add_encoded, ctf_add_slice)
388 (ctf_add_member_offset): Use CHAR_BIT, not NBBY.
389
ad118caa
NA
3902019-06-04 Nick Alcock <nick.alcock@oracle.com>
391
392 * configure.ac: Check for O_CLOEXEC.
393 * ctf-decls.h (O_CLOEXEC): Define (to 0), if need be.
394 * config.h.in: Regenerate.
395 * configure: Likewise.
396
6b22174f
NA
3972019-06-04 Nick Alcock <nick.alcock@oracle.com>
398
399 * qsort_r.c: Rename to...
400 * ctf-qsort_r.c: ... this.
401 (_quicksort): Define to ctf_qsort_r.
402 * ctf-decls.h (qsort_r): Remove.
403 (ctf_qsort_r): Add.
404 (struct ctf_qsort_arg): New, transport the real ARG and COMPAR.
405 (ctf_qsort_compar_thunk): Rearrange the arguments to COMPAR.
406 * Makefile.am (libctf_a_LIBADD): Remove.
407 (libctf_a_SOURCES): New, add ctf-qsort_r.c.
408 * ctf-archive.c (ctf_arc_write): Call ctf_qsort_r, not qsort_r.
409 * ctf-create.c (ctf_update): Likewise.
410 * configure.ac: Check for BSD versus GNU qsort_r signature.
411 * Makefile.in: Regenerate.
412 * config.h.in: Likewise.
413 * configure: Likewise.
414
941accce
NA
4152019-06-03 Nick Alcock <nick.alcock@oracle.com>
416
417 * ctf-dump.c (ctf_dump_funcs): Free in the right place.
418
a0486bac
JM
4192019-05-29 Nick Alcock <nick.alcock@oracle.com>
420
421 * Makefile.am (ZLIB): New.
422 (ZLIBINC): Likewise.
423 (AM_CFLAGS): Use them.
424 (libctf_a_LIBADD): New, for LIBOBJS.
425 * configure.ac: Check for zlib, endian.h, and qsort_r.
426 * ctf-endian.h: New, providing htole64 and le64toh.
427 * swap.h: Code style fixes.
428 (bswap_identity_64): New.
429 * qsort_r.c: New, from gnulib (with one added #include).
430 * ctf-decls.h: New, providing a conditional qsort_r declaration,
431 and unconditional definitions of MIN and MAX.
432 * ctf-impl.h: Use it. Do not use <sys/errno.h>.
433 (ctf_set_errno): Now returns unsigned long.
434 * ctf-util.c (ctf_set_errno): Adjust here too.
435 * ctf-archive.c: Use ctf-endian.h.
436 (ctf_arc_open_by_offset): Use memset, not bzero. Drop cts_type,
437 cts_flags and cts_offset.
438 (ctf_arc_write): Drop debugging dependent on the size of off_t.
439 * ctf-create.c: Provide a definition of roundup if not defined.
440 (ctf_create): Drop cts_type, cts_flags and cts_offset.
441 (ctf_add_reftype): Do not check if type IDs are below zero.
442 (ctf_add_slice): Likewise.
443 (ctf_add_typedef): Likewise.
444 (ctf_add_member_offset): Cast error-returning ssize_t's to size_t
445 when known error-free. Drop CTF_ERR usage for functions returning
446 int.
447 (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning
448 int.
449 (ctf_add_variable): Likewise.
450 (enumcmp): Likewise.
451 (enumadd): Likewise.
452 (membcmp): Likewise.
453 (ctf_add_type): Likewise. Cast error-returning ssize_t's to size_t
454 when known error-free.
455 * ctf-dump.c (ctf_is_slice): Drop CTF_ERR usage for functions
456 returning int: use CTF_ERR for functions returning ctf_type_id.
457 (ctf_dump_label): Likewise.
458 (ctf_dump_objts): Likewise.
459 * ctf-labels.c (ctf_label_topmost): Likewise.
460 (ctf_label_iter): Likewise.
461 (ctf_label_info): Likewise.
462 * ctf-lookup.c (ctf_func_args): Likewise.
463 * ctf-open.c (upgrade_types): Cast to size_t where appropriate.
464 (ctf_bufopen): Likewise. Use zlib types as needed.
465 * ctf-types.c (ctf_member_iter): Drop CTF_ERR usage for functions
466 returning int.
467 (ctf_enum_iter): Likewise.
468 (ctf_type_size): Likewise.
469 (ctf_type_align): Likewise. Cast to size_t where appropriate.
470 (ctf_type_kind_unsliced): Likewise.
471 (ctf_type_kind): Likewise.
472 (ctf_type_encoding): Likewise.
473 (ctf_member_info): Likewise.
474 (ctf_array_info): Likewise.
475 (ctf_enum_value): Likewise.
476 (ctf_type_rvisit): Likewise.
477 * ctf-open-bfd.c (ctf_bfdopen): Drop cts_type, cts_flags and
478 cts_offset.
479 (ctf_simple_open): Likewise.
480 (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly.
481 * Makefile.in: Regenerate.
482 * aclocal.m4: Likewise.
483 * config.h: Likewise.
484 * configure: Likewise.
485
9698cf9b
NA
4862019-05-28 Nick Alcock <nick.alcock@oracle.com>
487
488 * configure.in: Check for bfd_section_from_elf_index.
489 * configure: Regenerate.
490 * config.h.in [HAVE_BFD_ELF]: Likewise.
491 * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it.
492 abfd is potentially unused now.
493
0e65dfba
NA
4942019-05-28 Nick Alcock <nick.alcock@oracle.com>
495
496 * Makefile.am: New.
497 * Makefile.in: Regenerated.
498 * config.h.in: Likewise.
499 * aclocal.m4: Likewise.
500 * configure: Likewise.
501
a30b3e18
NA
5022019-05-28 Nick Alcock <nick.alcock@oracle.com>
503
504 * ctf-dump.c: New.
505
6dbf2b73
NA
5062019-05-28 Nick Alcock <nick.alcock@oracle.com>
507
508 * ctf-labels.c: New.
509
6c33b742
NA
5102019-05-28 Nick Alcock <nick.alcock@oracle.com>
511
512 * ctf-impl.h (_libctf_version): New declaration.
513 * ctf-subr.c (_libctf_version): Define it.
514 (ctf_version): New.
515
c499eb68
NA
5162019-05-28 Nick Alcock <nick.alcock@oracle.com>
517
518 * ctf-create.c (enumcmp): New.
519 (enumadd): Likewise.
520 (membcmp): Likewise.
521 (membadd): Likewise.
522 (ctf_add_type): Likewise.
523
b437bfe0
NA
5242019-05-28 Nick Alcock <nick.alcock@oracle.com>
525
526 * ctf-lookup.c (isqualifier): New.
527 (ctf_lookup_by_name): Likewise.
528 (struct ctf_lookup_var_key): Likewise.
529 (ctf_lookup_var): Likewise.
530 (ctf_lookup_variable): Likewise.
531 (ctf_lookup_symbol_name): Likewise.
532 (ctf_lookup_by_symbol): Likewise.
533 (ctf_func_info): Likewise.
534 (ctf_func_args): Likewise.
535
316afdb1
NA
5362019-05-28 Nick Alcock <nick.alcock@oracle.com>
537
538 * ctf-decl.c: New file.
539 * ctf-types.c: Likewise.
540 * ctf-impl.h: New declarations.
541
143dce84
NA
5422019-05-28 Nick Alcock <nick.alcock@oracle.com>
543
544 * ctf-open-bfd.c: New file.
545 * ctf-open.c (ctf_close): New.
546 * ctf-impl.h: Include bfd.h.
547 (ctf_file): New members ctf_data_mmapped, ctf_data_mmapped_len.
548 (ctf_archive_internal): New members ctfi_abfd, ctfi_data,
549 ctfi_bfd_close.
550 (ctf_bfdopen_ctfsect): New declaration.
551 (_CTF_SECTION): likewise.
552
9402cc59
NA
5532019-05-28 Nick Alcock <nick.alcock@oracle.com>
554
555 * ctf-archive.c: New.
556 * ctf-impl.h (ctf_archive_internal): New type.
557 (ctf_arc_open_internal): New declaration.
558 (ctf_arc_bufopen): Likewise.
559 (ctf_arc_close_internal): Likewise.
560
72f33921
NA
5612019-05-28 Nick Alcock <nick.alcock@oracle.com>
562
563 * ctf-open.c: New file.
564 * swap.h: Likewise.
565
47d546f4
NA
5662019-05-28 Nick Alcock <nick.alcock@oracle.com>
567
568 * ctf-create.c: New file.
569 * ctf-lookup.c: New file.
570
a5be9bbe
NA
5712019-05-28 Nick Alcock <nick.alcock@oracle.com>
572
573 * ctf-impl.h: New definitions and declarations for type creation
574 and lookup.
575
c0754cdd
NA
5762019-05-28 Nick Alcock <nick.alcock@oracle.com>
577
578 * ctf-hash.c: New file.
579 * ctf-impl.h: New declarations.
580
479604f4
NA
5812019-05-28 Nick Alcock <nick.alcock@oracle.com>
582
583 * ctf-error.c: New file.
584
94585e7f
NA
5852019-05-28 Nick Alcock <nick.alcock@oracle.com>
586
587 * ctf-util.c: New file.
588 * elf.h: Likewise.
589 * ctf-impl.h: Include it, and add declarations.
590
60da9d95
NA
5912019-05-28 Nick Alcock <nick.alcock@oracle.com>
592
593 * ctf-impl.h: New file.
594 * ctf-subr.c: New file.
595
596\f
597Local Variables:
598mode: change-log
599left-margin: 8
600fill-column: 76
601version-control: never
602End: