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