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