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