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