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