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