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