1 1.1.1.2 christos 2024-03-08 Ian Lance Taylor <iant (a] golang.org> 2 1.1 christos 3 1.1.1.2 christos * elf.c (elf_uncompress_chdr): Don't assume compressed section is 4 1.1.1.2 christos aligned. 5 1.1.1.2 christos 6 1.1.1.2 christos 2024-03-02 Ian Lance Taylor <iant (a] golang.org> 7 1.1.1.2 christos 8 1.1.1.2 christos * Makefile.am (libbacktrace_testing_ldflags): Define. 9 1.1.1.2 christos (*_LDFLAGS): Add $(libbacktrace_testing_ldflags) for test 10 1.1.1.2 christos programs. 11 1.1.1.2 christos * Makefile.in: Regenerate 12 1.1.1.2 christos 13 1.1.1.2 christos 2024-03-02 Ian Lance Taylor <iant (a] golang.org> 14 1.1.1.2 christos 15 1.1.1.2 christos * elf.c (elf_uncompress_lzma_block): Skip all header padding bytes 16 1.1.1.2 christos and verify that they are zero. 17 1.1.1.2 christos 18 1.1.1.2 christos 2024-03-02 Ian Lance Taylor <iant (a] golang.org> 19 1.1.1.2 christos 20 1.1.1.2 christos PR libbacktrace/114201 21 1.1.1.2 christos * elf.c (elf_add): Add caller_opd parameter. Change all callers. 22 1.1.1.2 christos Release opd data after all recursive calls. 23 1.1.1.2 christos 24 1.1.1.2 christos 2024-03-01 Ian Lance Taylor <iant (a] golang.org> 25 1.1.1.2 christos 26 1.1.1.2 christos * elf.c (elf_add): Add the symbol table from a debuginfo file. 27 1.1.1.2 christos * Makefile.am (MAKETESTS): Add buildidfull and gnudebuglinkfull 28 1.1.1.2 christos variants of buildid and gnudebuglink tests. 29 1.1.1.2 christos (%_gnudebuglinkfull, %_buildidfull): New patterns. 30 1.1.1.2 christos * Makefile.in: Regenerate. 31 1.1.1.2 christos 32 1.1.1.2 christos 2023-11-30 Ian Lance Taylor <iant (a] golang.org> 33 1.1.1.2 christos 34 1.1.1.2 christos * pecoff.c: Include <windows.h> if available. 35 1.1.1.2 christos (coff_add): On Windows call GetModuleHandle to get base address. 36 1.1.1.2 christos 37 1.1.1.2 christos 2023-11-29 Ian Lance Taylor <iant (a] golang.org> 38 1.1.1.2 christos 39 1.1.1.2 christos * fileline.c: Include <windows.h> if available. 40 1.1.1.2 christos (windows_get_executable_path): New static function. 41 1.1.1.2 christos (fileline_initialize): Call windows_get_executable_path. 42 1.1.1.2 christos * configure.ac: Checked for windows.h 43 1.1.1.2 christos * configure: Regenerate. 44 1.1.1.2 christos * config.h.in: Regenerate. 45 1.1.1.2 christos 46 1.1.1.2 christos 2023-10-22 Iain Sandoe <iain (a] sandoe.co.uk> 47 1.1.1.2 christos 48 1.1.1.2 christos * configure: Regenerate. 49 1.1.1.2 christos * configure.ac: Handle Darwin rpaths. 50 1.1.1.2 christos 51 1.1.1.2 christos 2023-08-07 Nick Alcock <nick.alcock (a] oracle.com> 52 1.1.1.2 christos 53 1.1.1.2 christos * configure: Regenerate. 54 1.1.1.2 christos 55 1.1.1.2 christos 2023-08-07 Alexander von Gluck IV <kallisti5 (a] unixzen.com> 56 1.1.1.2 christos 57 1.1.1.2 christos * configure: Regenerate. 58 1.1.1.2 christos 59 1.1.1.2 christos 2023-08-07 Nick Alcock <nick.alcock (a] oracle.com> 60 1.1.1.2 christos 61 1.1.1.2 christos * configure: Regenerate. 62 1.1.1.2 christos 63 1.1.1.2 christos 2023-08-07 Nick Alcock <nick.alcock (a] oracle.com> 64 1.1.1.2 christos 65 1.1.1.2 christos * configure: Regenerate. 66 1.1.1.2 christos 67 1.1.1.2 christos 2023-08-07 H.J. Lu <hjl.tools (a] gmail.com> 68 1.1.1.2 christos 69 1.1.1.2 christos * configure: Regenerate. 70 1.1.1.2 christos 71 1.1.1.2 christos 2023-08-07 H.J. Lu <hjl.tools (a] gmail.com> 72 1.1.1.2 christos 73 1.1.1.2 christos * configure: Regenerate. 74 1.1.1.2 christos 75 1.1.1.2 christos 2023-08-03 Richard Biener <rguenther (a] suse.de> 76 1.1.1.2 christos 77 1.1.1.2 christos * zstdtest.c (test_samples): Properly compute the allocation 78 1.1.1.2 christos size for the uncompressed data. 79 1.1.1.2 christos 80 1.1.1.2 christos 2023-07-31 Ian Lance Taylor <iant (a] golang.org> 81 1.1.1.2 christos 82 1.1.1.2 christos * configure.ac: Check for _pgmptr declaration. 83 1.1.1.2 christos * fileline.c (fileline_initialize): Check for _pgmfptr before 84 1.1.1.2 christos /proc/self/exec. 85 1.1.1.2 christos * configure, config.h.in: Regenerate. 86 1.1.1.2 christos 87 1.1.1.2 christos 2023-03-28 Ian Lance Taylor <iant (a] golang.org> 88 1.1.1.2 christos 89 1.1.1.2 christos * elf.c (elf_zstd_read_fse): Call elf_fetch_bits after reading 90 1.1.1.2 christos bits, not before. Add unlikely for error case. 91 1.1.1.2 christos (elf_zstd_offset_table): Regenerate. 92 1.1.1.2 christos (elf_zstd_read_huff): Clear 13 entries in weight_mark, not 12. 93 1.1.1.2 christos (elf_zstd_read_literals): For a single stream adjust by 94 1.1.1.2 christos total_streams_size, not compressed_size. 95 1.1.1.2 christos 96 1.1.1.2 christos 2023-01-20 Ian Lance Taylor <iant (a] golang.org> 97 1.1.1.2 christos 98 1.1.1.2 christos * dwarf.c (struct function_addrs): Change low and high fields to 99 1.1.1.2 christos uintptr_t. 100 1.1.1.2 christos (struct unit_addrs): Likewise. 101 1.1.1.2 christos (resolve_addr_index): Change address parameter to uintptr_t*. 102 1.1.1.2 christos (add_unit_addr): Change lowpc and highpc parameters to uintptr_t. 103 1.1.1.2 christos (add_function_range): Likewise. 104 1.1.1.2 christos (struct pcrange): Change lowpc and highpc fields to uintptr_t. 105 1.1.1.2 christos (add_low_high_range): Change add_range lowpc and highpc parameters 106 1.1.1.2 christos to uintptr_t. 107 1.1.1.2 christos (add_ranges_from_ranges): Likewise. 108 1.1.1.2 christos (add_ranges_from_rnglists): Likewise. 109 1.1.1.2 christos (add_low_high_range): Chnage lowpc and highpc variables to 110 1.1.1.2 christos uintpr_t. 111 1.1.1.2 christos (add_ranges_from_rnglists): Change some local variables to 112 1.1.1.2 christos uintptr_t. 113 1.1.1.2 christos (add_ranges_from_ranges): Change base parameter to uintptr_t. 114 1.1.1.2 christos (add_ranges_from_rnglists): Likewise. 115 1.1.1.2 christos (read_function_entry): Likewise. 116 1.1.1.2 christos (resolve_addr_index): Add explicit casts to uintptr_t. 117 1.1.1.2 christos (update_pcrange): Likewise. 118 1.1.1.2 christos (add_ranges_from_ranges): Likewise. 119 1.1.1.2 christos (add_ranges_from_rnglists): Likewise. 120 1.1.1.2 christos (read_function_entry): Likewise. 121 1.1.1.2 christos 122 1.1.1.2 christos 2023-01-17 Martin Liska <mliska (a] suse.cz> 123 1.1.1.2 christos 124 1.1.1.2 christos * Makefile.in: Regenerate. 125 1.1.1.2 christos 126 1.1.1.2 christos 2023-01-06 Ian Lance Taylor <iant (a] golang.org> 127 1.1.1.2 christos 128 1.1.1.2 christos PR libbacktrace/108297 129 1.1.1.2 christos * configure.ac: Test whether linker supports --build-id. 130 1.1.1.2 christos * Makefile.am: Only run --build-id tests if supported. 131 1.1.1.2 christos * configure, Makefile.in: Regenerate. 132 1.1.1.2 christos 133 1.1.1.2 christos 2022-12-17 Ian Lance Taylor <iant (a] golang.org> 134 1.1.1.2 christos 135 1.1.1.2 christos * elf.c (elf_fetch_backward_init): New static function. 136 1.1.1.2 christos (ZSTD_TABLE_SIZE): Use huffman scratch space size rather than 137 1.1.1.2 christos literal size. 138 1.1.1.2 christos (ZSTD_TABLE_WORK_LIT_SIZE): Don't define. 139 1.1.1.2 christos (elf_zstd_read_huff): Use elf_fetch_backward_init. 140 1.1.1.2 christos (elf_zstd_read_literals): New static function. 141 1.1.1.2 christos (ZSTD_LIT_RAW, ZSTD_LIT_RLE, ZSTD_LIT_HUFF): Don't define. 142 1.1.1.2 christos (struct elf_zstd_literals): Don't define. 143 1.1.1.2 christos (elf_zstd_literal_output): Remove static function. 144 1.1.1.2 christos (elf_zstd_decompress): Use elf_fetch_backward_init and 145 1.1.1.2 christos elf_zstd_read_literals. Rewrite literal copying.< 146 1.1.1.2 christos 147 1.1.1.2 christos 2022-12-10 Ian Lance Taylor <iant (a] golang.org> 148 1.1.1.2 christos 149 1.1.1.2 christos * elf.c (ZSTD_TABLE_*): Use elf_zstd_fse_baseline_entry. 150 1.1.1.2 christos (ZSTD_ENCODE_BASELINE_BITS): Define. 151 1.1.1.2 christos (ZSTD_DECODE_BASELINE, ZSTD_DECODE_BASEBITS): Define. 152 1.1.1.2 christos (elf_zstd_literal_length_base): New static const array. 153 1.1.1.2 christos (elf_zstd_match_length_base): Likewise. 154 1.1.1.2 christos (struct elf_zstd_fse_baseline_entry): Define. 155 1.1.1.2 christos (elf_zstd_make_literal_baseline_fse): New static function. 156 1.1.1.2 christos (elf_zstd_make_offset_baseline_fse): Likewise. 157 1.1.1.2 christos (elf_zstd_make_match_baseline_fse): Likewise. 158 1.1.1.2 christos (print_table, main): Use elf_zstd_fse_baseline_entry. 159 1.1.1.2 christos (elf_zstd_lit_table, elf_zstd_match_table): Likewise. 160 1.1.1.2 christos (elf_zstd_offset_table): Likewise. 161 1.1.1.2 christos (struct elf_zstd_seq_decode): Likewise. Remove use_rle and rle 162 1.1.1.2 christos fields. 163 1.1.1.2 christos (elf_zstd_unpack_seq_decode): Use elf_zstd_fse_baseline_entry, 164 1.1.1.2 christos taking a conversion function. Convert RLE to FSE. 165 1.1.1.2 christos (elf_zstd_literal_length_baseline): Remove. 166 1.1.1.2 christos (elf_zstd_literal_length_bits): Remove. 167 1.1.1.2 christos (elf_zstd_match_length_baseline): Remove. 168 1.1.1.2 christos (elf_zstd_match_length_bits): Remove. 169 1.1.1.2 christos (elf_zstd_decompress): Use elf_zstd_fse_baseline_entry. Rewrite 170 1.1.1.2 christos and simplify main loop. 171 1.1.1.2 christos 172 1.1.1.2 christos 2022-12-08 Ian Lance Taylor <iant (a] golang.org> 173 1.1.1.2 christos 174 1.1.1.2 christos * configure.ac: Check for zstd library and 175 1.1.1.2 christos --compress-debug-sections=zstd linker option. 176 1.1.1.2 christos * Makefile.am (zstdtest_*): New targets. 177 1.1.1.2 christos (zstdtest_alloc_*, ctestzstd_*): New targets. 178 1.1.1.2 christos (BUILDTESTS): Add zstdtest, zstdtest_alloc, ctestzstd as 179 1.1.1.2 christos appropriate. 180 1.1.1.2 christos * elf.c (ELFCOMPRESS_ZSTD): Define. 181 1.1.1.2 christos (elf_fetch_bits): Rename from elf_zlib_fetch. Update uses. 182 1.1.1.2 christos (elf_fetch_bits_backward): New static function. 183 1.1.1.2 christos (ZLIB_HUFFMAN_*): Rename from HUFFMAN_*. Update uses. 184 1.1.1.2 christos (ZLIB_TABLE_*): Rename from ZDEBUG_TABLE_*. Update uses. 185 1.1.1.2 christos (ZSTD_TABLE_*): Define. 186 1.1.1.2 christos (struct elf_zstd_fse_entry): Define. 187 1.1.1.2 christos (elf_zstd_read_fse): New static function. 188 1.1.1.2 christos (elf_zstd_build_fse): Likewise. 189 1.1.1.2 christos (lit): Define if BACKTRACE_GENERATE_ZSTD_FSE_TABLES. 190 1.1.1.2 christos (match, offset, next, print_table, main): Likewise. 191 1.1.1.2 christos (elf_zstd_lit_table): New static const array. 192 1.1.1.2 christos (elf_zstd_match_table, elf_zstd_offset_table): Likewise. 193 1.1.1.2 christos (elf_zstd_read_huff): New static function. 194 1.1.1.2 christos (struct elf_zstd_seq_decode): Define. 195 1.1.1.2 christos (elf_zstd_unpack_seq_decode): New static function. 196 1.1.1.2 christos (ZSTD_LIT_*): Define. 197 1.1.1.2 christos (struct elf_zstd_literals): Define. 198 1.1.1.2 christos (elf_zstd_literal_output): New static function. 199 1.1.1.2 christos (ZSTD_LITERAL_LENGTH_BASELINE_OFFSET): Define. 200 1.1.1.2 christos (elf_zstd_literal_length_baseline): New static const array. 201 1.1.1.2 christos (elf_zstd_literal_length_bits): Likewise. 202 1.1.1.2 christos (ZSTD_MATCH_LENGTH_BASELINE_OFFSET): Define. 203 1.1.1.2 christos (elf_zstd_match_length_baseline): New static const array. 204 1.1.1.2 christos (elf_zstd_match_length_bits): Likewise. 205 1.1.1.2 christos (elf_zstd_decompress): New static function. 206 1.1.1.2 christos (ZDEBUG_TABLE_SIZE): New definition. 207 1.1.1.2 christos (elf_uncompress_chdr): Support ELF_COMPRESS_ZSTD. 208 1.1.1.2 christos (backtrace_uncompress_zstd): New function. 209 1.1.1.2 christos (elf_add): Use ZLIB_TABLE_SIZE for zlib-gnu sections. 210 1.1.1.2 christos * internal.h (backtrace_uncompress_zstd): Declare. 211 1.1.1.2 christos * zstdtest.c: New file. 212 1.1.1.2 christos * configure, config.h.in, Makefile.in: Regenerate. 213 1.1.1.2 christos 214 1.1.1.2 christos 2022-10-12 Martin Liska <mliska (a] suse.cz> 215 1.1.1.2 christos 216 1.1.1.2 christos * configure: Regenerate. 217 1.1.1.2 christos 218 1.1.1.2 christos 2022-10-11 Olivier Hainque <hainque (a] adacore.com> 219 1.1.1.2 christos Olivier Hainque <hainque (a] adacore.com> 220 1.1.1.2 christos 221 1.1.1.2 christos * configure: Regenerate. 222 1.1.1.2 christos 223 1.1.1.2 christos 2022-07-08 Ian Lance Taylor <iant (a] golang.org> 224 1.1.1.2 christos 225 1.1.1.2 christos * configure.ac: Check for sys/link.h. Use either link.h or 226 1.1.1.2 christos sys/link.h when checking for dl_iterate_phdr. 227 1.1.1.2 christos * elf.c: Include sys/link.h if available. 228 1.1.1.2 christos * configure, config.h.in: Regenerate. 229 1.1.1.2 christos 230 1.1.1.2 christos 2022-07-07 Ian Lance Taylor <iant (a] golang.org> 231 1.1.1.2 christos 232 1.1.1.2 christos * macho.c (backtrace_initialize) [HAVE_MACH_O_DYLD_H]: Don't exit 233 1.1.1.2 christos loop if we can't find debug info for one shared library. 234 1.1.1.2 christos 235 1.1.1.2 christos 2022-07-07 Ian Lance Taylor <iant (a] golang.org> 236 1.1.1.2 christos 237 1.1.1.2 christos * Makefile.am (MAKETESTS): New variable split out of TESTS. 238 1.1.1.2 christos (CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS. 239 1.1.1.2 christos * Makefile.in: Regenerate. 240 1.1.1.2 christos 241 1.1.1.2 christos 2022-06-27 Ian Lance Taylor <iant (a] golang.org> 242 1.1.1.2 christos 243 1.1.1.2 christos * configure.ac: Use grep instead of fgrep. 244 1.1.1.2 christos * configure, Makefile.in: Regenerate. 245 1.1.1.2 christos 246 1.1.1.2 christos 2022-05-28 Ian Lance Taylor <iant (a] golang.org> 247 1.1.1.2 christos 248 1.1.1.2 christos PR libbacktrace/105721 249 1.1.1.2 christos * README: Update. 250 1.1.1.2 christos 251 1.1.1.2 christos 2022-04-05 Ian Lance Taylor <iant (a] golang.org> 252 1.1.1.2 christos 253 1.1.1.2 christos * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in 254 1.1.1.2 christos uncompressed block. 255 1.1.1.2 christos 256 1.1.1.2 christos 2022-02-17 Ian Lance Taylor <iant (a] golang.org> 257 1.1.1.2 christos 258 1.1.1.2 christos * dwarf.c (find_address_ranges): Handle skeleton units. 259 1.1.1.2 christos (read_function_entry): Likewise. 260 1.1.1.2 christos 261 1.1.1.2 christos 2022-02-16 Ian Lance Taylor <iant (a] golang.org> 262 1.1.1.2 christos 263 1.1.1.2 christos * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit. 264 1.1.1.2 christos 265 1.1.1.2 christos 2022-02-03 David Seifert <soap (a] gentoo.org> 266 1.1.1.2 christos Jakub Jelinek <jakub (a] redhat.com> 267 1.1.1.2 christos 268 1.1.1.2 christos * configure.ac: Support --disable-werror. 269 1.1.1.2 christos * configure: Regenerate. 270 1.1.1.2 christos 271 1.1.1.2 christos 2021-12-28 Francois-Xavier Coudert <fxcoudert (a] gmail.com> 272 1.1.1.2 christos 273 1.1.1.2 christos PR libbacktrace/103822 274 1.1.1.2 christos * Makefile.am: Fix newline. 275 1.1.1.2 christos * Makefile.in: Regenerate. 276 1.1 christos 277 1.1 christos 2021-11-12 Martin Liska <mliska (a] suse.cz> 278 1.1 christos 279 1.1 christos PR libbacktrace/103167 280 1.1 christos * elf.c (elf_uncompress_lzma_block): Cast to unsigned int. 281 1.1 christos (elf_uncompress_lzma): Likewise. 282 1.1 christos * xztest.c (test_samples): memcpy only if v > 0. 283 1.1 christos 284 1.1 christos 2021-10-22 Martin Liska <mliska (a] suse.cz> 285 1.1 christos 286 1.1 christos PR testsuite/102742 287 1.1 christos * btest.c (MIN_DESCRIPTOR): New. 288 1.1 christos (MAX_DESCRIPTOR): Likewise. 289 1.1 christos (check_available_files): Likewise. 290 1.1 christos (check_open_files): Check only file descriptors that 291 1.1 christos were not available at the entry. 292 1.1 christos (main): Call check_available_files. 293 1.1 christos 294 1.1 christos 2021-08-13 Sergei Trofimovich <siarheit (a] google.com> 295 1.1 christos 296 1.1 christos * install-debuginfo-for-buildid.sh.in: Force non-localized readelf 297 1.1 christos output with LANG=C. 298 1.1 christos 299 1.1 christos 2021-06-28 Clment Chigot <clement.chigot (a] atos.net> 300 1.1 christos 301 1.1 christos * xcoff.c (SSUBTYP_DWRNGES): New define. 302 1.1 christos (xcoff_add): Use correct XCOFF DWARF section subtype 303 1.1 christos for DEBUG_RANGES. Remove lineoff workaround. 304 1.1 christos Adjust base_address. 305 1.1 christos (xcoff_initialize_syminfo): Adapt to new base_address. 306 1.1 christos (xcoff_lookup_pc): Likewise. 307 1.1 christos (xcoff_initialize_fileline): Likewise. 308 1.1 christos 309 1.1 christos 2021-05-03 H.J. Lu <hjl.tools (a] gmail.com> 310 1.1 christos 311 1.1 christos PR bootstrap/99703 312 1.1 christos * configure: Regenerated. 313 1.1 christos 314 1.1 christos 2021-03-03 Ian Lance Taylor <iant (a] golang.org> 315 1.1 christos 316 1.1 christos * dwarf.c (read_line_program): Don't special case file 0. 317 1.1 christos (read_function_entry): Likewise. 318 1.1 christos 319 1.1 christos 2021-03-02 Ian Lance Taylor <iant (a] golang.org> 320 1.1 christos 321 1.1 christos PR libbacktrace/98818 322 1.1 christos * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all 323 1.1 christos callers. 324 1.1 christos * backtrace.h: Update backtrace_error_callback comment. 325 1.1 christos 326 1.1 christos 2021-02-12 Ian Lance Taylor <iant (a] golang.org> 327 1.1 christos 328 1.1 christos * configure.ac: Check for objcopy --add-gnu-debuglink by using 329 1.1 christos objcopy --help. 330 1.1 christos * configure: Regenerate 331 1.1 christos 332 1.1 christos 2021-01-18 Ian Lance Taylor <iant (a] golang.org> 333 1.1 christos 334 1.1 christos * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info. 335 1.1 christos * Makefile.in: Regenerate. 336 1.1 christos * configure: Regenerate. 337 1.1 christos 338 1.1 christos 2021-01-18 Ian Lance Taylor <iant (a] golang.org> 339 1.1 christos 340 1.1 christos PR debug/98716 341 1.1 christos * dwarf.c (read_v2_paths): Allocate zero entry for dirs and 342 1.1 christos filenames. 343 1.1 christos (read_line_program): Remove parameter u, change caller. Don't 344 1.1 christos subtract one from dirs and filenames index. 345 1.1 christos (read_function_entry): Don't subtract one from filenames index. 346 1.1 christos 347 1.1 christos 2021-01-05 Samuel Thibault <samuel.thibault (a] ens-lyon.org> 348 1.1 christos 349 1.1 christos * configure: Re-generate. 350 1.1 christos 351 1.1 christos 2020-12-05 Iain Sandoe <iain (a] sandoe.co.uk> 352 1.1 christos 353 1.1 christos PR target/97865 354 1.1 christos * configure: Regenerate. 355 1.1 christos 356 1.1 christos 2020-12-02 Ian Lance Taylor <iant (a] golang.org> 357 1.1 christos 358 1.1 christos * dwarf.c (resolve_string): Use > rather than >= to check whether 359 1.1 christos string index extends past buffer. 360 1.1 christos (resolve_addr_index): Similarly for address index. 361 1.1 christos 362 1.1 christos 2020-11-29 John David Anglin <danglin (a] gcc.gnu.org> 363 1.1 christos 364 1.1 christos * configure: Regenerate. 365 1.1 christos 366 1.1 christos 2020-10-20 Ian Lance Taylor <iant (a] golang.org> 367 1.1 christos 368 1.1 christos * internal.h (ATTRIBUTE_FALLTHROUGH): Define. 369 1.1 christos * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH. 370 1.1 christos 371 1.1 christos 2020-09-28 Ian Lance Taylor <iant (a] golang.org> 372 1.1 christos 373 1.1 christos PR libbacktrace/97082 374 1.1 christos * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL. 375 1.1 christos * Makefile.in: Regenerate. 376 1.1 christos 377 1.1 christos 2020-09-28 Ian Lance Taylor <iant (a] golang.org> 378 1.1 christos 379 1.1 christos PR libbacktrace/97227 380 1.1 christos * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL. 381 1.1 christos * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL. 382 1.1 christos * configure: Regenerate. 383 1.1 christos * Makefile.in: Regenerate. 384 1.1 christos 385 1.1 christos 2020-09-23 Ian Lance Taylor <iant (a] golang.org> 386 1.1 christos 387 1.1 christos * dwarf.c (report_inlined_functions): Handle PC == -1 and PC == 388 1.1 christos p->low. 389 1.1 christos (dwarf_lookup_pc): Likewise. 390 1.1 christos 391 1.1 christos 2020-09-17 Ian Lance Taylor <iant (a] golang.org> 392 1.1 christos 393 1.1 christos PR libbacktrace/97080 394 1.1 christos * fileline.c (backtrace_syminfo_to_full_callback): New function. 395 1.1 christos (backtrace_syminfo_to_full_error_callback): New function. 396 1.1 christos * elf.c (elf_nodebug): Call syminfo_fn if possible. 397 1.1 christos * internal.h (struct backtrace_call_full): Define. 398 1.1 christos (backtrace_syminfo_to_full_callback): Declare. 399 1.1 christos (backtrace_syminfo_to_full_error_callback): Declare. 400 1.1 christos * mtest.c (f3): Only check all[i] if data.index permits. 401 1.1 christos 402 1.1 christos 2020-09-16 Iain Sandoe <iain (a] sandoe.co.uk> 403 1.1 christos 404 1.1 christos * macho.c (MACH_O_CPU_TYPE_PPC): New. 405 1.1 christos (MACH_O_CPU_TYPE_PPC64): New. 406 1.1 christos Add compile-tests for powerpc to the Mach-O variants. 407 1.1 christos 408 1.1 christos 2020-09-14 Ian Lance Taylor <iant (a] golang.org> 409 1.1 christos 410 1.1 christos PR libbacktrace/93608 411 1.1 christos Add support for MiniDebugInfo. 412 1.1 christos * elf.c (struct elf_view): Define. Replace most uses of 413 1.1 christos backtrace_view with elf_view. 414 1.1 christos (elf_get_view): New static functions. Replace most calls of 415 1.1 christos backtrace_get_view with elf_get_view. 416 1.1 christos (elf_release_view): New static functions. Replace most calls of 417 1.1 christos backtrace_release_view with elf_release_view. 418 1.1 christos (elf_uncompress_failed): Rename from elf_zlib_failed. Change all 419 1.1 christos callers. 420 1.1 christos (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define. 421 1.1 christos (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define. 422 1.1 christos (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define. 423 1.1 christos (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define. 424 1.1 christos (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define. 425 1.1 christos (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define. 426 1.1 christos (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define. 427 1.1 christos (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define. 428 1.1 christos (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define. 429 1.1 christos (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define. 430 1.1 christos (LZMA_PROB_DIST_ALIGN_LEN): Define. 431 1.1 christos (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define. 432 1.1 christos (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define. 433 1.1 christos (LZMA_PROB_MATCH_LEN_LOW_LEN): Define. 434 1.1 christos (LZMA_PROB_MATCH_LEN_MID_LEN): Define. 435 1.1 christos (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define. 436 1.1 christos (LZMA_PROB_REP_LEN_CHOICE_LEN): Define. 437 1.1 christos (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define. 438 1.1 christos (LZMA_PROB_REP_LEN_LOW_LEN): Define. 439 1.1 christos (LZMA_PROB_REP_LEN_MID_LEN): Define. 440 1.1 christos (LZMA_PROB_REP_LEN_HIGH_LEN): Define. 441 1.1 christos (LZMA_PROB_LITERAL_LEN): Define. 442 1.1 christos (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define. 443 1.1 christos (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define. 444 1.1 christos (LZMA_PROB_IS_REP2_OFFSET): Define. 445 1.1 christos (LZMA_PROB_IS_REP0_LONG_OFFSET): Define. 446 1.1 christos (LZMA_PROB_DIST_SLOT_OFFSET): Define. 447 1.1 christos (LZMA_PROB_DIST_SPECIAL_OFFSET): Define. 448 1.1 christos (LZMA_PROB_DIST_ALIGN_OFFSET): Define. 449 1.1 christos (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define. 450 1.1 christos (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define. 451 1.1 christos (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define. 452 1.1 christos (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define. 453 1.1 christos (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define. 454 1.1 christos (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define. 455 1.1 christos (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define. 456 1.1 christos (LZMA_PROB_REP_LEN_LOW_OFFSET): Define. 457 1.1 christos (LZMA_PROB_REP_LEN_MID_OFFSET): Define. 458 1.1 christos (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define. 459 1.1 christos (LZMA_PROB_LITERAL_OFFSET): Define. 460 1.1 christos (LZMA_PROB_TOTAL_COUNT): Define. 461 1.1 christos (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define. 462 1.1 christos (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define. 463 1.1 christos (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define. 464 1.1 christos (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define. 465 1.1 christos (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define. 466 1.1 christos (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define. 467 1.1 christos (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define. 468 1.1 christos (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define. 469 1.1 christos (elf_lzma_varint): New static function. 470 1.1 christos (elf_lzma_range_normalize): New static function. 471 1.1 christos (elf_lzma_bit, elf_lzma_integer): New static functions. 472 1.1 christos (elf_lzma_reverse_integer): New static function. 473 1.1 christos (elf_lzma_len, elf_uncompress_lzma_block): New static functions. 474 1.1 christos (elf_uncompress_lzma): New static function. 475 1.1 christos (backtrace_uncompress_lzma): New function. 476 1.1 christos (elf_add): Add memory and memory_size parameters. Change all 477 1.1 christos callers. Look for .gnu_debugdata section, and, if found, 478 1.1 christos decompress it and use it for symbols and debug info. Permit the 479 1.1 christos descriptor parameter to be -1. 480 1.1 christos * internal.h (backtrace_uncompress_lzma): Declare. 481 1.1 christos * mtest.c: New file. 482 1.1 christos * xztest.c: New file. 483 1.1 christos * configure.ac: Check for nm, xz, and comm programs. Check for 484 1.1 christos liblzma library. 485 1.1 christos (HAVE_MINIDEBUG): Define. 486 1.1 christos * Makefile.am (mtest_SOURCES): Define. 487 1.1 christos (mtest_CFLAGS, mtest_LDADD): Define. 488 1.1 christos (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG. 489 1.1 christos (%_minidebug): New pattern rule, if HAVE_MINIDEBUG. 490 1.1 christos (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define. 491 1.1 christos (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define 492 1.1 christos (xztest_alloc_LDADD): Define. 493 1.1 christos (BUILDTESTS): Add mtest, xztest, xztest_alloc. 494 1.1 christos (CLEANFILES): Add files created by minidebug pattern. 495 1.1 christos (btest.lo): Correct INCDIR reference. 496 1.1 christos (mtest.lo, xztest.lo, ztest.lo): New targets. 497 1.1 christos * configure: Regenerate. 498 1.1 christos * config.h.in: Regenerate. 499 1.1 christos * Makefile.in: Regenerate. 500 1.1 christos 501 1.1 christos 2020-09-09 Ian Lance Taylor <iant (a] golang.org> 502 1.1 christos 503 1.1 christos * pecoff.c (coff_initialize_syminfo): Add is_64 parameter. 504 1.1 christos (coff_add): Determine and pass is_64. 505 1.1 christos 506 1.1 christos 2020-09-09 Ian Lance Taylor <iant (a] golang.org> 507 1.1 christos 508 1.1 christos PR libbacktrace/96973 509 1.1 christos * fileline.c (macho_get_executable_path): New static function. 510 1.1 christos (fileline_initialize): Call macho_get_executable_path. 511 1.1 christos 512 1.1 christos 2020-09-09 Ian Lance Taylor <iant (a] golang.org> 513 1.1 christos 514 1.1 christos * dwarf.c (function_addrs_search): Compare against the next entry 515 1.1 christos low address, not the high address. 516 1.1 christos (unit_addrs_search): Likewise. 517 1.1 christos (build_address_map): Add a trailing unit_addrs. 518 1.1 christos (read_function_entry): Add a trailing function_addrs. 519 1.1 christos (read_function_info): Likewise. 520 1.1 christos (report_inlined_functions): Search backward for function_addrs 521 1.1 christos match. 522 1.1 christos (dwarf_lookup_pc): Search backward for unit_addrs and 523 1.1 christos function_addrs matches. 524 1.1 christos 525 1.1 christos 2020-09-08 Ian Lance Taylor <iant (a] golang.org> 526 1.1 christos 527 1.1 christos * simple.c (simple_unwind): Correct comment spelling. 528 1.1 christos 529 1.1 christos 2020-09-08 Ian Lance Taylor <iant (a] golang.org> 530 1.1 christos 531 1.1 christos * macho.c (macho_add_dsym): Make space for '/' in dsym. Use 532 1.1 christos correct length when freeing diralc. 533 1.1 christos 534 1.1 christos 2020-09-08 Ian Lance Taylor <iant (a] golang.org> 535 1.1 christos 536 1.1 christos PR libbacktrace/96973 537 1.1 christos * macho.c (macho_add_fat): Correctly swap 32-bit file offset. 538 1.1 christos 539 1.1 christos 2020-09-08 Ian Lance Taylor <iant (a] golang.org> 540 1.1 christos 541 1.1 christos PR libbacktrace/96971 542 1.1 christos * filetype.awk: Only match magic number at start of line. 543 1.1 christos 544 1.1 christos 2020-08-24 Ian Lance Taylor <iant (a] golang.org> 545 1.1 christos 546 1.1 christos * macho.c (MACH_O_MH_MAGIC_FAT_64): Define. 547 1.1 christos (MACH_O_MH_CIGAM_FAT_64): Define. 548 1.1 christos (struct macho_fat_arch_64): Define. 549 1.1 christos (macho_add_fat): Add and use is_64 parameter. 550 1.1 christos (macho_add): Recognize 64-bit fat files. 551 1.1 christos 552 1.1 christos 2020-07-30 H.J. Lu <hjl.tools (a] gmail.com> 553 1.1 christos 554 1.1 christos PR bootstrap/96202 555 1.1 christos * configure: Regenerated. 556 1.1 christos 557 1.1 christos 2020-07-08 Ian Lance Taylor <iant (a] golang.org> 558 1.1 christos 559 1.1 christos * configure.ac: Test linker support for DWARF5 560 1.1 christos * configure: Regenerate 561 1.1 christos 562 1.1 christos 2020-05-29 H.J. Lu <hjl.tools (a] gmail.com> 563 1.1 christos 564 1.1 christos PR bootstrap/95413 565 1.1 christos * configure: Regenerated. 566 1.1 christos 567 1.1 christos 2020-05-15 H.J. Lu <hongjiu.lu (a] intel.com> 568 1.1 christos 569 1.1 christos PR bootstrap/95147 570 1.1 christos * configure: Regenerated. 571 1.1 christos 572 1.1 christos 2020-05-14 H.J. Lu <hongjiu.lu (a] intel.com> 573 1.1 christos 574 1.1 christos * configure: Regenerated. 575 1.1 christos 576 1.1 christos 2020-05-13 Ian Lance Taylor <iant (a] golang.org> 577 1.1 christos 578 1.1 christos * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED. 579 1.1 christos 580 1.1 christos 2020-05-13 Ian Lance Taylor <iant (a] golang.org> 581 1.1 christos 582 1.1 christos PR go/95061 583 1.1 christos * posix.c (backtrace_open): Treat EACCESS like ENOENT. 584 1.1 christos 585 1.1 christos 2020-05-12 H.J. Lu <hongjiu.lu (a] intel.com> 586 1.1 christos 587 1.1 christos * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS). 588 1.1 christos * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and 589 1.1 christos AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't 590 1.1 christos enabled. 591 1.1 christos * Makefile.in: Regenerated. 592 1.1 christos * configure: Likewise. 593 1.1 christos 594 1.1 christos 2020-05-11 Ian Lance Taylor <iant (a] golang.org> 595 1.1 christos 596 1.1 christos PR libbacktrace/95012 597 1.1 christos * configure.ac: Check for getpagesize declaration. 598 1.1 christos * mmap.c: Declare getpagesize if necessary. 599 1.1 christos * mmapio.c: Likewise. 600 1.1 christos * configure: Regenerate. 601 1.1 christos * config.h.in: Regenerate. 602 1.1 christos * Makefile.in: Regenerate. 603 1.1 christos 604 1.1 christos 2020-05-09 Roland McGrath <mcgrathr (a] google.com> 605 1.1 christos 606 1.1 christos * elf.c (elf_add): Bail early if there are no section headers at all. 607 1.1 christos 608 1.1 christos 2020-05-09 Ian Lance Taylor <iant (a] golang.org> 609 1.1 christos 610 1.1 christos * elf.c (elf_add): Don't free strtab if an error occurs after 611 1.1 christos recording symbol information. 612 1.1 christos 613 1.1 christos 2020-05-09 Ian Lance Taylor <iant (a] golang.org> 614 1.1 christos 615 1.1 christos PR libbacktrace/88745 616 1.1 christos * macho.c: New file. 617 1.1 christos * filetype.awk: Recognize Mach-O files. 618 1.1 christos * Makefile.am (FORMAT_FILES): Add macho.c. 619 1.1 christos (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL. 620 1.1 christos (%.dSYM): New pattern target. 621 1.1 christos (test_macho_SOURCES, test_macho_CFLAGS): New targets. 622 1.1 christos (test_macho_LDADD): New target. 623 1.1 christos (BUILDTESTS): Add test_macho. 624 1.1 christos (macho.lo): Add dependencies. 625 1.1 christos * configure.ac: Recognize macho file type. Check for 626 1.1 christos mach-o/dyld.h. Don't try to run objcopy if we don't find it. 627 1.1 christos Look for dsymutil and define a HAVE_DSYMUTIL conditional. 628 1.1 christos * Makefile.in: Regenerate. 629 1.1 christos * configure: Regenerate. 630 1.1 christos * config.h.in: Regenerate. 631 1.1 christos 632 1.1 christos 2020-05-09 Ian Lance Taylor <iant (a] golang.org> 633 1.1 christos 634 1.1 christos * read.c (backtrace_get_view): Support short read. 635 1.1 christos 636 1.1 christos 2020-05-09 Ian Lance Taylor <iant (a] golang.org> 637 1.1 christos 638 1.1 christos * elf.c (elf_add): If debug sections are very large or far apart, 639 1.1 christos read them individually rather than as a single view. 640 1.1 christos 641 1.1 christos 2020-05-08 Ian Lance Taylor <iant (a] golang.org> 642 1.1 christos 643 1.1 christos * fileline.c (sysctl_exec_name): New static function. 644 1.1 christos (sysctl_exec_name1): New macro or static function. 645 1.1 christos (sysctl_exec_name2): Likewise. 646 1.1 christos (fileline_initialize): Try sysctl_exec_name[12]. 647 1.1 christos * configure.ac: Check for sysctl args to fetch executable name. 648 1.1 christos * configure: Regenerate. 649 1.1 christos * config.h.in: Regenerate. 650 1.1 christos 651 1.1 christos 2020-02-15 Ian Lance Taylor <iant (a] golang.org> 652 1.1 christos 653 1.1 christos * ztest.c (test_large): Update file to current libgo test file. 654 1.1 christos 655 1.1 christos 2020-02-03 Ian Lance Taylor <iant (a] golang.org> 656 1.1 christos 657 1.1 christos * Makefile.am (libbacktrace_TEST_CFLAGS): Define. 658 1.1 christos (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS). 659 1.1 christos (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise. 660 1.1 christos (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise. 661 1.1 christos (test_unknown_CFLAGS, unittest_CFLAGS): Likewise. 662 1.1 christos (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise. 663 1.1 christos (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise. 664 1.1 christos (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise. 665 1.1 christos (stest_alloc_CFLAGS): Likewise. 666 1.1 christos * Makefile.in: Regenerate. 667 1.1 christos * ztest.c (error_callback_compress): Mark vdata unused. 668 1.1 christos (test_large): Add casts to avoid warnings. 669 1.1 christos 670 1.1 christos 2020-01-01 Jakub Jelinek <jakub (a] redhat.com> 671 1.1 christos 672 1.1 christos Update copyright years. 673 1.1 christos 674 1.1 christos 2019-12-13 Ian Lance Taylor <iant (a] golang.org> 675 1.1 christos 676 1.1 christos Add DWARF 5 support. 677 1.1 christos * dwarf.c (struct attr): Add val field. 678 1.1 christos (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX, 679 1.1 christos ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX. 680 1.1 christos (struct line_header): Add addrsize field. 681 1.1 christos (struct line_header_format): Define. 682 1.1 christos (struct unit): Add str_offsets_base, addr_base, and rnglists_base 683 1.1 christos fields. 684 1.1 christos (read_uint24): New static function. 685 1.1 christos (read_attribute): Add implicit_val parameter. Replace dwarf_str 686 1.1 christos and dwarf_str_size parameters with dwarf_sections parameter. Add 687 1.1 christos support for new DWARF 5 forms. Change all callers. 688 1.1 christos (resolve_string): New static function. 689 1.1 christos (resolve_addr_index): Likewise. 690 1.1 christos (read_abbrevs): Support DW_FORM_implicit_const. 691 1.1 christos (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index, 692 1.1 christos and ranges_is_index fields. 693 1.1 christos (update_pcrange): Support DWARF 5 encodings. 694 1.1 christos (add_high_low_range): New static function, split out of 695 1.1 christos add_ranges. 696 1.1 christos (add_ranges_from_ranges): Likewise. 697 1.1 christos (add_ranges_from_rnglists): New static function. 698 1.1 christos (add_ranges): Just call new helper functions. 699 1.1 christos (find_address_ranges): Use resolve_string for strings, after 700 1.1 christos reading all attributes. Handle new DWARF 5 attributes. 701 1.1 christos (build_address_map): Support DWARF 5 compilation units. 702 1.1 christos (read_v2_paths): New static function, split out of 703 1.1 christos read_line_header. 704 1.1 christos (read_lnct): New static function. 705 1.1 christos (read_line_header_format_entries): Likewise. 706 1.1 christos (read_line_header): Add ddata parameter. Support DWARF 5 line 707 1.1 christos headers. Call new helper functions. Change all callers. 708 1.1 christos (read_line_program): Use addrsize from line program header. Don't 709 1.1 christos special case directory index 0 for DWARF 5. 710 1.1 christos (read_referenced_name): Use resolve_string. 711 1.1 christos (read_function_entry): Handle DWARF 5 encodings. Use 712 1.1 christos resolve_string. 713 1.1 christos * internal.h (enum dwarf_section): Add DEBUG_ADDR, 714 1.1 christos DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS. 715 1.1 christos * elf.c (dwarf_section_names): Add new section names. 716 1.1 christos * pecoff.c (dwarf_section_names): Likewise. 717 1.1 christos * xcoff.c (xcoff_add): Clear dwarf_sections before setting 718 1.1 christos fields. 719 1.1 christos * configure.ac: Define HAVE_DWARF5 automake conditional. 720 1.1 christos * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5. 721 1.1 christos (dwarf5_CFLAGS, dwarf5_LDADD): Likewise. 722 1.1 christos (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise. 723 1.1 christos (dwarf5_alloc_LDADD): Likewise. 724 1.1 christos (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5. 725 1.1 christos (CLEANFILES, clean-local): Define. 726 1.1 christos 727 1.1 christos 2019-12-08 Ian Lance Taylor <iant (a] golang.org> 728 1.1 christos 729 1.1 christos * dwarf.c (struct pcrange): Define. 730 1.1 christos (update_pcrange, add_ranges): New static functions. 731 1.1 christos (add_unit_addr): Change signature to work with add_ranges. Don't 732 1.1 christos add base_address here. 733 1.1 christos (add_unit_ranges): Remove. 734 1.1 christos (find_address_ranges): Replace str/ranges parameters with 735 1.1 christos dwarf_sections. Use update_pcrange and add_ranges. Change all 736 1.1 christos callers. 737 1.1 christos (add_function_range): Change signature to work with add_ranges. 738 1.1 christos Don't add base_address here. 739 1.1 christos (add_function_ranges): Remove. 740 1.1 christos (read_function_entry): Use update_pcrange and add_ranges. 741 1.1 christos 742 1.1 christos 2019-12-04 Ian Lance Taylor <iant (a] golang.org> 743 1.1 christos 744 1.1 christos * edtest.c (test1): Add noclone attribute. 745 1.1 christos 746 1.1 christos 2019-12-04 Ian Lance Taylor <iant (a] golang.org> 747 1.1 christos 748 1.1 christos * internal.h (enum dwarf_section): Define. 749 1.1 christos (struct dwarf_sections): Define. 750 1.1 christos (backtrace_dwarf_add): Update declaration to replace specific 751 1.1 christos section parameters with dwarf_sections parameter. 752 1.1 christos * dwarf.c (struct dwarf_data): Replace specific section fields 753 1.1 christos with dwarf_sections field. 754 1.1 christos (read_attribute): Use dwarf_sections with altlink. 755 1.1 christos (build_address_map): Replace specific section parameters with 756 1.1 christos dwarf_sections parameter. Change all callers. 757 1.1 christos (read_line_info): Use dwarf_sections with ddata. 758 1.1 christos (read_referenced_name): Likewise. 759 1.1 christos (add_function_ranges): Likewise. 760 1.1 christos (read_function_entry): Likewise. 761 1.1 christos (read_function_info): Likewise. 762 1.1 christos (build_dwarf_data): Replace specific section parameters with 763 1.1 christos dwarf_sections parameter. Change all callers. 764 1.1 christos (backtrace_dwarf_add): Likewise. 765 1.1 christos * elf.c (enum debug_section): Remove. 766 1.1 christos (dwarf_section_names): Remove .zdebug names. 767 1.1 christos (elf_add): Track zsections separately. Build dwarf_sections. 768 1.1 christos * pecoff.c (enum debug_section): Remove. 769 1.1 christos (struct debug_section_info): Remove data field. 770 1.1 christos (coff_add): Build dwarf_sections. 771 1.1 christos * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx 772 1.1 christos references with DEBUG_xxx references. 773 1.1 christos (xcoff_add): Build dwarf_sections. 774 1.1 christos 775 1.1 christos 2019-09-27 Maciej W. Rozycki <macro (a] wdc.com> 776 1.1 christos 777 1.1 christos * configure: Regenerate. 778 1.1 christos 779 1.1 christos 2019-09-26 Ian Lance Taylor <iant (a] golang.org> 780 1.1 christos 781 1.1 christos PR libbacktrace/91908 782 1.1 christos * pecoff.c (backtrace_initialize): Explicitly cast unchecked 783 1.1 christos __sync_bool_compare_and_swap to void. 784 1.1 christos * xcoff.c (backtrace_initialize): Likewise. 785 1.1 christos 786 1.1 christos 2019-09-03 Ulrich Weigand <uweigand (a] de.ibm.com> 787 1.1 christos 788 1.1 christos * configure.ac: Remove references to spu. 789 1.1 christos * configure: Regenerate. 790 1.1 christos 791 1.1 christos 2019-05-24 Clement Chigot <clement.chigot (a] atos.net> 792 1.1 christos 793 1.1 christos * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and 794 1.1 christos test_elf_64. 795 1.1 christos * Makefile.in: Regenerate. 796 1.1 christos 797 1.1 christos 2019-05-14 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 798 1.1 christos 799 1.1 christos * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* 800 1.1 christos handling. 801 1.1 christos * configure: Regenerate. 802 1.1 christos 803 1.1 christos 2019-03-11 Ian Lance Taylor <iant (a] golang.org> 804 1.1 christos 805 1.1 christos PR libbacktrace/89669 806 1.1 christos * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if 807 1.1 christos HAVE_ELF. 808 1.1 christos * Makefile.in: Regenerate. 809 1.1 christos 810 1.1 christos 2019-02-26 Tom de Vries <tdevries (a] suse.de> 811 1.1 christos 812 1.1 christos * btest.c (test5): Allow global.* as minimal symbol name for global. 813 1.1 christos 814 1.1 christos 2019-02-26 Tom de Vries <tdevries (a] suse.de> 815 1.1 christos 816 1.1 christos * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ. 817 1.1 christos * Makefile.in: Regenerate. 818 1.1 christos 819 1.1 christos 2019-02-12 Tom de Vries <tdevries (a] suse.de> 820 1.1 christos 821 1.1 christos PR libbacktrace/81983 822 1.1 christos * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0. 823 1.1 christos 824 1.1 christos 2019-02-10 Tom de Vries <tdevries (a] suse.de> 825 1.1 christos 826 1.1 christos * Makefile.am (BUILDTESTS): Add btest_lto. 827 1.1 christos * Makefile.in: Regenerate. 828 1.1 christos * btest.c (test1, f2, f3, test3, f22, f23): Declare with 829 1.1 christos __attribute__((noclone)). 830 1.1 christos 831 1.1 christos 2019-02-08 Tom de Vries <tdevries (a] suse.de> 832 1.1 christos 833 1.1 christos * backtrace.c (backtrace_full): Declare with __attribute__((noinline)). 834 1.1 christos * print.c (backtrace_print): Same. 835 1.1 christos * simple.c (backtrace_simple): Same. 836 1.1 christos 837 1.1 christos 2019-02-08 Tom de Vries <tdevries (a] suse.de> 838 1.1 christos 839 1.1 christos PR libbacktrace/78063 840 1.1 christos * dwarf.c (build_address_map): Keep all parsed units. 841 1.1 christos (read_referenced_name_from_attr): Handle DW_FORM_ref_addr. 842 1.1 christos 843 1.1 christos 2019-01-31 Tom de Vries <tdevries (a] suse.de> 844 1.1 christos 845 1.1 christos PR libbacktrace/89136 846 1.1 christos * elf.c (elf_add): Read build-id if with_buildid_data. Fix 847 1.1 christos 'debugaltlink_name_len =+ 1'. 848 1.1 christos 849 1.1 christos 2019-01-29 Tom de Vries <tdevries (a] suse.de> 850 1.1 christos 851 1.1 christos * install-debuginfo-for-buildid.sh.in: New script. 852 1.1 christos * Makefile.am (check_PROGRAMS): Add b2test and b3test. 853 1.1 christos (TESTS): Add b2test_buildid and b3test_dwz_buildid. 854 1.1 christos * Makefile.in: Regenerate. 855 1.1 christos * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL. 856 1.1 christos (READELF): Set with AC_CHECK_PROG. 857 1.1 christos (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES. 858 1.1 christos * configure: Regenerate. 859 1.1 christos * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ... 860 1.1 christos (elf_open_debugfile_by_buildid): ... here. 861 1.1 christos 862 1.1 christos 2019-01-29 Tom de Vries <tdevries (a] suse.de> 863 1.1 christos 864 1.1 christos * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for 865 1.1 christos allocfail. 866 1.1 christos (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS. 867 1.1 christos (check_PROGRAMS): Add BUILDTESTS. 868 1.1 christos * Makefile.in: Regenerate. 869 1.1 christos 870 1.1 christos 2019-01-28 Tom de Vries <tdevries (a] suse.de> 871 1.1 christos 872 1.1 christos * Makefile.am (xcoff_%.c): Generate sed result into temporary file. 873 1.1 christos Use $< to access prerequisite. 874 1.1 christos * Makefile.in: Regenerate. 875 1.1 christos 876 1.1 christos 2019-01-25 Nathan Sidwell <nathan (a] acm.org> 877 1.1 christos 878 1.1 christos * elf.c (elf_add): Pass "" filename to recursive call with 879 1.1 christos separated debug. 880 1.1 christos 881 1.1 christos 2019-01-25 Tom de Vries <tdevries (a] suse.de> 882 1.1 christos 883 1.1 christos * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with 884 1.1 christos filename == "". 885 1.1 christos * Makefile.am (TESTS): Add btest_dwz_gnudebuglink. 886 1.1 christos * Makefile.in: Regenerate. 887 1.1 christos 888 1.1 christos 2019-01-25 Tom de Vries <tdevries (a] suse.de> 889 1.1 christos 890 1.1 christos * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule. 891 1.1 christos (TESTS): Rename dtest to btest_gnudebuglink. 892 1.1 christos * Makefile.in: Regenerate. 893 1.1 christos 894 1.1 christos 2019-01-23 Tom de Vries <tdevries (a] suse.de> 895 1.1 christos 896 1.1 christos * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields. 897 1.1 christos (units_search, find_unit): Use size_t for offset. 898 1.1 christos (build_address_map): Use size_t for unit_offset. 899 1.1 christos 900 1.1 christos 2019-01-20 Gerald Pfeifer <gerald (a] pfeifer.com> 901 1.1 christos 902 1.1 christos * allocfail.c (main): Increase portability of printf statement. 903 1.1 christos 904 1.1 christos 2019-01-18 Ian Lance Taylor <iant (a] golang.org> 905 1.1 christos 906 1.1 christos PR libbacktrace/88890 907 1.1 christos * mmapio.c (backtrace_get_view): Change size parameter to 908 1.1 christos uint64_t. Check that value fits in size_t. 909 1.1 christos * read.c (backtrace_get_view): Likewise. 910 1.1 christos * internal.h (backtrace_get_view): Update declaration. 911 1.1 christos * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view. 912 1.1 christos 913 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 914 1.1 christos 915 1.1 christos PR libbacktrace/82857 916 1.1 christos * configure.ac (DWZ): Set with AC_CHECK_PROG. 917 1.1 christos (HAVE_DWZ): Set with AM_CONDITIONAL. 918 1.1 christos * configure: Regenerate. 919 1.1 christos * Makefile.am (TESTS): Add btest_dwz. 920 1.1 christos * Makefile.in: Regenerate. 921 1.1 christos 922 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 923 1.1 christos 924 1.1 christos PR libbacktrace/82857 925 1.1 christos * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO. 926 1.1 christos (read_attribute): Handle DW_FORM_GNU_ref_alt using 927 1.1 christos ATTR_VAL_REF_ALT_INFO. 928 1.1 christos (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt. 929 1.1 christos 930 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 931 1.1 christos 932 1.1 christos * dwarf.c (struct unit): Add low_offset and high_offset fields. 933 1.1 christos (struct unit_vector): New type. 934 1.1 christos (struct dwarf_data): Add units and units_counts fields. 935 1.1 christos (find_unit): New function. 936 1.1 christos (find_address_ranges): Add and handle unit_tag parameter. 937 1.1 christos (build_address_map): Add and handle units_vec parameter. 938 1.1 christos (build_dwarf_data): Pass units_vec to build_address_map. Store resulting 939 1.1 christos units vector. 940 1.1 christos 941 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 942 1.1 christos 943 1.1 christos PR libbacktrace/82857 944 1.1 christos * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt 945 1.1 christos using altlink. 946 1.1 christos 947 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 948 1.1 christos 949 1.1 christos * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE. 950 1.1 christos (read_attribute): Add altlink parameter. Handle missing altlink for 951 1.1 christos DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt. 952 1.1 christos (find_address_ranges, build_address_map, build_dwarf_data): Add and 953 1.1 christos handle altlink parameter. 954 1.1 christos (read_referenced_name, read_function_entry): Add argument to 955 1.1 christos read_attribute call. 956 1.1 christos 957 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 958 1.1 christos 959 1.1 christos * dwarf.c (struct dwarf_data): Add altlink field. 960 1.1 christos (backtrace_dwarf_add): Add and handle fileline_altlink parameter. 961 1.1 christos * elf.c (elf_add): Add argument to backtrace_dwarf_add call. 962 1.1 christos (phdr_callback, backtrace_initialize): Add argument to elf_add calls. 963 1.1 christos * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter. 964 1.1 christos * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. 965 1.1 christos * xcoff.c (xcoff_add): Same. 966 1.1 christos 967 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 968 1.1 christos 969 1.1 christos * internal.h (backtrace_dwarf_add): Add fileline_entry parameter. 970 1.1 christos * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter. 971 1.1 christos * elf.c (elf_add): Add and handle fileline_entry parameter. Add 972 1.1 christos argument to backtrace_dwarf_add call. 973 1.1 christos (phdr_callback, backtrace_initialize): Add argument to elf_add calls. 974 1.1 christos * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. 975 1.1 christos * xcoff.c (xcoff_add): Same. 976 1.1 christos 977 1.1 christos 2019-01-17 Tom de Vries <tdevries (a] suse.de> 978 1.1 christos 979 1.1 christos * elf.c (elf_add): Add and handle with_buildid_data and 980 1.1 christos with_buildid_size parameters. Handle .gnu_debugaltlink section. 981 1.1 christos (phdr_callback, backtrace_initialize): Add arguments to elf_add calls. 982 1.1 christos 983 1.1 christos 2019-01-16 Tom de Vries <tdevries (a] suse.de> 984 1.1 christos 985 1.1 christos * dwarf.c (read_referenced_name_from_attr): New function. Factor out 986 1.1 christos of ... 987 1.1 christos (read_referenced_name): ... here, and ... 988 1.1 christos (read_function_entry): ... here. 989 1.1 christos 990 1.1 christos 2019-01-16 Tom de Vries <tdevries (a] suse.de> 991 1.1 christos 992 1.1 christos * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any 993 1.1 christos name. 994 1.1 christos (read_function_entry): Same. Don't allow name found via 995 1.1 christos DW_AT_abstract_origin or case DW_AT_specification to override linkage 996 1.1 christos name. 997 1.1 christos 998 1.1 christos 2019-01-09 Sandra Loosemore <sandra (a] codesourcery.com> 999 1.1 christos 1000 1.1 christos PR other/16615 1001 1.1 christos 1002 1.1 christos * backtrace.h: Mechanically replace "can not" with "cannot". 1003 1.1 christos 1004 1.1 christos 2019-01-01 Jakub Jelinek <jakub (a] redhat.com> 1005 1.1 christos 1006 1.1 christos Update copyright years. 1007 1.1 christos 1008 1.1 christos 2018-12-29 Gerald Pfeifer <gerald (a] pfeifer.com> 1009 1.1 christos 1010 1.1 christos * Makefile.am (xcoff_%.c): Use an actual newline instead of \n 1011 1.1 christos in sed pattern. 1012 1.1 christos * Makefile.in: Regenerate. 1013 1.1 christos 1014 1.1 christos 2018-12-28 Tom de Vries <tdevries (a] suse.de> 1015 1.1 christos 1016 1.1 christos * dwarf.c (build_address_map): Reuse unused units. 1017 1.1 christos 1018 1.1 christos 2018-12-28 Tom de Vries <tdevries (a] suse.de> 1019 1.1 christos 1020 1.1 christos * dwarf.c (build_address_map): Simplify by removing local variable 1021 1.1 christos abbrevs. 1022 1.1 christos 1023 1.1 christos 2018-12-28 Ian Lance Taylor <iant (a] golang.org> 1024 1.1 christos Tom de Vries <tdevries (a] suse.de> 1025 1.1 christos 1026 1.1 christos PR libbacktrace/88063 1027 1.1 christos * dwarf.c (free_unit_addrs_vector): Remove. 1028 1.1 christos (build_address_map): Keep track of allocated units in vector. Free 1029 1.1 christos allocated units and corresponding abbrevs upon failure. Remove now 1030 1.1 christos redundant call to free_unit_addrs_vector. Free addrs vector upon 1031 1.1 christos failure. Free allocated unit vector. 1032 1.1 christos 1033 1.1 christos 2018-12-28 Tom de Vries <tdevries (a] suse.de> 1034 1.1 christos 1035 1.1 christos * dwarf.c (build_address_map): Free addrs vector upon failure. 1036 1.1 christos 1037 1.1 christos 2018-12-14 Tom de Vries <tdevries (a] suse.de> 1038 1.1 christos 1039 1.1 christos PR testsuite/88491 1040 1.1 christos * allocfail.sh: Remove "set -o pipefail". 1041 1.1 christos 1042 1.1 christos 2018-12-12 Tom de Vries <tdevries (a] suse.de> 1043 1.1 christos 1044 1.1 christos * Makefile.am (TESTS): Add allocfail.sh. 1045 1.1 christos (check_PROGRAMS): Add allocfail. 1046 1.1 christos * Makefile.in: Regenerate. 1047 1.1 christos * instrumented_alloc.c: New file. Redefine malloc and realloc. 1048 1.1 christos Include alloc.c. 1049 1.1 christos * allocfail.c: New file. 1050 1.1 christos * allocfail.sh: New file. 1051 1.1 christos 1052 1.1 christos 2018-11-30 Tom de Vries <tdevries (a] suse.de> 1053 1.1 christos 1054 1.1 christos * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32, 1055 1.1 christos test_xcoff_64, test_pecoff and test_unknown. 1056 1.1 christos * Makefile.in: Regenerate. 1057 1.1 christos * test_format.c: New file. 1058 1.1 christos 1059 1.1 christos 2018-11-30 Tom de Vries <tdevries (a] suse.de> 1060 1.1 christos 1061 1.1 christos * Makefile.am : Add _with_alloc version for each test in 1062 1.1 christos check_PROGRAMS. 1063 1.1 christos * Makefile.in: Regenerate. 1064 1.1 christos 1065 1.1 christos 2018-11-30 Tom de Vries <tdevries (a] suse.de> 1066 1.1 christos 1067 1.1 christos * internal.h (backtrace_vector_free): New static inline fuction, 1068 1.1 christos factored out of ... 1069 1.1 christos * dwarf.c (read_line_info): ... here. 1070 1.1 christos 1071 1.1 christos 2018-11-28 Tom de Vries <tdevries (a] suse.de> 1072 1.1 christos 1073 1.1 christos * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation 1074 1.1 christos failure. 1075 1.1 christos 1076 1.1 christos 2018-11-27 Tom de Vries <tdevries (a] suse.de> 1077 1.1 christos 1078 1.1 christos * mmap.c (backtrace_vector_release): Same. 1079 1.1 christos * unittest.c (test1): Add check. 1080 1.1 christos 1081 1.1 christos 2018-11-27 Tom de Vries <tdevries (a] suse.de> 1082 1.1 christos 1083 1.1 christos * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free 1084 1.1 christos instead of realloc. 1085 1.1 christos * Makefile.am (check_PROGRAMS): Add unittest. 1086 1.1 christos * Makefile.in: Regenerate. 1087 1.1 christos * unittest.c: New file. 1088 1.1 christos 1089 1.1 christos 2018-11-22 Tom de Vries <tdevries (a] suse.de> 1090 1.1 christos 1091 1.1 christos * dwarf.c (read_initial_length): Factor out of ... 1092 1.1 christos (build_address_map, read_line_info): ... here. 1093 1.1 christos 1094 1.1 christos 2018-11-21 Tom de Vries <tdevries (a] suse.de> 1095 1.1 christos 1096 1.1 christos * dwarf.c (read_string): Factor out of ... 1097 1.1 christos (read_attribute, read_line_header, read_line_program): ... here. 1098 1.1 christos 1099 1.1 christos 2018-10-31 Joseph Myers <joseph (a] codesourcery.com> 1100 1.1 christos 1101 1.1 christos PR bootstrap/82856 1102 1.1 christos * Makefile.am: Include multilib.am. 1103 1.1 christos * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. 1104 1.1 christos * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. 1105 1.1 christos 1106 1.1 christos 2018-10-05 Ian Lance Taylor <iant (a] golang.org> 1107 1.1 christos 1108 1.1 christos PR libbacktrace/87529 1109 1.1 christos * backtrace.h: Document that backtrace_create_state should be 1110 1.1 christos called only once. 1111 1.1 christos 1112 1.1 christos 2018-08-05 Iain Buclaw <ibuclaw (a] gdcproject.org> 1113 1.1 christos 1114 1.1 christos * configure.ac: Move define of HAVE_ZLIB into check for -lz. 1115 1.1 christos * Makefile.in: Regenerate. 1116 1.1 christos * config.h.in: Likewise. 1117 1.1 christos * configure: Likewise. 1118 1.1 christos 1119 1.1 christos 2018-08-01 Tony Reix <tony.reix (a] atos.net> 1120 1.1 christos 1121 1.1 christos * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove. 1122 1.1 christos (struct xcoff_func, struct xcoff_func_vector): New structs. 1123 1.1 christos (xcoff_syminfo): Drop leading dot from symbol name. 1124 1.1 christos (xcoff_line_compare, xcoff_line_search): Remove. 1125 1.1 christos (xcoff_func_compare, xcoff_func_search): New static functions. 1126 1.1 christos (xcoff_lookup_pc): Search function table. 1127 1.1 christos (xcoff_add_line, xcoff_process_linenos): Remove. 1128 1.1 christos (xcoff_initialize_fileline): Build function table. 1129 1.1 christos 1130 1.1 christos 2018-06-21 Denis Khalikov <d.khalikov (a] partner.samsung.com> 1131 1.1 christos 1132 1.1 christos PR other/86198 1133 1.1 christos * elf.c (elf_add): Increase ".note.gnu.build-id" section size 1134 1.1 christos checking up to 36 bytes. 1135 1.1 christos 1136 1.1 christos 2018-04-24 H.J. Lu <hongjiu.lu (a] intel.com> 1137 1.1 christos 1138 1.1 christos * configure: Regenerated. 1139 1.1 christos 1140 1.1 christos 2018-04-19 Jakub Jelinek <jakub (a] redhat.com> 1141 1.1 christos 1142 1.1 christos * configure: Regenerated. 1143 1.1 christos 1144 1.1 christos 2018-04-17 Ian Lance Taylor <iant (a] golang.org> 1145 1.1 christos 1146 1.1 christos * backtrace.c: Revert last two changes. Don't call mmap 1147 1.1 christos directly. 1148 1.1 christos 1149 1.1 christos 2018-04-17 Ian Lance Taylor <iant (a] golang.org> 1150 1.1 christos 1151 1.1 christos * backtrace.c: Include backtrace-supported.h before checking 1152 1.1 christos BACKTRACE_USES_MALLOC. 1153 1.1 christos 1154 1.1 christos 2018-04-17 Ian Lance Taylor <iant (a] golang.org> 1155 1.1 christos 1156 1.1 christos * backtrace.c (backtrace_full): When testing whether we can 1157 1.1 christos allocate memory, call mmap directly, and munmap the memory. 1158 1.1 christos 1159 1.1 christos 2018-04-04 Jakub Jelinek <jakub (a] redhat.com> 1160 1.1 christos 1161 1.1 christos PR other/85161 1162 1.1 christos * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for 1163 1.1 christos big endian, only use 32-bit loads if endianity macros are predefined 1164 1.1 christos and indicate big or little endian. 1165 1.1 christos 1166 1.1 christos 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist (a] intel.com> 1167 1.1 christos 1168 1.1 christos PR target/84148 1169 1.1 christos * configure: Regenerate. 1170 1.1 christos 1171 1.1 christos 2018-02-15 Jakub Jelinek <jakub (a] redhat.com> 1172 1.1 christos 1173 1.1 christos PR other/82368 1174 1.1 christos * elf.c (SHT_PROGBITS): Undefine and define. 1175 1.1 christos 1176 1.1 christos 2018-02-14 Jakub Jelinek <jakub (a] redhat.com> 1177 1.1 christos 1178 1.1 christos PR other/82368 1179 1.1 christos * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define. 1180 1.1 christos (struct elf_ppc64_opd_data): New type. 1181 1.1 christos (elf_initialize_syminfo): Add opd argument, handle symbols 1182 1.1 christos pointing into the PowerPC64 ELFv1 .opd section. 1183 1.1 christos (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer 1184 1.1 christos to structure with .opd data to elf_initialize_syminfo. 1185 1.1 christos 1186 1.1 christos 2018-01-31 Ian Lance Taylor <iant (a] golang.org> 1187 1.1 christos 1188 1.1 christos * elf.c (elf_add): Close descriptor if we use a debugfile. 1189 1.1 christos * btest.c (check_open_files): New static function. 1190 1.1 christos (main): Call check_open_files. 1191 1.1 christos 1192 1.1 christos 2018-01-25 Ian Lance Taylor <iant (a] golang.org> 1193 1.1 christos 1194 1.1 christos * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the 1195 1.1 christos desired CRC is zero. 1196 1.1 christos (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo. 1197 1.1 christos 1198 1.1 christos 2018-01-25 Ian Lance Taylor <iant (a] golang.org> 1199 1.1 christos 1200 1.1 christos * pecoff.c (coff_add): Only release syms_view if it is valid. 1201 1.1 christos 1202 1.1 christos 2018-01-25 Ian Lance Taylor <iant (a] golang.org> 1203 1.1 christos 1204 1.1 christos * pecoff.c (coff_add): Another memcpy -> coff_read4 fix. 1205 1.1 christos 1206 1.1 christos 2018-01-24 Ian Lance Taylor <iant (a] golang.org> 1207 1.1 christos 1208 1.1 christos * pecoff.c (coff_add): Use coff_read4, not memcpy. 1209 1.1 christos 1210 1.1 christos 2018-01-24 Ian Lance Taylor <iant (a] golang.org> 1211 1.1 christos 1212 1.1 christos PR other/68239 1213 1.1 christos * mmap.c (backtrace_free_locked): Don't put more than 16 entries 1214 1.1 christos on the free list. 1215 1.1 christos 1216 1.1 christos 2018-01-19 Tony Reix <tony.reix (a] atos.net> 1217 1.1 christos 1218 1.1 christos * xcoff.c (xcoff_incl_compare): New function. 1219 1.1 christos (xcoff_incl_search): New function. 1220 1.1 christos (xcoff_process_linenos): Use bsearch to find include file. 1221 1.1 christos (xcoff_initialize_fileline): Sort include file information. 1222 1.1 christos 1223 1.1 christos 2018-01-16 Ian Lance Taylor <iant (a] golang.org> 1224 1.1 christos 1225 1.1 christos * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be 1226 1.1 christos 288. 1227 1.1 christos (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to 1228 1.1 christos elf_zlib_inflate_table. Generate elf_zlib_default_dist_table. 1229 1.1 christos (elf_zlib_default_table): Update. 1230 1.1 christos (elf_zlib_default_dist_table): New static array. 1231 1.1 christos (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table 1232 1.1 christos for block type 1. 1233 1.1 christos * ztest.c (struct zlib_test): Add uncompressed_len. 1234 1.1 christos (tests): Initialize uncompressed_len field. Add new test case. 1235 1.1 christos (test_samples): Use uncompressed_len field. 1236 1.1 christos 1237 1.1 christos 2018-01-03 Jakub Jelinek <jakub (a] redhat.com> 1238 1.1 christos 1239 1.1 christos Update copyright years. 1240 1.1 christos 1241 1.1 christos 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist (a] intel.com> 1242 1.1 christos 1243 1.1 christos * configure.ac: Add CET_FLAGS to EXTRA_FLAGS. 1244 1.1 christos * aclocal.m4: Regenerate. 1245 1.1 christos * Makefile.in: Likewise. 1246 1.1 christos * configure: Likewise. 1247 1.1 christos 1248 1.1 christos 2017-10-06 Ian Lance Taylor <iant (a] golang.org> 1249 1.1 christos 1250 1.1 christos * ztest.c (test_large): Pass unsigned long *, not size_t *, to 1251 1.1 christos zlib uncompress function. 1252 1.1 christos 1253 1.1 christos 2017-10-05 Ian Lance Taylor <iant (a] golang.org> 1254 1.1 christos 1255 1.1 christos * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *. 1256 1.1 christos Read a four byte integer. 1257 1.1 christos (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit 1258 1.1 christos boundary before ever calling elf_zlib_fetch. 1259 1.1 christos * ztest.c (test_large): Simplify print statements a bit. 1260 1.1 christos 1261 1.1 christos 2017-10-02 Ian Lance Taylor <iant (a] golang.org> 1262 1.1 christos 1263 1.1 christos * ztest.c: #include <errno.h>. 1264 1.1 christos (TEST_TIMING): Don't define, don't test. 1265 1.1 christos (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME. 1266 1.1 christos (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise. 1267 1.1 christos (ZLIB_CLOCK_GETTIME_ARG): Define. 1268 1.1 christos * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK. 1269 1.1 christos * Makefile.am: Likewise. 1270 1.1 christos * configure, Makefile.in: Rebuild. 1271 1.1 christos 1272 1.1 christos 2017-10-02 Thomas Schwinge <thomas (a] codesourcery.com> 1273 1.1 christos 1274 1.1 christos PR other/67165 1275 1.1 christos * Makefile.am: Append the content of clock_gettime_link to 1276 1.1 christos ztest_LDADD. 1277 1.1 christos * configure.ac: Test for the case that clock_gettime is in librt. 1278 1.1 christos * Makefile.in: Regenerate. 1279 1.1 christos * configure: Likewise. 1280 1.1 christos 1281 1.1 christos PR other/67165 1282 1.1 christos * configure.ac: Check for clock_gettime. 1283 1.1 christos * config.h.in: Regenerate. 1284 1.1 christos * configure: Likewise. 1285 1.1 christos * ztest.c (average_time, test_large): Conditionalize test timing 1286 1.1 christos on clock_gettime availability. 1287 1.1 christos 1288 1.1 christos 2017-09-29 Tony Reix <tony.reix (a] atos.net> 1289 1.1 christos 1290 1.1 christos * xcoff.c: Initial support for DWARF debug sections in XCOFF. 1291 1.1 christos (STYP_DWARF, SSUBTYP_DW*): Define. 1292 1.1 christos (enum dwarf_section): Define. 1293 1.1 christos (struct dwsect_info): Define. 1294 1.1 christos (xcoff_add): Look for DWARF sections, pass them to 1295 1.1 christos backtrace_dwarf_add. 1296 1.1 christos 1297 1.1 christos 2017-09-28 Ian Lance Taylor <iant (a] golang.org> 1298 1.1 christos 1299 1.1 christos PR other/67165 1300 1.1 christos * elf.c (__builtin_prefetch): Define if not __GNUC__. 1301 1.1 christos (unlikely): Define. 1302 1.1 christos (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define. 1303 1.1 christos (b_elf_chdr): Define type. 1304 1.1 christos (enum debug_section): Add ZDEBUG_xxx values. 1305 1.1 christos (debug_section_names): Add names for new sections. 1306 1.1 christos (struct debug_section_info): Add compressed field. 1307 1.1 christos (elf_zlib_failed, elf_zlib_fetch): New static functions. 1308 1.1 christos (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define. 1309 1.1 christos (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define. 1310 1.1 christos (HUFFMAN_SECONDARY_SHIFT): Define. 1311 1.1 christos (ZDEBUG_TABLE_SIZE): Define. 1312 1.1 christos (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define. 1313 1.1 christos (final_next_secondary): New static variable if 1314 1.1 christos BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE. 1315 1.1 christos (elf_zlib_inflate_table): New static function. 1316 1.1 christos (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main 1317 1.1 christos function to produce fixed Huffman table. 1318 1.1 christos (elf_zlib_default_table): New static variable. 1319 1.1 christos (elf_zlib_inflate): New static function. 1320 1.1 christos (elf_zlib_verify_checksum): Likewise. 1321 1.1 christos (elf_zlib_inflate_and_verify): Likewise. 1322 1.1 christos (elf_uncompress_zdebug): Likewise. 1323 1.1 christos (elf_uncompress_chdr): Likewise. 1324 1.1 christos (backtrace_uncompress_zdebug): New extern function. 1325 1.1 christos (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug 1326 1.1 christos sections, and uncompress them. 1327 1.1 christos * internal.h (backtrace_compress_zdebug): Declare. 1328 1.1 christos * ztest.c: New file. 1329 1.1 christos * configure.ac: Check for -lz and check whether the linker 1330 1.1 christos supports --compress-debug-sections. 1331 1.1 christos * Makefile.am (ztest_SOURCES): New variable. 1332 1.1 christos (ztest_CFLAGS, ztest_LDADD): New variables. 1333 1.1 christos (check_PROGRAMS): Add ztest. 1334 1.1 christos (ctestg_SOURCES): New variable. 1335 1.1 christos (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables. 1336 1.1 christos (ctesta_SOURCES): New variable. 1337 1.1 christos (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables. 1338 1.1 christos (check_PROGRAMS): Add ctestg and ctesta. 1339 1.1 christos * configure, config.h.in, Makefile.in: Rebuild. 1340 1.1 christos 1341 1.1 christos 2017-09-22 Ian Lance Taylor <iant (a] golang.org> 1342 1.1 christos 1343 1.1 christos PR sanitizer/77631 1344 1.1 christos * configure.ac: Check for lstat and readlink. 1345 1.1 christos * elf.c (lstat, readlink): Provide dummy versions if real versions 1346 1.1 christos are not available. 1347 1.1 christos * configure, config.h.in: Rebuild. 1348 1.1 christos 1349 1.1 christos 2017-09-21 Ian Lance Taylor <iant (a] google.com> 1350 1.1 christos 1351 1.1 christos PR go/82284 1352 1.1 christos * elf.c (backtrace_initialize): Set pd.exe_filename. 1353 1.1 christos 1354 1.1 christos 2017-09-20 Ian Lance Taylor <iant (a] golang.org> 1355 1.1 christos Denis Khalikov <d.khalikov (a] partner.samsung.com> 1356 1.1 christos 1357 1.1 christos PR sanitizer/77631 1358 1.1 christos Support for external debug info. 1359 1.1 christos * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. 1360 1.1 christos (S_ISLNK): Define if not defined. 1361 1.1 christos (xstrnlen): Define if strnlen is not available. 1362 1.1 christos (b_elf_note): Define type. 1363 1.1 christos (NT_GNU_BUILD_ID): Define macro. 1364 1.1 christos (elf_crc32, elf_crc32_file): New static functions. 1365 1.1 christos (elf_is_symlink, elf_readlink): New static functions. 1366 1.1 christos (elf_open_debugfile_by_buildid): New static function. 1367 1.1 christos (elf_try_debugfile): New static function. 1368 1.1 christos (elf_find_debugfile_by_debuglink): New static function. 1369 1.1 christos (elf_open_debugfile_by_debuglink): New static function. 1370 1.1 christos (elf_add): Add filename and debuginfo parameters. Adjust all 1371 1.1 christos callers. Look for external debug info notes, and try to fetch 1372 1.1 christos debug info from external file. 1373 1.1 christos (struct phdr_data): Add exe_filename field. 1374 1.1 christos (phdr_callback): Pass filename to elf_add. 1375 1.1 christos (backtrace_initialize): Add filename parameter. 1376 1.1 christos * internal.h (backtrace_initialize): Add filename parameter. 1377 1.1 christos * fileline.c (fileline_initialize): Pass filename to 1378 1.1 christos backtrace_initialize. 1379 1.1 christos * pecoff.c (fileline_initialize): Add unused filename parameter. 1380 1.1 christos * unknown.c (fileline_initialize): Likewise. 1381 1.1 christos * xcoff.c (fileline_initialize): Likewise. 1382 1.1 christos * configure.ac: Check for objcopy --add-gnu-debuglink. 1383 1.1 christos * Makefile.am (dtest): New test target. 1384 1.1 christos * configure, Makefile.in: Rebuild. 1385 1.1 christos 1386 1.1 christos 2017-09-12 Steve Ellcey <sellcey (a] cavium.com> 1387 1.1 christos 1388 1.1 christos PR other/81096 1389 1.1 christos * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS) 1390 1.1 christos * Makefile.in: Regenerate. 1391 1.1 christos 1392 1.1 christos 2017-09-12 Steve Ellcey <sellcey (a] cavium.com> 1393 1.1 christos 1394 1.1 christos PR other/81096 1395 1.1 christos * libbacktrace/Makefile.in 1396 1.1 christos (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS) 1397 1.1 christos 1398 1.1 christos 2017-08-02 David Edelsohn <dje.gcc (a] gmail.com> 1399 1.1 christos 1400 1.1 christos PR bootstrap/81638 1401 1.1 christos * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. 1402 1.1 christos 1403 1.1 christos 2017-07-28 Tony Reix <tony.reix (a] atos.net> 1404 1.1 christos 1405 1.1 christos * xcoff.c: Don't leak a file descriptor if an archive is malformed. 1406 1.1 christos 1407 1.1 christos 2017-07-28 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 1408 1.1 christos 1409 1.1 christos * fileline.c (fileline_initialize): Print pid_t as long. 1410 1.1 christos 1411 1.1 christos 2017-07-26 Tony Reix <tony.reix (a] atos.net> 1412 1.1 christos 1413 1.1 christos * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. 1414 1.1 christos * filetype.awk: Separate AIX XCOFF32 and XCOFF64. 1415 1.1 christos * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats. 1416 1.1 christos * configure, config.h.in: Regenerate. 1417 1.1 christos 1418 1.1 christos 2017-07-21 Tony Reix <tony.reix (a] atos.net> 1419 1.1 christos 1420 1.1 christos * filetype.awk: Add AIX XCOFF type detection. 1421 1.1 christos * configure.ac: Recognize xcoff format. 1422 1.1 christos * Makefile.am (FORMAT_FILES): Add xcoff.c. 1423 1.1 christos * fileline.c: Include <unistd.h>. 1424 1.1 christos (fileline_initialize): Add case for AIX procfs. 1425 1.1 christos * xcoff.c: New file. 1426 1.1 christos * configure, Makefile.in: Rebuild. 1427 1.1 christos 1428 1.1 christos 2017-06-21 Richard Biener <rguenther (a] suse.de> 1429 1.1 christos 1430 1.1 christos * configure.ac: Add AC_SYS_LARGEFILE. 1431 1.1 christos * config.h.in: Regenerate. 1432 1.1 christos * configure: Likewise. 1433 1.1 christos 1434 1.1 christos 2017-06-11 Ian Lance Taylor <iant (a] golang.org> 1435 1.1 christos 1436 1.1 christos * elf.c (backtrace_initialize): Always set *fileline_fn. 1437 1.1 christos * ttest.c: New file. 1438 1.1 christos * btest.c: Move support functions into testlib.c. Change calls to 1439 1.1 christos check to pass file name. 1440 1.1 christos * testlib.c: New file, copied from (part of) btest.c. 1441 1.1 christos * testlib.h: New file, declarations for testlib.c. 1442 1.1 christos * edtest.c: Use testlib.h and testlib.c. 1443 1.1 christos * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional. 1444 1.1 christos * Makefile.am (btest_SOURCES): Add testlib.c. 1445 1.1 christos (edtest_SOURCES): Likewise. 1446 1.1 christos (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD. 1447 1.1 christos (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define. 1448 1.1 christos * configure, Makefile.in: Rebuild. 1449 1.1 christos 1450 1.1 christos 2017-05-19 Than McIntosh <thanm (a] google.com> 1451 1.1 christos 1452 1.1 christos * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. 1453 1.1 christos (read_line_header): Don't allocate dirs if dirs_count == 0. 1454 1.1 christos * edtest.c: New file. 1455 1.1 christos * edtest2.c: New file. 1456 1.1 christos * Makefile.am (edtest_SOURCES, edtest_LDADD): Define. 1457 1.1 christos (check_PROGRAMS): Add edtest. 1458 1.1 christos (edtest2_build.c, gen_edtest2_build): New targets. 1459 1.1 christos * Makefile.in: Rebuild. 1460 1.1 christos 1461 1.1 christos 2017-03-08 Sam Thursfield <sam.thursfield (a] codethink.co.uk> 1462 1.1 christos 1463 1.1 christos * btest.c (test5): Replace #ifdef guard with 'unused' attribute 1464 1.1 christos to fix compile warning when BACKTRACE_SUPPORTED isn't defined. 1465 1.1 christos 1466 1.1 christos 2017-01-01 Jakub Jelinek <jakub (a] redhat.com> 1467 1.1 christos 1468 1.1 christos Update copyright years. 1469 1.1 christos 1470 1.1 christos 2016-11-15 Matthias Klose <doko (a] ubuntu.com> 1471 1.1 christos 1472 1.1 christos * configure: Regenerate. 1473 1.1 christos 1474 1.1 christos 2016-09-11 Carlos Liam <carlos (a] aarzee.me> 1475 1.1 christos 1476 1.1 christos * all: Remove meaningless trailing whitespace. 1477 1.1 christos 1478 1.1 christos 2016-05-18 Uros Bizjak <ubizjak (a] gmail.com> 1479 1.1 christos 1480 1.1 christos PR target/71161 1481 1.1 christos * elf.c (phdr_callback) [__i386__]: Add 1482 1.1 christos __attribute__((__force_align_arg_pointer__)). 1483 1.1 christos 1484 1.1 christos 2016-03-02 Maxim Ostapenko <m.ostapenko (a] partner.samsung.com> 1485 1.1 christos 1486 1.1 christos * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to 1487 1.1 christos avoid possible crash. 1488 1.1 christos (elf_add): Don't set *fileline_fn to elf_nodebug value in case of 1489 1.1 christos missing debug info anymore. 1490 1.1 christos 1491 1.1 christos 2016-02-06 John David Anglin <danglin (a] gcc.gnu.org> 1492 1.1 christos 1493 1.1 christos * mmap.c (MAP_FAILED): Define if not defined. 1494 1.1 christos 1495 1.1 christos 2016-01-04 Jakub Jelinek <jakub (a] redhat.com> 1496 1.1 christos 1497 1.1 christos Update copyright years. 1498 1.1 christos 1499 1.1 christos 2015-12-18 Andris Pavenis <andris.pavenis (a] iki.fi> 1500 1.1 christos 1501 1.1 christos * configure.ac: Specify that DJGPP do not have mmap 1502 1.1 christos even when sys/mman.h exists. 1503 1.1 christos * configure: Regenerate 1504 1.1 christos 1505 1.1 christos 2015-12-09 John David Anglin <danglin (a] gcc.gnu.org> 1506 1.1 christos 1507 1.1 christos PR libgfortran/68115 1508 1.1 christos * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. 1509 1.1 christos * configure: Regenerate. 1510 1.1 christos * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call 1511 1.1 christos to void. 1512 1.1 christos 1513 1.1 christos 2015-09-17 Ian Lance Taylor <iant (a] google.com> 1514 1.1 christos 1515 1.1 christos * posix.c (backtrace_open): Cast second argument of open() to int. 1516 1.1 christos 1517 1.1 christos 2015-09-11 Ian Lance Taylor <iant (a] google.com> 1518 1.1 christos 1519 1.1 christos * Makefile.am (backtrace.lo): Depend on internal.h. 1520 1.1 christos (sort.lo, stest.lo): Add explicit dependencies. 1521 1.1 christos * Makefile.in: Rebuild. 1522 1.1 christos 1523 1.1 christos 2015-09-09 Hans-Peter Nilsson <hp (a] axis.com> 1524 1.1 christos 1525 1.1 christos * backtrace.c: #include <sys/types.h>. 1526 1.1 christos 1527 1.1 christos 2015-09-08 Ian Lance Taylor <iant (a] google.com> 1528 1.1 christos 1529 1.1 christos PR other/67457 1530 1.1 christos * backtrace.c: #include "internal.h". 1531 1.1 christos (struct backtrace_data): Add can_alloc field. 1532 1.1 christos (unwind): If can_alloc is false, don't try to get file/line 1533 1.1 christos information. 1534 1.1 christos (backtrace_full): Set can_alloc field in bdata. 1535 1.1 christos * alloc.c (backtrace_alloc): Don't call error_callback if it is 1536 1.1 christos NULL. 1537 1.1 christos * mmap.c (backtrace_alloc): Likewise. 1538 1.1 christos * internal.h: Update comments for backtrace_alloc and 1539 1.1 christos backtrace_free. 1540 1.1 christos 1541 1.1 christos 2015-09-08 Ian Lance Taylor <iant (a] google.com> 1542 1.1 christos 1543 1.1 christos PR other/67457 1544 1.1 christos * mmap.c (backtrace_alloc): Correct test for mmap failure. 1545 1.1 christos 1546 1.1 christos 2015-08-31 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com> 1547 1.1 christos 1548 1.1 christos * configure.ac: For spu-*-* targets, set have_fcntl to no. 1549 1.1 christos * configure: Regenerate. 1550 1.1 christos 1551 1.1 christos 2015-08-27 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com> 1552 1.1 christos 1553 1.1 christos * configure.ac: Remove [disable-shared] argument to LT_INIT. 1554 1.1 christos Remove setting PIC_FLAG when building as target library. 1555 1.1 christos * configure: Regenerate. 1556 1.1 christos 1557 1.1 christos 2015-08-26 Hans-Peter Nilsson <hp (a] axis.com> 1558 1.1 christos 1559 1.1 christos * configure.ac: Only compile with -fPIC if the target 1560 1.1 christos supports it. 1561 1.1 christos * configure: Regenerate. 1562 1.1 christos 1563 1.1 christos 2015-08-24 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com> 1564 1.1 christos 1565 1.1 christos * configure.ac: Set have_mmap to no on spu-*-* targets. 1566 1.1 christos * configure: Regenerate. 1567 1.1 christos 1568 1.1 christos 2015-08-13 Ian Lance Taylor <iant (a] google.com> 1569 1.1 christos 1570 1.1 christos * dwarf.c (read_function_entry): Add vec_inlined parameter. 1571 1.1 christos Change all callers. 1572 1.1 christos 1573 1.1 christos 2015-06-11 Martin Sebor <msebor (a] redhat.com> 1574 1.1 christos 1575 1.1 christos PR sanitizer/65479 1576 1.1 christos * dwarf.c (struct line): Add new field idx. 1577 1.1 christos (line_compare): Use it. 1578 1.1 christos (add_line): Set it. 1579 1.1 christos (read_line_info): Reset it. 1580 1.1 christos 1581 1.1 christos 2015-05-29 Tristan Gingold <gingold (a] adacore.com> 1582 1.1 christos 1583 1.1 christos * pecoff.c: New file. 1584 1.1 christos * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. 1585 1.1 christos * Makefile.in: Regenerate. 1586 1.1 christos * filetype.awk: Detect pecoff. 1587 1.1 christos * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. 1588 1.1 christos Add pecoff. 1589 1.1 christos * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is 1590 1.1 christos true. 1591 1.1 christos * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. 1592 1.1 christos * configure: Regenerate. 1593 1.1 christos * pecoff.c: New file. 1594 1.1 christos 1595 1.1 christos 2015-05-13 Michael Haubenwallner <michael.haubenwallner (a] ssi-schaefer.com> 1596 1.1 christos 1597 1.1 christos * Makefile.in: Regenerated with automake-1.11.6. 1598 1.1 christos * aclocal.m4: Likewise. 1599 1.1 christos * configure: Likewise. 1600 1.1 christos 1601 1.1 christos 2015-01-24 Matthias Klose <doko (a] ubuntu.com> 1602 1.1 christos 1603 1.1 christos * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 1604 1.1 christos * configure: Regenerate. 1605 1.1 christos 1606 1.1 christos 2015-01-05 Jakub Jelinek <jakub (a] redhat.com> 1607 1.1 christos 1608 1.1 christos Update copyright years. 1609 1.1 christos 1610 1.1 christos 2014-11-21 H.J. Lu <hongjiu.lu (a] intel.com> 1611 1.1 christos 1612 1.1 christos PR bootstrap/63784 1613 1.1 christos * configure: Regenerated. 1614 1.1 christos 1615 1.1 christos 2014-11-11 David Malcolm <dmalcolm (a] redhat.com> 1616 1.1 christos 1617 1.1 christos * ChangeLog.jit: New. 1618 1.1 christos 1619 1.1 christos 2014-11-11 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org> 1620 1.1 christos 1621 1.1 christos PR target/63610 1622 1.1 christos * configure: Regenerate. 1623 1.1 christos 1624 1.1 christos 2014-10-23 Ian Lance Taylor <iant (a] google.com> 1625 1.1 christos 1626 1.1 christos * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: 1627 1.1 christos Fix to return void *. 1628 1.1 christos 1629 1.1 christos 2014-05-08 Ian Lance Taylor <iant (a] google.com> 1630 1.1 christos 1631 1.1 christos * mmap.c (backtrace_free): If freeing a large aligned block of 1632 1.1 christos memory, call munmap rather than holding onto it. 1633 1.1 christos (backtrace_vector_grow): When growing a vector, double the number 1634 1.1 christos of pages requested. When releasing the old version of a grown 1635 1.1 christos vector, pass the correct size to backtrace_free. 1636 1.1 christos 1637 1.1 christos 2014-03-07 Ian Lance Taylor <iant (a] google.com> 1638 1.1 christos 1639 1.1 christos * sort.c (backtrace_qsort): Use middle element as pivot. 1640 1.1 christos 1641 1.1 christos 2014-03-06 Ian Lance Taylor <iant (a] google.com> 1642 1.1 christos 1643 1.1 christos * sort.c: New file. 1644 1.1 christos * stest.c: New file. 1645 1.1 christos * internal.h (backtrace_qsort): Declare. 1646 1.1 christos * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. 1647 1.1 christos (read_line_info, read_function_entry): Likewise. 1648 1.1 christos (read_function_info, build_dwarf_data): Likewise. 1649 1.1 christos * elf.c (elf_initialize_syminfo): Likewise. 1650 1.1 christos * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. 1651 1.1 christos (stest_SOURCES, stest_LDADD): Define. 1652 1.1 christos (check_PROGRAMS): Add stest. 1653 1.1 christos 1654 1.1 christos 2014-02-07 Misty De Meo <misty (a] brew.sh> 1655 1.1 christos 1656 1.1 christos PR target/58710 1657 1.1 christos * configure.ac: Use AC_LINK_IFELSE in check for 1658 1.1 christos _Unwind_GetIPInfo. 1659 1.1 christos * configure: Regenerate. 1660 1.1 christos 1661 1.1 christos 2014-01-02 Richard Sandiford <rdsandiford (a] googlemail.com> 1662 1.1 christos 1663 1.1 christos Update copyright years 1664 1.1 christos 1665 1.1 christos 2013-12-06 Jakub Jelinek <jakub (a] redhat.com> 1666 1.1 christos 1667 1.1 christos * elf.c (ET_DYN): Undefine and define again. 1668 1.1 christos (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, 1669 1.1 christos return early -1 without closing the descriptor. 1670 1.1 christos (struct phdr_data): Add exe_descriptor. 1671 1.1 christos (phdr_callback): If pd->exe_descriptor is not -1, for very first 1672 1.1 christos call if dlpi_name is NULL just call elf_add with the exe_descriptor, 1673 1.1 christos otherwise backtrace_close the exe_descriptor if not -1. Adjust 1674 1.1 christos call to elf_add. 1675 1.1 christos (backtrace_initialize): Adjust call to elf_add. If it returns 1676 1.1 christos -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. 1677 1.1 christos 1678 1.1 christos 2013-12-05 Ian Lance Taylor <iant (a] google.com> 1679 1.1 christos 1680 1.1 christos * alloc.c (backtrace_vector_finish): Add error_callback and data 1681 1.1 christos parameters. Call backtrace_vector_release. Return address base. 1682 1.1 christos * mmap.c (backtrace_vector_finish): Add error_callback and data 1683 1.1 christos parameters. Return address base. 1684 1.1 christos * dwarf.c (read_function_info): Get new address base from 1685 1.1 christos backtrace_vector_finish. 1686 1.1 christos * internal.h (backtrace_vector_finish): Update declaration. 1687 1.1 christos 1688 1.1 christos 2013-11-27 Ian Lance Taylor <iant (a] google.com> 1689 1.1 christos 1690 1.1 christos * dwarf.c (find_address_ranges): New static function, broken out 1691 1.1 christos of build_address_map. 1692 1.1 christos (build_address_map): Call it. 1693 1.1 christos * btest.c (check): Check for missing filename or function, rather 1694 1.1 christos than crashing. 1695 1.1 christos (f3): Check that enough frames were returned. 1696 1.1 christos 1697 1.1 christos 2013-11-19 Jakub Jelinek <jakub (a] redhat.com> 1698 1.1 christos 1699 1.1 christos * backtrace.h (backtrace_syminfo_callback): Add symsize argument. 1700 1.1 christos * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as 1701 1.1 christos last argument. 1702 1.1 christos * btest.c (struct symdata): Add size field. 1703 1.1 christos (callback_three): Add symsize argument. Copy it to the data->size 1704 1.1 christos field. 1705 1.1 christos (f23): Set symdata.size to 0. 1706 1.1 christos (test5): Likewise. If sizeof (int) > 1, lookup address of 1707 1.1 christos ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size 1708 1.1 christos values. 1709 1.1 christos 1710 1.1 christos * atomic.c: Include sys/types.h. 1711 1.1 christos 1712 1.1 christos 2013-11-18 Ian Lance Taylor <iant (a] google.com> 1713 1.1 christos 1714 1.1 christos * configure.ac: Check for support of __atomic extensions. 1715 1.1 christos * internal.h: Declare or #define atomic functions for use in 1716 1.1 christos backtrace code. 1717 1.1 christos * atomic.c: New file. 1718 1.1 christos * dwarf.c (dwarf_lookup_pc): Use atomic functions. 1719 1.1 christos (dwarf_fileline, backtrace_dwarf_add): Likewise. 1720 1.1 christos * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. 1721 1.1 christos (backtrace_initialize): Likewise. 1722 1.1 christos * fileline.c (fileline_initialize): Likewise. 1723 1.1 christos * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. 1724 1.1 christos * configure, config.h.in, Makefile.in: Rebuild. 1725 1.1 christos 1726 1.1 christos 2013-11-18 Jakub Jelinek <jakub (a] redhat.com> 1727 1.1 christos 1728 1.1 christos * elf.c (SHN_UNDEF): Define. 1729 1.1 christos (elf_initialize_syminfo): Add base_address argument. Ignore symbols 1730 1.1 christos with st_shndx == SHN_UNDEF. Add base_address to address fields. 1731 1.1 christos (elf_add): Adjust caller. 1732 1.1 christos 1733 1.1 christos * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. 1734 1.1 christos 1735 1.1 christos 2013-11-16 Ian Lance Taylor <iant (a] google.com> 1736 1.1 christos 1737 1.1 christos * backtrace.h (backtrace_create_state): Correct comment about 1738 1.1 christos threading. 1739 1.1 christos 1740 1.1 christos 2013-11-15 Ian Lance Taylor <iant (a] google.com> 1741 1.1 christos 1742 1.1 christos * backtrace.h (backtrace_syminfo): Update comment and parameter 1743 1.1 christos name to take any address, not just a PC value. 1744 1.1 christos * elf.c (STT_OBJECT): Define. 1745 1.1 christos (elf_nosyms): Rename parameter pc to addr. 1746 1.1 christos (elf_symbol_search): Rename local variable pc to addr. 1747 1.1 christos (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. 1748 1.1 christos (elf_syminfo): Rename parameter pc to addr. 1749 1.1 christos * btest.c (global): New global variable. 1750 1.1 christos (test5): New test. 1751 1.1 christos (main): Call test5. 1752 1.1 christos 1753 1.1 christos 2013-10-17 Ian Lance Taylor <iant (a] google.com> 1754 1.1 christos 1755 1.1 christos * elf.c (elf_add): Don't get the wrong offsets if a debug section 1756 1.1 christos is missing. 1757 1.1 christos 1758 1.1 christos 2013-10-15 David Malcolm <dmalcolm (a] redhat.com> 1759 1.1 christos 1760 1.1 christos * configure.ac: Add --enable-host-shared, setting up 1761 1.1 christos pre-existing PIC_FLAG variable within Makefile.am et al. 1762 1.1 christos * configure: Regenerate. 1763 1.1 christos 1764 1.1 christos 2013-09-20 Alan Modra <amodra (a] gmail.com> 1765 1.1 christos 1766 1.1 christos * configure: Regenerate. 1767 1.1 christos 1768 1.1 christos 2013-07-23 Alexander Monakov <amonakov (a] ispras.ru> 1769 1.1 christos 1770 1.1 christos * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. 1771 1.1 christos 1772 1.1 christos 2013-07-23 Alexander Monakov <amonakov (a] ispras.ru> 1773 1.1 christos 1774 1.1 christos * elf.c (backtrace_initialize): Pass elf_fileline_fn to 1775 1.1 christos dl_iterate_phdr callbacks. 1776 1.1 christos 1777 1.1 christos 2013-03-25 Ian Lance Taylor <iant (a] google.com> 1778 1.1 christos 1779 1.1 christos * alloc.c: #include <sys/types.h>. 1780 1.1 christos * mmap.c: Likewise. 1781 1.1 christos 1782 1.1 christos 2013-01-31 Ian Lance Taylor <iant (a] google.com> 1783 1.1 christos 1784 1.1 christos * dwarf.c (read_function_info): Permit fvec parameter to be NULL. 1785 1.1 christos (dwarf_lookup_pc): Don't use ddata->fvec if threaded. 1786 1.1 christos 1787 1.1 christos 2013-01-25 Jakub Jelinek <jakub (a] redhat.com> 1788 1.1 christos 1789 1.1 christos PR other/56076 1790 1.1 christos * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir 1791 1.1 christos attribute was not seen. 1792 1.1 christos 1793 1.1 christos 2013-01-16 Ian Lance Taylor <iant (a] google.com> 1794 1.1 christos 1795 1.1 christos * dwarf.c (struct unit): Add filename and abs_filename fields. 1796 1.1 christos (build_address_map): Set new fields when reading unit. 1797 1.1 christos (dwarf_lookup_pc): If we don't find an entry in the line table, 1798 1.1 christos just return the main file name. 1799 1.1 christos 1800 1.1 christos 2013-01-14 Richard Sandiford <rdsandiford (a] googlemail.com> 1801 1.1 christos 1802 1.1 christos Update copyright years. 1803 1.1 christos 1804 1.1 christos 2013-01-01 Ian Lance Taylor <iant (a] google.com> 1805 1.1 christos 1806 1.1 christos PR bootstrap/54834 1807 1.1 christos * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I 1808 1.1 christos $(MULTIBUILDTOP)/../../gcc/include. 1809 1.1 christos * Makefile.in: Rebuild. 1810 1.1 christos 1811 1.1 christos 2013-01-01 Ian Lance Taylor <iant (a] google.com> 1812 1.1 christos 1813 1.1 christos PR other/55536 1814 1.1 christos * mmap.c (backtrace_alloc): Don't call sync functions if not 1815 1.1 christos threaded. 1816 1.1 christos (backtrace_free): Likewise. 1817 1.1 christos 1818 1.1 christos 2012-12-12 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca> 1819 1.1 christos 1820 1.1 christos * mmapio.c: Define MAP_FAILED if not defined. 1821 1.1 christos 1822 1.1 christos 2012-12-11 Jakub Jelinek <jakub (a] redhat.com> 1823 1.1 christos 1824 1.1 christos PR bootstrap/54926 1825 1.1 christos * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. 1826 1.1 christos * configure.ac: If --with-target-subdir, add -frandom-seed=$@ 1827 1.1 christos to EXTRA_FLAGS unconditionally, otherwise check whether the compiler 1828 1.1 christos accepts it. 1829 1.1 christos * Makefile.in: Regenerated. 1830 1.1 christos * configure: Regenerated. 1831 1.1 christos 1832 1.1 christos 2012-12-07 Jakub Jelinek <jakub (a] redhat.com> 1833 1.1 christos 1834 1.1 christos PR bootstrap/54926 1835 1.1 christos * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. 1836 1.1 christos * Makefile.in: Regenerated. 1837 1.1 christos 1838 1.1 christos 2012-11-20 Ian Lance Taylor <iant (a] google.com> 1839 1.1 christos 1840 1.1 christos * dwarf.c (read_attribute): Always clear val. 1841 1.1 christos 1842 1.1 christos 2012-11-13 Ian Lance Taylor <iant (a] google.com> 1843 1.1 christos 1844 1.1 christos PR other/55312 1845 1.1 christos * configure.ac: Only add -Werror if building a target library. 1846 1.1 christos * configure: Rebuild. 1847 1.1 christos 1848 1.1 christos 2012-11-12 Ian Lance Taylor <iant (a] google.com> 1849 1.1 christos Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 1850 1.1 christos Gerald Pfeifer <gerald (a] pfeifer.com> 1851 1.1 christos 1852 1.1 christos * configure.ac: Check for getexecname. 1853 1.1 christos * fileline.c: #include <errno.h>. Define getexecname if not 1854 1.1 christos available. 1855 1.1 christos (fileline_initialize): Try to find the executable in a few 1856 1.1 christos different ways. 1857 1.1 christos * print.c (error_callback): Only print the filename if it came 1858 1.1 christos from the backtrace state. 1859 1.1 christos * configure, config.h.in: Rebuild. 1860 1.1 christos 1861 1.1 christos 2012-10-29 Ian Lance Taylor <iant (a] google.com> 1862 1.1 christos 1863 1.1 christos * mmap.c (backtrace_vector_release): Correct last patch: add 1864 1.1 christos aligned, not size. 1865 1.1 christos 1866 1.1 christos 2012-10-29 Ian Lance Taylor <iant (a] google.com> 1867 1.1 christos 1868 1.1 christos * mmap.c (backtrace_vector_release): Make sure freed block is 1869 1.1 christos aligned on 8-byte boundary. 1870 1.1 christos 1871 1.1 christos 2012-10-26 Ian Lance Taylor <iant (a] google.com> 1872 1.1 christos 1873 1.1 christos PR other/55087 1874 1.1 christos * posix.c (backtrace_open): Add does_not_exist parameter. 1875 1.1 christos * elf.c (phdr_callback): Do not warn if shared library could not 1876 1.1 christos be opened. 1877 1.1 christos * fileline.c (fileline_initialize): Update calls to 1878 1.1 christos backtrace_open. 1879 1.1 christos * internal.h (backtrace_open): Update declaration. 1880 1.1 christos 1881 1.1 christos 2012-10-26 Jack Howarth <howarth (a] bromo.med.uc.edu> 1882 1.1 christos 1883 1.1 christos PR target/55061 1884 1.1 christos * configure.ac: Check for _Unwind_GetIPInfo function declaration. 1885 1.1 christos * configure: Regenerate. 1886 1.1 christos 1887 1.1 christos 2012-10-24 Ian Lance Taylor <iant (a] google.com> 1888 1.1 christos 1889 1.1 christos PR target/55061 1890 1.1 christos * configure.ac: Check whether -funwind-tables option works. 1891 1.1 christos * configure: Rebuild. 1892 1.1 christos 1893 1.1 christos 2012-10-11 Ian Lance Taylor <iant (a] google.com> 1894 1.1 christos 1895 1.1 christos * configure.ac: Do not use dl_iterate_phdr on Solaris 10. 1896 1.1 christos * configure: Rebuild. 1897 1.1 christos 1898 1.1 christos 2012-10-10 Ian Lance Taylor <iant (a] google.com> 1899 1.1 christos 1900 1.1 christos * elf.c: Rename all Elf typedefs to start with b_elf, and be all 1901 1.1 christos lower case. 1902 1.1 christos 1903 1.1 christos 2012-10-10 Hans-Peter Nilsson <hp (a] bitrange.com> 1904 1.1 christos 1905 1.1 christos * elf.c (elf_add_syminfo_data): Add casts to avoid warning. 1906 1.1 christos 1907 1.1 christos 2012-10-09 Ian Lance Taylor <iant (a] google.com> 1908 1.1 christos 1909 1.1 christos * dwarf.c (dwarf_fileline): Add cast to avoid warning. 1910 1.1 christos (backtrace_dwarf_add): Likewise. 1911 1.1 christos 1912 1.1 christos 2012-10-09 Ian Lance Taylor <iant (a] google.com> 1913 1.1 christos 1914 1.1 christos Add support for tracing through shared libraries. 1915 1.1 christos * configure.ac: Check for link.h and dl_iterate_phdr. 1916 1.1 christos * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef 1917 1.1 christos ELF macros before #defining them. 1918 1.1 christos (dl_phdr_info, dl_iterate_phdr): Define if system does not have 1919 1.1 christos dl_iterate_phdr. 1920 1.1 christos (struct elf_syminfo_data): Add next field. 1921 1.1 christos (elf_initialize_syminfo): Initialize next field. 1922 1.1 christos (elf_add_syminfo_data): New static function. 1923 1.1 christos (elf_add): New static function, broken out of 1924 1.1 christos backtrace_initialize. Call backtrace_dwarf_add instead of 1925 1.1 christos backtrace_dwarf_initialize. 1926 1.1 christos (struct phdr_data): Define. 1927 1.1 christos (phdr_callback): New static function. 1928 1.1 christos (backtrace_initialize): Call elf_add. 1929 1.1 christos * dwarf.c (struct dwarf_data): Add next and base_address fields. 1930 1.1 christos (add_unit_addr): Add base_address parameter. Change all callers. 1931 1.1 christos (add_unit_ranges, build_address_map): Likewise. 1932 1.1 christos (add_line): Add ddata parameter. Change all callers. 1933 1.1 christos (read_line_program, add_function_range): Likewise. 1934 1.1 christos (dwarf_lookup_pc): New static function, broken out of 1935 1.1 christos dwarf_fileline. 1936 1.1 christos (dwarf_fileline): Call dwarf_lookup_pc. 1937 1.1 christos (build_dwarf_data): New static function. 1938 1.1 christos (backtrace_dwarf_add): New function. 1939 1.1 christos (backtrace_dwarf_initialize): Remove. 1940 1.1 christos * internal.h (backtrace_dwarf_initialize): Don't declare. 1941 1.1 christos (backtrace_dwarf_add): Declare. 1942 1.1 christos * configure, config.h.in: Rebuild. 1943 1.1 christos 1944 1.1 christos 2012-10-04 Gerald Pfeifer <gerald (a] pfeifer.com> 1945 1.1 christos 1946 1.1 christos * btest.c (f23): Avoid uninitialized variable warning. 1947 1.1 christos 1948 1.1 christos 2012-10-04 Ian Lance Taylor <iant (a] google.com> 1949 1.1 christos 1950 1.1 christos * dwarf.c: If the system header files do not declare strnlen, 1951 1.1 christos provide our own version. 1952 1.1 christos 1953 1.1 christos 2012-10-03 Ian Lance Taylor <iant (a] google.com> 1954 1.1 christos 1955 1.1 christos * dwarf.c (read_uleb128): Fix overflow test. 1956 1.1 christos (read_sleb128): Likewise. 1957 1.1 christos (build_address_map): Don't change unit_buf.start. 1958 1.1 christos 1959 1.1 christos 2012-10-02 Uros Bizjak <ubizjak (a] gmail.com> 1960 1.1 christos 1961 1.1 christos PR other/54761 1962 1.1 christos * configure.ac (EXTRA_FLAGS): New. 1963 1.1 christos * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). 1964 1.1 christos * configure, Makefile.in: Regenerate. 1965 1.1 christos 1966 1.1 christos 2012-09-29 Ian Lance Taylor <iant (a] google.com> 1967 1.1 christos 1968 1.1 christos PR other/54749 1969 1.1 christos * fileline.c (fileline_initialize): Pass errnum as -1 when 1970 1.1 christos reporting that we could not read executable information after a 1971 1.1 christos previous failure. 1972 1.1 christos 1973 1.1 christos 2012-09-27 Ian Lance Taylor <iant (a] google.com> 1974 1.1 christos 1975 1.1 christos PR bootstrap/54732 1976 1.1 christos * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. 1977 1.1 christos * Makefile.am: Add dependencies for all objects. 1978 1.1 christos * configure, aclocal.m4, Makefile.in: Rebuild. 1979 1.1 christos 1980 1.1 christos 2012-09-27 Ian Lance Taylor <iant (a] google.com> 1981 1.1 christos 1982 1.1 christos PR other/54726 1983 1.1 christos * elf.c (backtrace_initialize): Set *fileln_fn, not 1984 1.1 christos state->fileln_fn. 1985 1.1 christos 1986 1.1 christos 2012-09-19 Ian Lance Taylor <iant (a] google.com> 1987 1.1 christos 1988 1.1 christos * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled 1989 1.1 christos as a target library. 1990 1.1 christos * configure: Rebuild. 1991 1.1 christos 1992 1.1 christos 2012-09-19 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 1993 1.1 christos Ian Lance Taylor <iant (a] google.com> 1994 1.1 christos 1995 1.1 christos * configure.ac (GCC_HEADER_STDINT): Invoke. 1996 1.1 christos * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". 1997 1.1 christos * btest.c: Don't include <stdint.h>. 1998 1.1 christos * dwarf.c: Likewise. 1999 1.1 christos * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. 2000 1.1 christos 2001 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2002 1.1 christos 2003 1.1 christos PR bootstrap/54623 2004 1.1 christos * Makefile.am (AM_CPPFLAGS): Define. 2005 1.1 christos (AM_CFLAGS): Remove -I options. 2006 1.1 christos * Makefile.in: Rebuild. 2007 1.1 christos 2008 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2009 1.1 christos 2010 1.1 christos * posix.c (O_BINARY): Define if not defined. 2011 1.1 christos (backtrace_open): Pass O_BINARY to open. Only call fcntl if 2012 1.1 christos HAVE_FCNTL is defined. 2013 1.1 christos * configure.ac: Test for the fcntl function. 2014 1.1 christos * configure, config.h.in: Rebuild. 2015 1.1 christos 2016 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2017 1.1 christos 2018 1.1 christos * btest.c (test1, test2, test3, test4): Add the unused attribute. 2019 1.1 christos 2020 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2021 1.1 christos 2022 1.1 christos * dwarf.c: Correct test of HAVE_DECL_STRNLEN. 2023 1.1 christos 2024 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2025 1.1 christos 2026 1.1 christos * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 2027 1.1 christos * mmapio.c: Don't define _GNU_SOURCE. 2028 1.1 christos * configure, config.h.in: Rebuild. 2029 1.1 christos 2030 1.1 christos 2012-09-18 Ian Lance Taylor <iant (a] google.com> 2031 1.1 christos 2032 1.1 christos * configure.ac: Check whether strnlen is declared. 2033 1.1 christos * dwarf.c: Declare strnlen if not declared. 2034 1.1 christos * configure, config.h.in: Rebuild. 2035 1.1 christos 2036 1.1 christos 2012-09-18 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE> 2037 1.1 christos 2038 1.1 christos * fileline.c: Include <stdlib.h>. 2039 1.1 christos * mmap.c: Likewise. 2040 1.1 christos 2041 1.1 christos 2012-09-17 Ian Lance Taylor <iant (a] google.com> 2042 1.1 christos 2043 1.1 christos PR bootstrap/54611 2044 1.1 christos * nounwind.c (backtrace_full): Rename from backtrace. Add state 2045 1.1 christos parameter. 2046 1.1 christos 2047 1.1 christos 2012-09-17 Gerald Pfeifer <gerald (a] pfeifer.com> 2048 1.1 christos 2049 1.1 christos PR bootstrap/54611 2050 1.1 christos * nounwind.c (backtrace_simple): Add state parameter. 2051 1.1 christos 2052 1.1 christos 2012-09-17 Ian Lance Taylor <iant (a] google.com> 2053 1.1 christos 2054 1.1 christos PR bootstrap/54609 2055 1.1 christos * unknown.c (unknown_fileline): Add state parameter, remove 2056 1.1 christos fileline_data parameter, name error_callback parameter. 2057 1.1 christos (backtrace_initialize): Add state parameter. 2058 1.1 christos 2059 1.1 christos 2012-09-17 Ian Lance Taylor <iant (a] google.com> 2060 1.1 christos 2061 1.1 christos * Initial implementation. 2062 1.1 christos 2064 1.1 christos Copyright (C) 2012-2024 Free Software Foundation, Inc. 2065 1.1 christos 2066 1.1 christos Copying and distribution of this file, with or without modification, 2067 1.1 christos are permitted in any medium without royalty provided the copyright 2068 notice and this notice are preserved. 2069