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