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