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