1 2019-05-29 Nick Alcock <nick.alcock@oracle.com>
3 * Makefile.am (ZLIB): New.
6 (libctf_a_LIBADD): New, for LIBOBJS.
7 * configure.ac: Check for zlib, endian.h, and qsort_r.
8 * ctf-endian.h: New, providing htole64 and le64toh.
9 * swap.h: Code style fixes.
10 (bswap_identity_64): New.
11 * qsort_r.c: New, from gnulib (with one added #include).
12 * ctf-decls.h: New, providing a conditional qsort_r declaration,
13 and unconditional definitions of MIN and MAX.
14 * ctf-impl.h: Use it. Do not use <sys/errno.h>.
15 (ctf_set_errno): Now returns unsigned long.
16 * ctf-util.c (ctf_set_errno): Adjust here too.
17 * ctf-archive.c: Use ctf-endian.h.
18 (ctf_arc_open_by_offset): Use memset, not bzero. Drop cts_type,
19 cts_flags and cts_offset.
20 (ctf_arc_write): Drop debugging dependent on the size of off_t.
21 * ctf-create.c: Provide a definition of roundup if not defined.
22 (ctf_create): Drop cts_type, cts_flags and cts_offset.
23 (ctf_add_reftype): Do not check if type IDs are below zero.
24 (ctf_add_slice): Likewise.
25 (ctf_add_typedef): Likewise.
26 (ctf_add_member_offset): Cast error-returning ssize_t's to size_t
27 when known error-free. Drop CTF_ERR usage for functions returning
29 (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning
31 (ctf_add_variable): Likewise.
35 (ctf_add_type): Likewise. Cast error-returning ssize_t's to size_t
36 when known error-free.
37 * ctf-dump.c (ctf_is_slice): Drop CTF_ERR usage for functions
38 returning int: use CTF_ERR for functions returning ctf_type_id.
39 (ctf_dump_label): Likewise.
40 (ctf_dump_objts): Likewise.
41 * ctf-labels.c (ctf_label_topmost): Likewise.
42 (ctf_label_iter): Likewise.
43 (ctf_label_info): Likewise.
44 * ctf-lookup.c (ctf_func_args): Likewise.
45 * ctf-open.c (upgrade_types): Cast to size_t where appropriate.
46 (ctf_bufopen): Likewise. Use zlib types as needed.
47 * ctf-types.c (ctf_member_iter): Drop CTF_ERR usage for functions
49 (ctf_enum_iter): Likewise.
50 (ctf_type_size): Likewise.
51 (ctf_type_align): Likewise. Cast to size_t where appropriate.
52 (ctf_type_kind_unsliced): Likewise.
53 (ctf_type_kind): Likewise.
54 (ctf_type_encoding): Likewise.
55 (ctf_member_info): Likewise.
56 (ctf_array_info): Likewise.
57 (ctf_enum_value): Likewise.
58 (ctf_type_rvisit): Likewise.
59 * ctf-open-bfd.c (ctf_bfdopen): Drop cts_type, cts_flags and
61 (ctf_simple_open): Likewise.
62 (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly.
63 * Makefile.in: Regenerate.
64 * aclocal.m4: Likewise.
66 * configure: Likewise.
68 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
70 * configure.in: Check for bfd_section_from_elf_index.
71 * configure: Regenerate.
72 * config.h.in [HAVE_BFD_ELF]: Likewise.
73 * libctf/ctf_open_bfd (ctf_bfdopen_ctfsect): Use it.
74 abfd is potentially unused now.
76 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
79 * Makefile.in: Regenerated.
80 * config.h.in: Likewise.
81 * aclocal.m4: Likewise.
82 * configure: Likewise.
84 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
88 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
92 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
94 * ctf-impl.h (_libctf_version): New declaration.
95 * ctf-subr.c (_libctf_version): Define it.
98 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
100 * ctf-create.c (enumcmp): New.
104 (ctf_add_type): Likewise.
106 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
108 * ctf-lookup.c (isqualifier): New.
109 (ctf_lookup_by_name): Likewise.
110 (struct ctf_lookup_var_key): Likewise.
111 (ctf_lookup_var): Likewise.
112 (ctf_lookup_variable): Likewise.
113 (ctf_lookup_symbol_name): Likewise.
114 (ctf_lookup_by_symbol): Likewise.
115 (ctf_func_info): Likewise.
116 (ctf_func_args): Likewise.
118 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
120 * ctf-decl.c: New file.
121 * ctf-types.c: Likewise.
122 * ctf-impl.h: New declarations.
124 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
126 * ctf-open-bfd.c: New file.
127 * ctf-open.c (ctf_close): New.
128 * ctf-impl.h: Include bfd.h.
129 (ctf_file): New members ctf_data_mmapped, ctf_data_mmapped_len.
130 (ctf_archive_internal): New members ctfi_abfd, ctfi_data,
132 (ctf_bfdopen_ctfsect): New declaration.
133 (_CTF_SECTION): likewise.
135 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
137 * ctf-archive.c: New.
138 * ctf-impl.h (ctf_archive_internal): New type.
139 (ctf_arc_open_internal): New declaration.
140 (ctf_arc_bufopen): Likewise.
141 (ctf_arc_close_internal): Likewise.
143 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
145 * ctf-open.c: New file.
148 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
150 * ctf-create.c: New file.
151 * ctf-lookup.c: New file.
153 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
155 * ctf-impl.h: New definitions and declarations for type creation
158 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
160 * ctf-hash.c: New file.
161 * ctf-impl.h: New declarations.
163 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
165 * ctf-error.c: New file.
167 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
169 * ctf-util.c: New file.
171 * ctf-impl.h: Include it, and add declarations.
173 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
175 * ctf-impl.h: New file.
176 * ctf-subr.c: New file.
183 version-control: never