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