dd3113b316cb53cc6ccc174f01a3170a4198ace8
[deliverable/binutils-gdb.git] / libctf / ChangeLog
1 2019-06-28 Nick Alcock <nick.alcock@oracle.com>
2
3 * ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element.
4
5 2019-06-28 Nick Alcock <nick.alcock@oracle.com>
6
7 * ctf-dump.c (ctf_dump_format_type): Prefix hex strings with 0x.
8 (ctf_dump_funcs): Likewise.
9
10 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
11
12 * ctf-open-bfd.c: Add swap.h and ctf-endian.h.
13 (ctf_fdopen): Check for endian-swapped raw CTF magic, and
14 little-endian CTF archive magic. Do not check the CTF version:
15 ctf_simple_open does that in endian-safe ways. Do not dereference
16 null pointers on open failure.
17
18 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
19
20 * ctf-open.c (get_vbytes_common): Return the new slice size.
21 (ctf_bufopen): Flip the endianness of the CTF-section header copy.
22 Remember to copy in the CTF data when opening an uncompressed
23 foreign-endian CTF file. Prune useless variable manipulation.
24
25 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
26
27 * ctf-open.c (ctf_types): Fail when unidentified type kinds are
28 seen.
29
30 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
31
32 * ctf-open.c (ctf_bufopen): Dump header offsets into the debugging
33 output.
34
35 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
36
37 * ctf-subr.c (_PAGESIZE): Remove.
38 (ctf_data_alloc): Likewise.
39 (ctf_data_free): Likewise.
40 (ctf_data_protect): Likewise.
41 * ctf-impl.h: Remove declarations.
42 * ctf-create.c (ctf_update): No longer call ctf_data_protect: use
43 ctf_free, not ctf_data_free.
44 (ctf_compress_write): Use ctf_data_alloc, not ctf_alloc. Free
45 the buffer again on compression error.
46 * ctf-open.c (ctf_set_base): No longer track the size: call
47 ctf_free, not ctf_data_free.
48 (upgrade_types): Likewise. Call ctf_alloc, not ctf_data_alloc.
49 (ctf_bufopen): Likewise. No longer call ctf_data_protect.
50
51 2019-06-19 Nick Alcock <nick.alcock@oracle.com>
52
53 * ctf-create.c (ctf_dtd_insert): Pass on error returns from
54 ctf_dynhash_insert.
55 (ctf_dvd_insert): Likewise.
56 (ctf_add_generic): Likewise.
57 (ctf_add_variable): Likewise.
58 * ctf-impl.h: Adjust declarations.
59
60 2019-06-14 Alan Modra <amodra@gmail.com>
61
62 * configure: Regenerate.
63
64 2019-06-06 Nick Alcock <nick.alcock@oracle.com>
65
66 * ctf-decls.h: Include <libiberty.h>.
67 * ctf-lookup.c (ctf_lookup_by_name): Call xstrndup(), not strndup().
68
69 2019-06-06 Nick Alcock <nick.alcock@oracle.com>
70
71 * ctf-dump.c (ctf_dump_format_type): Cast size_t's used in printf()s.
72 (ctf_dump_objts): Likewise.
73 (ctf_dump_funcs): Likewise.
74 (ctf_dump_member): Likewise.
75 (ctf_dump_str): Likewise.
76
77 2019-06-06 Nick Alcock <nick.alcock@oracle.com>
78
79 * ctf-archive.c (arc_mmap_header): Mark fd as potentially unused.
80 * ctf-subr.c (ctf_data_protect): Mark both args as potentially unused.
81
82 2019-06-05 Nick Alcock <nick.alcock@oracle.com>
83
84 * ctf-archive.c (ctf_arc_write): Eschew %zi format specifier.
85 (ctf_arc_open_by_offset): Likewise.
86 * ctf-create.c (ctf_add_type): Likewise.
87
88 2019-06-04 Tom Tromey <tromey@adacore.com>
89
90 * ctf-create.c (ctf_add_encoded, ctf_add_slice)
91 (ctf_add_member_offset): Use CHAR_BIT, not NBBY.
92
93 2019-06-04 Nick Alcock <nick.alcock@oracle.com>
94
95 * configure.ac: Check for O_CLOEXEC.
96 * ctf-decls.h (O_CLOEXEC): Define (to 0), if need be.
97 * config.h.in: Regenerate.
98 * configure: Likewise.
99
100 2019-06-04 Nick Alcock <nick.alcock@oracle.com>
101
102 * qsort_r.c: Rename to...
103 * ctf-qsort_r.c: ... this.
104 (_quicksort): Define to ctf_qsort_r.
105 * ctf-decls.h (qsort_r): Remove.
106 (ctf_qsort_r): Add.
107 (struct ctf_qsort_arg): New, transport the real ARG and COMPAR.
108 (ctf_qsort_compar_thunk): Rearrange the arguments to COMPAR.
109 * Makefile.am (libctf_a_LIBADD): Remove.
110 (libctf_a_SOURCES): New, add ctf-qsort_r.c.
111 * ctf-archive.c (ctf_arc_write): Call ctf_qsort_r, not qsort_r.
112 * ctf-create.c (ctf_update): Likewise.
113 * configure.ac: Check for BSD versus GNU qsort_r signature.
114 * Makefile.in: Regenerate.
115 * config.h.in: Likewise.
116 * configure: Likewise.
117
118 2019-06-03 Nick Alcock <nick.alcock@oracle.com>
119
120 * ctf-dump.c (ctf_dump_funcs): Free in the right place.
121
122 2019-05-29 Nick Alcock <nick.alcock@oracle.com>
123
124 * Makefile.am (ZLIB): New.
125 (ZLIBINC): Likewise.
126 (AM_CFLAGS): Use them.
127 (libctf_a_LIBADD): New, for LIBOBJS.
128 * configure.ac: Check for zlib, endian.h, and qsort_r.
129 * ctf-endian.h: New, providing htole64 and le64toh.
130 * swap.h: Code style fixes.
131 (bswap_identity_64): New.
132 * qsort_r.c: New, from gnulib (with one added #include).
133 * ctf-decls.h: New, providing a conditional qsort_r declaration,
134 and unconditional definitions of MIN and MAX.
135 * ctf-impl.h: Use it. Do not use <sys/errno.h>.
136 (ctf_set_errno): Now returns unsigned long.
137 * ctf-util.c (ctf_set_errno): Adjust here too.
138 * ctf-archive.c: Use ctf-endian.h.
139 (ctf_arc_open_by_offset): Use memset, not bzero. Drop cts_type,
140 cts_flags and cts_offset.
141 (ctf_arc_write): Drop debugging dependent on the size of off_t.
142 * ctf-create.c: Provide a definition of roundup if not defined.
143 (ctf_create): Drop cts_type, cts_flags and cts_offset.
144 (ctf_add_reftype): Do not check if type IDs are below zero.
145 (ctf_add_slice): Likewise.
146 (ctf_add_typedef): Likewise.
147 (ctf_add_member_offset): Cast error-returning ssize_t's to size_t
148 when known error-free. Drop CTF_ERR usage for functions returning
149 int.
150 (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning
151 int.
152 (ctf_add_variable): Likewise.
153 (enumcmp): Likewise.
154 (enumadd): Likewise.
155 (membcmp): Likewise.
156 (ctf_add_type): Likewise. Cast error-returning ssize_t's to size_t
157 when known error-free.
158 * ctf-dump.c (ctf_is_slice): Drop CTF_ERR usage for functions
159 returning int: use CTF_ERR for functions returning ctf_type_id.
160 (ctf_dump_label): Likewise.
161 (ctf_dump_objts): Likewise.
162 * ctf-labels.c (ctf_label_topmost): Likewise.
163 (ctf_label_iter): Likewise.
164 (ctf_label_info): Likewise.
165 * ctf-lookup.c (ctf_func_args): Likewise.
166 * ctf-open.c (upgrade_types): Cast to size_t where appropriate.
167 (ctf_bufopen): Likewise. Use zlib types as needed.
168 * ctf-types.c (ctf_member_iter): Drop CTF_ERR usage for functions
169 returning int.
170 (ctf_enum_iter): Likewise.
171 (ctf_type_size): Likewise.
172 (ctf_type_align): Likewise. Cast to size_t where appropriate.
173 (ctf_type_kind_unsliced): Likewise.
174 (ctf_type_kind): Likewise.
175 (ctf_type_encoding): Likewise.
176 (ctf_member_info): Likewise.
177 (ctf_array_info): Likewise.
178 (ctf_enum_value): Likewise.
179 (ctf_type_rvisit): Likewise.
180 * ctf-open-bfd.c (ctf_bfdopen): Drop cts_type, cts_flags and
181 cts_offset.
182 (ctf_simple_open): Likewise.
183 (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly.
184 * Makefile.in: Regenerate.
185 * aclocal.m4: Likewise.
186 * config.h: Likewise.
187 * configure: Likewise.
188
189 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
190
191 * configure.in: Check for bfd_section_from_elf_index.
192 * configure: Regenerate.
193 * config.h.in [HAVE_BFD_ELF]: Likewise.
194 * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it.
195 abfd is potentially unused now.
196
197 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
198
199 * Makefile.am: New.
200 * Makefile.in: Regenerated.
201 * config.h.in: Likewise.
202 * aclocal.m4: Likewise.
203 * configure: Likewise.
204
205 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
206
207 * ctf-dump.c: New.
208
209 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
210
211 * ctf-labels.c: New.
212
213 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
214
215 * ctf-impl.h (_libctf_version): New declaration.
216 * ctf-subr.c (_libctf_version): Define it.
217 (ctf_version): New.
218
219 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
220
221 * ctf-create.c (enumcmp): New.
222 (enumadd): Likewise.
223 (membcmp): Likewise.
224 (membadd): Likewise.
225 (ctf_add_type): Likewise.
226
227 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
228
229 * ctf-lookup.c (isqualifier): New.
230 (ctf_lookup_by_name): Likewise.
231 (struct ctf_lookup_var_key): Likewise.
232 (ctf_lookup_var): Likewise.
233 (ctf_lookup_variable): Likewise.
234 (ctf_lookup_symbol_name): Likewise.
235 (ctf_lookup_by_symbol): Likewise.
236 (ctf_func_info): Likewise.
237 (ctf_func_args): Likewise.
238
239 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
240
241 * ctf-decl.c: New file.
242 * ctf-types.c: Likewise.
243 * ctf-impl.h: New declarations.
244
245 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
246
247 * ctf-open-bfd.c: New file.
248 * ctf-open.c (ctf_close): New.
249 * ctf-impl.h: Include bfd.h.
250 (ctf_file): New members ctf_data_mmapped, ctf_data_mmapped_len.
251 (ctf_archive_internal): New members ctfi_abfd, ctfi_data,
252 ctfi_bfd_close.
253 (ctf_bfdopen_ctfsect): New declaration.
254 (_CTF_SECTION): likewise.
255
256 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
257
258 * ctf-archive.c: New.
259 * ctf-impl.h (ctf_archive_internal): New type.
260 (ctf_arc_open_internal): New declaration.
261 (ctf_arc_bufopen): Likewise.
262 (ctf_arc_close_internal): Likewise.
263
264 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
265
266 * ctf-open.c: New file.
267 * swap.h: Likewise.
268
269 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
270
271 * ctf-create.c: New file.
272 * ctf-lookup.c: New file.
273
274 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
275
276 * ctf-impl.h: New definitions and declarations for type creation
277 and lookup.
278
279 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
280
281 * ctf-hash.c: New file.
282 * ctf-impl.h: New declarations.
283
284 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
285
286 * ctf-error.c: New file.
287
288 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
289
290 * ctf-util.c: New file.
291 * elf.h: Likewise.
292 * ctf-impl.h: Include it, and add declarations.
293
294 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
295
296 * ctf-impl.h: New file.
297 * ctf-subr.c: New file.
298
299 \f
300 Local Variables:
301 mode: change-log
302 left-margin: 8
303 fill-column: 76
304 version-control: never
305 End:
This page took 0.035609 seconds and 3 git commands to generate.