Commit | Line | Data |
---|---|---|
a0486bac JM |
1 | 2019-05-29 Nick Alcock <nick.alcock@oracle.com> |
2 | ||
3 | * Makefile.am (ZLIB): New. | |
4 | (ZLIBINC): Likewise. | |
5 | (AM_CFLAGS): Use them. | |
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 | |
28 | int. | |
29 | (ctf_add_member_encoded): Drop CTF_ERR usage for functions returning | |
30 | int. | |
31 | (ctf_add_variable): Likewise. | |
32 | (enumcmp): Likewise. | |
33 | (enumadd): Likewise. | |
34 | (membcmp): 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 | |
48 | returning int. | |
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 | |
60 | cts_offset. | |
61 | (ctf_simple_open): Likewise. | |
62 | (ctf_bfdopen_ctfsect): Likewise. Set cts_size properly. | |
63 | * Makefile.in: Regenerate. | |
64 | * aclocal.m4: Likewise. | |
65 | * config.h: Likewise. | |
66 | * configure: Likewise. | |
67 | ||
9698cf9b NA |
68 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
69 | ||
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. | |
75 | ||
0e65dfba NA |
76 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
77 | ||
78 | * Makefile.am: New. | |
79 | * Makefile.in: Regenerated. | |
80 | * config.h.in: Likewise. | |
81 | * aclocal.m4: Likewise. | |
82 | * configure: Likewise. | |
83 | ||
a30b3e18 NA |
84 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
85 | ||
86 | * ctf-dump.c: New. | |
87 | ||
6dbf2b73 NA |
88 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
89 | ||
90 | * ctf-labels.c: New. | |
91 | ||
6c33b742 NA |
92 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
93 | ||
94 | * ctf-impl.h (_libctf_version): New declaration. | |
95 | * ctf-subr.c (_libctf_version): Define it. | |
96 | (ctf_version): New. | |
97 | ||
c499eb68 NA |
98 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
99 | ||
100 | * ctf-create.c (enumcmp): New. | |
101 | (enumadd): Likewise. | |
102 | (membcmp): Likewise. | |
103 | (membadd): Likewise. | |
104 | (ctf_add_type): Likewise. | |
105 | ||
b437bfe0 NA |
106 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
107 | ||
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. | |
117 | ||
316afdb1 NA |
118 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
119 | ||
120 | * ctf-decl.c: New file. | |
121 | * ctf-types.c: Likewise. | |
122 | * ctf-impl.h: New declarations. | |
123 | ||
143dce84 NA |
124 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
125 | ||
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, | |
131 | ctfi_bfd_close. | |
132 | (ctf_bfdopen_ctfsect): New declaration. | |
133 | (_CTF_SECTION): likewise. | |
134 | ||
9402cc59 NA |
135 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
136 | ||
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. | |
142 | ||
72f33921 NA |
143 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
144 | ||
145 | * ctf-open.c: New file. | |
146 | * swap.h: Likewise. | |
147 | ||
47d546f4 NA |
148 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
149 | ||
150 | * ctf-create.c: New file. | |
151 | * ctf-lookup.c: New file. | |
152 | ||
a5be9bbe NA |
153 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
154 | ||
155 | * ctf-impl.h: New definitions and declarations for type creation | |
156 | and lookup. | |
157 | ||
c0754cdd NA |
158 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
159 | ||
160 | * ctf-hash.c: New file. | |
161 | * ctf-impl.h: New declarations. | |
162 | ||
479604f4 NA |
163 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
164 | ||
165 | * ctf-error.c: New file. | |
166 | ||
94585e7f NA |
167 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
168 | ||
169 | * ctf-util.c: New file. | |
170 | * elf.h: Likewise. | |
171 | * ctf-impl.h: Include it, and add declarations. | |
172 | ||
60da9d95 NA |
173 | 2019-05-28 Nick Alcock <nick.alcock@oracle.com> |
174 | ||
175 | * ctf-impl.h: New file. | |
176 | * ctf-subr.c: New file. | |
177 | ||
178 | \f | |
179 | Local Variables: | |
180 | mode: change-log | |
181 | left-margin: 8 | |
182 | fill-column: 76 | |
183 | version-control: never | |
184 | End: |