Commit | Line | Data |
---|---|---|
fd361982 AM |
1 | 2019-09-18 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * ctf-open-bfd.c: Update throughout for bfd section macro changes. | |
4 | ||
60391a25 PB |
5 | 2019-09-09 Phil Blundell <pb@pbcl.net> |
6 | ||
7 | binutils 2.33 branch created. | |
8 | ||
12a0b67d NA |
9 | 2019-07-18 Nick Alcock <nick.alcock@oracle.com> |
10 | ||
11 | * ctf-types.c (ctf_type_aname_raw): New. | |
12 | (ctf_func_type_info): Likewise. | |
13 | (ctf_func_type_args): Likewise. | |
14 | * ctf-error.c (_ctf_errlist): Fix description. | |
15 | * ctf-lookup.c: Fix file description. | |
16 | ||
f57cf0e3 NA |
17 | 2019-06-28 Nick Alcock <nick.alcock@oracle.com> |
18 | ||
19 | * ctf-create.c (ctf_create): Fix off-by-one error. | |
20 | ||
f5e9c9bd NA |
21 | 2019-06-28 Nick Alcock <nick.alcock@oracle.com> |
22 | ||
23 | * ctf-impl.h: (struct ctf_strs_writable): New, non-const version of | |
24 | struct ctf_strs. | |
25 | (struct ctf_dtdef): Note that dtd_data.ctt_name is unpopulated. | |
26 | (struct ctf_str_atom): New, disambiguated single string. | |
27 | (struct ctf_str_atom_ref): New, points to some other location that | |
28 | references this string's offset. | |
29 | (struct ctf_file): New members ctf_str_atoms and ctf_str_num_refs. | |
30 | Remove member ctf_dtvstrlen: we no longer track the total strlen | |
31 | as we add strings. | |
32 | (ctf_str_create_atoms): Declare new function in ctf-string.c. | |
33 | (ctf_str_free_atoms): Likewise. | |
34 | (ctf_str_add): Likewise. | |
35 | (ctf_str_add_ref): Likewise. | |
36 | (ctf_str_rollback): Likewise. | |
37 | (ctf_str_purge_refs): Likewise. | |
38 | (ctf_str_write_strtab): Likewise. | |
39 | (ctf_realloc): Declare new function in ctf-util.c. | |
40 | ||
41 | * ctf-open.c (ctf_bufopen): Create the atoms table. | |
42 | (ctf_file_close): Destroy it. | |
43 | * ctf-create.c (ctf_update): Copy-and-free it on update. No longer | |
44 | special-case the position of the parname string. Construct the | |
45 | strtab by calling ctf_str_add_ref and ctf_str_write_strtab after the | |
46 | rest of each buffer element is constructed, not via open-coding: | |
47 | realloc the CTF buffer and append the strtab to it. No longer | |
48 | maintain ctf_dtvstrlen. Sort the variable entry table later, after | |
49 | strtab construction. | |
50 | (ctf_copy_membnames): Remove: integrated into ctf_copy_{s,l,e}members. | |
51 | (ctf_copy_smembers): Drop the string offset: call ctf_str_add_ref | |
52 | after buffer element construction instead. | |
53 | (ctf_copy_lmembers): Likewise. | |
54 | (ctf_copy_emembers): Likewise. | |
55 | (ctf_create): No longer maintain the ctf_dtvstrlen. | |
56 | (ctf_dtd_delete): Likewise. | |
57 | (ctf_dvd_delete): Likewise. | |
58 | (ctf_add_generic): Likewise. | |
59 | (ctf_add_enumerator): Likewise. | |
60 | (ctf_add_member_offset): Likewise. | |
61 | (ctf_add_variable): Likewise. | |
62 | (membadd): Likewise. | |
63 | * ctf-util.c (ctf_realloc): New, wrapper around realloc that aborts | |
64 | if there are active ctf_str_num_refs. | |
65 | (ctf_strraw): Move to ctf-string.c. | |
66 | (ctf_strptr): Likewise. | |
67 | * ctf-string.c: New file, strtab manipulation. | |
68 | ||
69 | * Makefile.am (libctf_a_SOURCES): Add it. | |
70 | * Makefile.in: Regenerate. | |
71 | ||
9658dc39 NA |
72 | 2019-06-28 Nick Alcock <nick.alcock@oracle.com> |
73 | ||
74 | * ctf-impl.h (ctf_hash_iter_f): New. | |
75 | (ctf_dynhash_iter): New declaration. | |
76 | (ctf_dynhash_iter_remove): New declaration. | |
77 | * ctf-hash.c (ctf_dynhash_iter): Define. | |
78 | (ctf_dynhash_iter_remove): Likewise. | |
79 | (ctf_hashtab_traverse): New. | |
80 | (ctf_hashtab_traverse_remove): Likewise. | |
81 | (struct ctf_traverse_cb_arg): Likewise. | |
82 | (struct ctf_traverse_remove_cb_arg): Likewise. | |
83 | ||
3e10cffc NA |
84 | 2019-06-28 Nick Alcock <nick.alcock@oracle.com> |
85 | ||
86 | * ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element. | |
87 | ||
c550e7ba NA |
88 | 2019-06-28 Nick Alcock <nick.alcock@oracle.com> |
89 | ||
90 | * ctf-dump.c (ctf_dump_format_type): Prefix hex strings with 0x. | |
91 | (ctf_dump_funcs): Likewise. | |
92 | ||
cf02c44d NA |
93 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
94 | ||
95 | * ctf-open-bfd.c: Add swap.h and ctf-endian.h. | |
96 | (ctf_fdopen): Check for endian-swapped raw CTF magic, and | |
97 | little-endian CTF archive magic. Do not check the CTF version: | |
98 | ctf_simple_open does that in endian-safe ways. Do not dereference | |
99 | null pointers on open failure. | |
100 | ||
7cee1826 NA |
101 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
102 | ||
103 | * ctf-open.c (get_vbytes_common): Return the new slice size. | |
104 | (ctf_bufopen): Flip the endianness of the CTF-section header copy. | |
105 | Remember to copy in the CTF data when opening an uncompressed | |
106 | foreign-endian CTF file. Prune useless variable manipulation. | |
107 | ||
0b4fa56e NA |
108 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
109 | ||
110 | * ctf-open.c (ctf_types): Fail when unidentified type kinds are | |
111 | seen. | |
112 | ||
364620bf NA |
113 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
114 | ||
115 | * ctf-open.c (ctf_bufopen): Dump header offsets into the debugging | |
116 | output. | |
117 | ||
65365aa8 NA |
118 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
119 | ||
120 | * ctf-subr.c (_PAGESIZE): Remove. | |
121 | (ctf_data_alloc): Likewise. | |
122 | (ctf_data_free): Likewise. | |
123 | (ctf_data_protect): Likewise. | |
124 | * ctf-impl.h: Remove declarations. | |
125 | * ctf-create.c (ctf_update): No longer call ctf_data_protect: use | |
126 | ctf_free, not ctf_data_free. | |
127 | (ctf_compress_write): Use ctf_data_alloc, not ctf_alloc. Free | |
128 | the buffer again on compression error. | |
129 | * ctf-open.c (ctf_set_base): No longer track the size: call | |
130 | ctf_free, not ctf_data_free. | |
131 | (upgrade_types): Likewise. Call ctf_alloc, not ctf_data_alloc. | |
132 | (ctf_bufopen): Likewise. No longer call ctf_data_protect. | |
133 | ||
24865428 NA |
134 | 2019-06-19 Nick Alcock <nick.alcock@oracle.com> |
135 | ||
136 | * ctf-create.c (ctf_dtd_insert): Pass on error returns from | |
137 | ctf_dynhash_insert. | |
138 | (ctf_dvd_insert): Likewise. | |
139 | (ctf_add_generic): Likewise. | |
140 | (ctf_add_variable): Likewise. | |
141 | * ctf-impl.h: Adjust declarations. | |
142 | ||
3a3a077c AM |
143 | 2019-06-14 Alan Modra <amodra@gmail.com> |
144 | ||
145 | * configure: Regenerate. | |
146 | ||
942d35f7 NA |
147 | 2019-06-06 Nick Alcock <nick.alcock@oracle.com> |
148 | ||
149 | * ctf-decls.h: Include <libiberty.h>. | |
150 | * ctf-lookup.c (ctf_lookup_by_name): Call xstrndup(), not strndup(). | |
151 | ||
595a4d43 NA |
152 | 2019-06-06 Nick Alcock <nick.alcock@oracle.com> |
153 | ||
154 | * ctf-dump.c (ctf_dump_format_type): Cast size_t's used in printf()s. | |
155 | (ctf_dump_objts): Likewise. | |
156 | (ctf_dump_funcs): Likewise. | |
157 | (ctf_dump_member): Likewise. | |
158 | (ctf_dump_str): Likewise. | |
159 | ||
f5e73be1 NA |
160 | 2019-06-06 Nick Alcock <nick.alcock@oracle.com> |
161 | ||
162 | * ctf-archive.c (arc_mmap_header): Mark fd as potentially unused. | |
163 | * ctf-subr.c (ctf_data_protect): Mark both args as potentially unused. | |
164 | ||
62d8e3b7 NA |
165 | 2019-06-05 Nick Alcock <nick.alcock@oracle.com> |
166 | ||
167 | * ctf-archive.c (ctf_arc_write): Eschew %zi format specifier. | |
168 | (ctf_arc_open_by_offset): Likewise. | |
169 | * ctf-create.c (ctf_add_type): Likewise. | |
170 | ||
76fad999 TT |
171 | 2019-06-04 Tom Tromey <tromey@adacore.com> |
172 | ||
173 | * ctf-create.c (ctf_add_encoded, ctf_add_slice) | |
174 | (ctf_add_member_offset): Use CHAR_BIT, not NBBY. | |
175 | ||
ad118caa NA |
176 | 2019-06-04 Nick Alcock <nick.alcock@oracle.com> |
177 | ||
178 | * configure.ac: Check for O_CLOEXEC. | |
179 | * ctf-decls.h (O_CLOEXEC): Define (to 0), if need be. | |
180 | * config.h.in: Regenerate. | |
181 | * configure: Likewise. | |
182 | ||
6b22174f NA |
183 | 2019-06-04 Nick Alcock <nick.alcock@oracle.com> |
184 | ||
185 | * qsort_r.c: Rename to... | |
186 | * ctf-qsort_r.c: ... this. | |
187 | (_quicksort): Define to ctf_qsort_r. | |
188 | * ctf-decls.h (qsort_r): Remove. | |
189 | (ctf_qsort_r): Add. | |
190 | (struct ctf_qsort_arg): New, transport the real ARG and COMPAR. | |
191 | (ctf_qsort_compar_thunk): Rearrange the arguments to COMPAR. | |
192 | * Makefile.am (libctf_a_LIBADD): Remove. | |
193 | (libctf_a_SOURCES): New, add ctf-qsort_r.c. | |
194 | * ctf-archive.c (ctf_arc_write): Call ctf_qsort_r, not qsort_r. | |
195 | * ctf-create.c (ctf_update): Likewise. | |
196 | * configure.ac: Check for BSD versus GNU qsort_r signature. | |
197 | * Makefile.in: Regenerate. | |
198 | * config.h.in: Likewise. | |
199 | * configure: Likewise. | |
200 | ||
941accce NA |
201 | 2019-06-03 Nick Alcock <nick.alcock@oracle.com> |
202 | ||
203 | * ctf-dump.c (ctf_dump_funcs): Free in the right place. | |
204 | ||
a0486bac JM |
205 | 2019-05-29 Nick Alcock <nick.alcock@oracle.com> |
206 | ||
207 | * Makefile.am (ZLIB): New. | |
208 | (ZLIBINC): Likewise. | |
209 | (AM_CFLAGS): Use them. | |
210 | (libctf_a_LIBADD): New, for LIBOBJS. | |
211 | * configure.ac: Check for zlib, endian.h, and qsort_r. | |
212 | * ctf-endian.h: New, providing htole64 and le64toh. | |
213 | * swap.h: Code style fixes. | |
214 | (bswap_identity_64): New. | |
215 | * qsort_r.c: New, from gnulib (with one added #include). | |
216 | * ctf-decls.h: New, providing a conditional qsort_r declaration, | |
217 | and unconditional definitions of MIN and MAX. | |
218 | * ctf-impl.h: Use it. Do not use <sys/errno.h>. | |
219 | (ctf_set_errno): Now returns unsigned long. | |
220 | * ctf-util.c (ctf_set_errno): Adjust here too. | |
221 | * ctf-archive.c: Use ctf-endian.h. | |
222 | (ctf_arc_open_by_offset): Use memset, not bzero. Drop cts_type, | |
223 | cts_flags and cts_offset. | |
224 | (ctf_arc_write): Drop debugging dependent on the size of off_t. | |
225 | * ctf-create.c: Provide a definition of roundup if not defined. | |
226 | (ctf_create): Drop cts_type, cts_flags and cts_offset. | |
227 | (ctf_add_reftype): Do not check if type IDs are below zero. | |
228 | (ctf_add_slice): Likewise. | |
229 | (ctf_add_typedef): Likewise. | |
230 | (ctf_add_member_offset): Cast error-returning ssize_t's to size_t | |
231 | when known error-free. Drop CTF_ERR usage for functions returning | |
232 | int. | |
233 | (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning | |
234 | int. | |
235 | (ctf_add_variable): Likewise. | |
236 | (enumcmp): Likewise. | |
237 | (enumadd): Likewise. | |
238 | (membcmp): Likewise. | |
239 | (ctf_add_type): Likewise. Cast error-returning ssize_t's to size_t | |
240 | when known error-free. | |
241 | * ctf-dump.c (ctf_is_slice): Drop CTF_ERR usage for functions | |
242 | returning int: use CTF_ERR for functions returning ctf_type_id. | |
243 | (ctf_dump_label): Likewise. | |
244 | (ctf_dump_objts): Likewise. | |
245 | * ctf-labels.c (ctf_label_topmost): Likewise. | |
246 | (ctf_label_iter): Likewise. | |
247 | (ctf_label_info): Likewise. | |
248 | * ctf-lookup.c (ctf_func_args): Likewise. | |
249 | * ctf-open.c (upgrade_types): Cast to size_t where appropriate. | |
250 | (ctf_bufopen): Likewise. Use zlib types as needed. | |
251 | * ctf-types.c (ctf_member_iter): Drop CTF_ERR usage for functions | |
252 | returning int. | |
253 | (ctf_enum_iter): Likewise. | |
254 | (ctf_type_size): Likewise. | |
255 | (ctf_type_align): Likewise. Cast to size_t where appropriate. | |
256 | (ctf_type_kind_unsliced): Likewise. | |
257 | (ctf_type_kind): Likewise. | |
258 | (ctf_type_encoding): Likewise. | |
259 | (ctf_member_info): Likewise. | |
260 | (ctf_array_info): Likewise. | |
261 | (ctf_enum_value): Likewise. | |
262 | (ctf_type_rvisit): Likewise. | |
263 | * ctf-open-bfd.c (ctf_bfdopen): Drop cts_type, cts_flags and | |
264 | cts_offset. | |
265 | (ctf_simple_open): Likewise. | |
266 | (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly. | |
267 | * Makefile.in: Regenerate. | |
268 | * aclocal.m4: Likewise. | |
269 | * config.h: Likewise. | |
270 | * configure: Likewise. | |
271 | ||
9698cf9b NA |
272 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
273 | ||
274 | * configure.in: Check for bfd_section_from_elf_index. | |
275 | * configure: Regenerate. | |
276 | * config.h.in [HAVE_BFD_ELF]: Likewise. | |
277 | * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it. | |
278 | abfd is potentially unused now. | |
279 | ||
0e65dfba NA |
280 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
281 | ||
282 | * Makefile.am: New. | |
283 | * Makefile.in: Regenerated. | |
284 | * config.h.in: Likewise. | |
285 | * aclocal.m4: Likewise. | |
286 | * configure: Likewise. | |
287 | ||
a30b3e18 NA |
288 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
289 | ||
290 | * ctf-dump.c: New. | |
291 | ||
6dbf2b73 NA |
292 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
293 | ||
294 | * ctf-labels.c: New. | |
295 | ||
6c33b742 NA |
296 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
297 | ||
298 | * ctf-impl.h (_libctf_version): New declaration. | |
299 | * ctf-subr.c (_libctf_version): Define it. | |
300 | (ctf_version): New. | |
301 | ||
c499eb68 NA |
302 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
303 | ||
304 | * ctf-create.c (enumcmp): New. | |
305 | (enumadd): Likewise. | |
306 | (membcmp): Likewise. | |
307 | (membadd): Likewise. | |
308 | (ctf_add_type): Likewise. | |
309 | ||
b437bfe0 NA |
310 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
311 | ||
312 | * ctf-lookup.c (isqualifier): New. | |
313 | (ctf_lookup_by_name): Likewise. | |
314 | (struct ctf_lookup_var_key): Likewise. | |
315 | (ctf_lookup_var): Likewise. | |
316 | (ctf_lookup_variable): Likewise. | |
317 | (ctf_lookup_symbol_name): Likewise. | |
318 | (ctf_lookup_by_symbol): Likewise. | |
319 | (ctf_func_info): Likewise. | |
320 | (ctf_func_args): Likewise. | |
321 | ||
316afdb1 NA |
322 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
323 | ||
324 | * ctf-decl.c: New file. | |
325 | * ctf-types.c: Likewise. | |
326 | * ctf-impl.h: New declarations. | |
327 | ||
143dce84 NA |
328 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
329 | ||
330 | * ctf-open-bfd.c: New file. | |
331 | * ctf-open.c (ctf_close): New. | |
332 | * ctf-impl.h: Include bfd.h. | |
333 | (ctf_file): New members ctf_data_mmapped, ctf_data_mmapped_len. | |
334 | (ctf_archive_internal): New members ctfi_abfd, ctfi_data, | |
335 | ctfi_bfd_close. | |
336 | (ctf_bfdopen_ctfsect): New declaration. | |
337 | (_CTF_SECTION): likewise. | |
338 | ||
9402cc59 NA |
339 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
340 | ||
341 | * ctf-archive.c: New. | |
342 | * ctf-impl.h (ctf_archive_internal): New type. | |
343 | (ctf_arc_open_internal): New declaration. | |
344 | (ctf_arc_bufopen): Likewise. | |
345 | (ctf_arc_close_internal): Likewise. | |
346 | ||
72f33921 NA |
347 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
348 | ||
349 | * ctf-open.c: New file. | |
350 | * swap.h: Likewise. | |
351 | ||
47d546f4 NA |
352 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
353 | ||
354 | * ctf-create.c: New file. | |
355 | * ctf-lookup.c: New file. | |
356 | ||
a5be9bbe NA |
357 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
358 | ||
359 | * ctf-impl.h: New definitions and declarations for type creation | |
360 | and lookup. | |
361 | ||
c0754cdd NA |
362 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
363 | ||
364 | * ctf-hash.c: New file. | |
365 | * ctf-impl.h: New declarations. | |
366 | ||
479604f4 NA |
367 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
368 | ||
369 | * ctf-error.c: New file. | |
370 | ||
94585e7f NA |
371 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
372 | ||
373 | * ctf-util.c: New file. | |
374 | * elf.h: Likewise. | |
375 | * ctf-impl.h: Include it, and add declarations. | |
376 | ||
60da9d95 NA |
377 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
378 | ||
379 | * ctf-impl.h: New file. | |
380 | * ctf-subr.c: New file. | |
381 | ||
382 | \f | |
383 | Local Variables: | |
384 | mode: change-log | |
385 | left-margin: 8 | |
386 | fill-column: 76 | |
387 | version-control: never | |
388 | End: |