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