12021-05-03 H.J. Lu <hjl.tools@gmail.com> 2 3 PR bootstrap/99703 4 * configure: Regenerated. 5 62021-03-03 Ian Lance Taylor <iant@golang.org> 7 8 * dwarf.c (read_line_program): Don't special case file 0. 9 (read_function_entry): Likewise. 10 112021-03-02 Ian Lance Taylor <iant@golang.org> 12 13 PR libbacktrace/98818 14 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all 15 callers. 16 * backtrace.h: Update backtrace_error_callback comment. 17 182021-02-12 Ian Lance Taylor <iant@golang.org> 19 20 * configure.ac: Check for objcopy --add-gnu-debuglink by using 21 objcopy --help. 22 * configure: Regenerate 23 242021-01-18 Ian Lance Taylor <iant@golang.org> 25 26 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info. 27 * Makefile.in: Regenerate. 28 * configure: Regenerate. 29 302021-01-18 Ian Lance Taylor <iant@golang.org> 31 32 PR debug/98716 33 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and 34 filenames. 35 (read_line_program): Remove parameter u, change caller. Don't 36 subtract one from dirs and filenames index. 37 (read_function_entry): Don't subtract one from filenames index. 38 392021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org> 40 41 * configure: Re-generate. 42 432020-12-05 Iain Sandoe <iain@sandoe.co.uk> 44 45 PR target/97865 46 * configure: Regenerate. 47 482020-12-02 Ian Lance Taylor <iant@golang.org> 49 50 * dwarf.c (resolve_string): Use > rather than >= to check whether 51 string index extends past buffer. 52 (resolve_addr_index): Similarly for address index. 53 542020-11-29 John David Anglin <danglin@gcc.gnu.org> 55 56 * configure: Regenerate. 57 582020-10-20 Ian Lance Taylor <iant@golang.org> 59 60 * internal.h (ATTRIBUTE_FALLTHROUGH): Define. 61 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH. 62 632020-09-28 Ian Lance Taylor <iant@golang.org> 64 65 PR libbacktrace/97082 66 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL. 67 * Makefile.in: Regenerate. 68 692020-09-28 Ian Lance Taylor <iant@golang.org> 70 71 PR libbacktrace/97227 72 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL. 73 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL. 74 * configure: Regenerate. 75 * Makefile.in: Regenerate. 76 772020-09-23 Ian Lance Taylor <iant@golang.org> 78 79 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC == 80 p->low. 81 (dwarf_lookup_pc): Likewise. 82 832020-09-17 Ian Lance Taylor <iant@golang.org> 84 85 PR libbacktrace/97080 86 * fileline.c (backtrace_syminfo_to_full_callback): New function. 87 (backtrace_syminfo_to_full_error_callback): New function. 88 * elf.c (elf_nodebug): Call syminfo_fn if possible. 89 * internal.h (struct backtrace_call_full): Define. 90 (backtrace_syminfo_to_full_callback): Declare. 91 (backtrace_syminfo_to_full_error_callback): Declare. 92 * mtest.c (f3): Only check all[i] if data.index permits. 93 942020-09-16 Iain Sandoe <iain@sandoe.co.uk> 95 96 * macho.c (MACH_O_CPU_TYPE_PPC): New. 97 (MACH_O_CPU_TYPE_PPC64): New. 98 Add compile-tests for powerpc to the Mach-O variants. 99 1002020-09-14 Ian Lance Taylor <iant@golang.org> 101 102 PR libbacktrace/93608 103 Add support for MiniDebugInfo. 104 * elf.c (struct elf_view): Define. Replace most uses of 105 backtrace_view with elf_view. 106 (elf_get_view): New static functions. Replace most calls of 107 backtrace_get_view with elf_get_view. 108 (elf_release_view): New static functions. Replace most calls of 109 backtrace_release_view with elf_release_view. 110 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all 111 callers. 112 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define. 113 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define. 114 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define. 115 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define. 116 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define. 117 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define. 118 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define. 119 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define. 120 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define. 121 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define. 122 (LZMA_PROB_DIST_ALIGN_LEN): Define. 123 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define. 124 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define. 125 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define. 126 (LZMA_PROB_MATCH_LEN_MID_LEN): Define. 127 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define. 128 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define. 129 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define. 130 (LZMA_PROB_REP_LEN_LOW_LEN): Define. 131 (LZMA_PROB_REP_LEN_MID_LEN): Define. 132 (LZMA_PROB_REP_LEN_HIGH_LEN): Define. 133 (LZMA_PROB_LITERAL_LEN): Define. 134 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define. 135 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define. 136 (LZMA_PROB_IS_REP2_OFFSET): Define. 137 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define. 138 (LZMA_PROB_DIST_SLOT_OFFSET): Define. 139 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define. 140 (LZMA_PROB_DIST_ALIGN_OFFSET): Define. 141 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define. 142 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define. 143 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define. 144 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define. 145 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define. 146 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define. 147 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define. 148 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define. 149 (LZMA_PROB_REP_LEN_MID_OFFSET): Define. 150 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define. 151 (LZMA_PROB_LITERAL_OFFSET): Define. 152 (LZMA_PROB_TOTAL_COUNT): Define. 153 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define. 154 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define. 155 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define. 156 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define. 157 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define. 158 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define. 159 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define. 160 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define. 161 (elf_lzma_varint): New static function. 162 (elf_lzma_range_normalize): New static function. 163 (elf_lzma_bit, elf_lzma_integer): New static functions. 164 (elf_lzma_reverse_integer): New static function. 165 (elf_lzma_len, elf_uncompress_lzma_block): New static functions. 166 (elf_uncompress_lzma): New static function. 167 (backtrace_uncompress_lzma): New function. 168 (elf_add): Add memory and memory_size parameters. Change all 169 callers. Look for .gnu_debugdata section, and, if found, 170 decompress it and use it for symbols and debug info. Permit the 171 descriptor parameter to be -1. 172 * internal.h (backtrace_uncompress_lzma): Declare. 173 * mtest.c: New file. 174 * xztest.c: New file. 175 * configure.ac: Check for nm, xz, and comm programs. Check for 176 liblzma library. 177 (HAVE_MINIDEBUG): Define. 178 * Makefile.am (mtest_SOURCES): Define. 179 (mtest_CFLAGS, mtest_LDADD): Define. 180 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG. 181 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG. 182 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define. 183 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define 184 (xztest_alloc_LDADD): Define. 185 (BUILDTESTS): Add mtest, xztest, xztest_alloc. 186 (CLEANFILES): Add files created by minidebug pattern. 187 (btest.lo): Correct INCDIR reference. 188 (mtest.lo, xztest.lo, ztest.lo): New targets. 189 * configure: Regenerate. 190 * config.h.in: Regenerate. 191 * Makefile.in: Regenerate. 192 1932020-09-09 Ian Lance Taylor <iant@golang.org> 194 195 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter. 196 (coff_add): Determine and pass is_64. 197 1982020-09-09 Ian Lance Taylor <iant@golang.org> 199 200 PR libbacktrace/96973 201 * fileline.c (macho_get_executable_path): New static function. 202 (fileline_initialize): Call macho_get_executable_path. 203 2042020-09-09 Ian Lance Taylor <iant@golang.org> 205 206 * dwarf.c (function_addrs_search): Compare against the next entry 207 low address, not the high address. 208 (unit_addrs_search): Likewise. 209 (build_address_map): Add a trailing unit_addrs. 210 (read_function_entry): Add a trailing function_addrs. 211 (read_function_info): Likewise. 212 (report_inlined_functions): Search backward for function_addrs 213 match. 214 (dwarf_lookup_pc): Search backward for unit_addrs and 215 function_addrs matches. 216 2172020-09-08 Ian Lance Taylor <iant@golang.org> 218 219 * simple.c (simple_unwind): Correct comment spelling. 220 2212020-09-08 Ian Lance Taylor <iant@golang.org> 222 223 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use 224 correct length when freeing diralc. 225 2262020-09-08 Ian Lance Taylor <iant@golang.org> 227 228 PR libbacktrace/96973 229 * macho.c (macho_add_fat): Correctly swap 32-bit file offset. 230 2312020-09-08 Ian Lance Taylor <iant@golang.org> 232 233 PR libbacktrace/96971 234 * filetype.awk: Only match magic number at start of line. 235 2362020-08-24 Ian Lance Taylor <iant@golang.org> 237 238 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define. 239 (MACH_O_MH_CIGAM_FAT_64): Define. 240 (struct macho_fat_arch_64): Define. 241 (macho_add_fat): Add and use is_64 parameter. 242 (macho_add): Recognize 64-bit fat files. 243 2442020-07-30 H.J. Lu <hjl.tools@gmail.com> 245 246 PR bootstrap/96202 247 * configure: Regenerated. 248 2492020-07-08 Ian Lance Taylor <iant@golang.org> 250 251 * configure.ac: Test linker support for DWARF5 252 * configure: Regenerate 253 2542020-05-29 H.J. Lu <hjl.tools@gmail.com> 255 256 PR bootstrap/95413 257 * configure: Regenerated. 258 2592020-05-15 H.J. Lu <hongjiu.lu@intel.com> 260 261 PR bootstrap/95147 262 * configure: Regenerated. 263 2642020-05-14 H.J. Lu <hongjiu.lu@intel.com> 265 266 * configure: Regenerated. 267 2682020-05-13 Ian Lance Taylor <iant@golang.org> 269 270 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED. 271 2722020-05-13 Ian Lance Taylor <iant@golang.org> 273 274 PR go/95061 275 * posix.c (backtrace_open): Treat EACCESS like ENOENT. 276 2772020-05-12 H.J. Lu <hongjiu.lu@intel.com> 278 279 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS). 280 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and 281 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't 282 enabled. 283 * Makefile.in: Regenerated. 284 * configure: Likewise. 285 2862020-05-11 Ian Lance Taylor <iant@golang.org> 287 288 PR libbacktrace/95012 289 * configure.ac: Check for getpagesize declaration. 290 * mmap.c: Declare getpagesize if necessary. 291 * mmapio.c: Likewise. 292 * configure: Regenerate. 293 * config.h.in: Regenerate. 294 * Makefile.in: Regenerate. 295 2962020-05-09 Roland McGrath <mcgrathr@google.com> 297 298 * elf.c (elf_add): Bail early if there are no section headers at all. 299 3002020-05-09 Ian Lance Taylor <iant@golang.org> 301 302 * elf.c (elf_add): Don't free strtab if an error occurs after 303 recording symbol information. 304 3052020-05-09 Ian Lance Taylor <iant@golang.org> 306 307 PR libbacktrace/88745 308 * macho.c: New file. 309 * filetype.awk: Recognize Mach-O files. 310 * Makefile.am (FORMAT_FILES): Add macho.c. 311 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL. 312 (%.dSYM): New pattern target. 313 (test_macho_SOURCES, test_macho_CFLAGS): New targets. 314 (test_macho_LDADD): New target. 315 (BUILDTESTS): Add test_macho. 316 (macho.lo): Add dependencies. 317 * configure.ac: Recognize macho file type. Check for 318 mach-o/dyld.h. Don't try to run objcopy if we don't find it. 319 Look for dsymutil and define a HAVE_DSYMUTIL conditional. 320 * Makefile.in: Regenerate. 321 * configure: Regenerate. 322 * config.h.in: Regenerate. 323 3242020-05-09 Ian Lance Taylor <iant@golang.org> 325 326 * read.c (backtrace_get_view): Support short read. 327 3282020-05-09 Ian Lance Taylor <iant@golang.org> 329 330 * elf.c (elf_add): If debug sections are very large or far apart, 331 read them individually rather than as a single view. 332 3332020-05-08 Ian Lance Taylor <iant@golang.org> 334 335 * fileline.c (sysctl_exec_name): New static function. 336 (sysctl_exec_name1): New macro or static function. 337 (sysctl_exec_name2): Likewise. 338 (fileline_initialize): Try sysctl_exec_name[12]. 339 * configure.ac: Check for sysctl args to fetch executable name. 340 * configure: Regenerate. 341 * config.h.in: Regenerate. 342 3432020-02-15 Ian Lance Taylor <iant@golang.org> 344 345 * ztest.c (test_large): Update file to current libgo test file. 346 3472020-02-03 Ian Lance Taylor <iant@golang.org> 348 349 * Makefile.am (libbacktrace_TEST_CFLAGS): Define. 350 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS). 351 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise. 352 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise. 353 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise. 354 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise. 355 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise. 356 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise. 357 (stest_alloc_CFLAGS): Likewise. 358 * Makefile.in: Regenerate. 359 * ztest.c (error_callback_compress): Mark vdata unused. 360 (test_large): Add casts to avoid warnings. 361 3622020-01-01 Jakub Jelinek <jakub@redhat.com> 363 364 Update copyright years. 365 3662019-12-13 Ian Lance Taylor <iant@golang.org> 367 368 Add DWARF 5 support. 369 * dwarf.c (struct attr): Add val field. 370 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX, 371 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX. 372 (struct line_header): Add addrsize field. 373 (struct line_header_format): Define. 374 (struct unit): Add str_offsets_base, addr_base, and rnglists_base 375 fields. 376 (read_uint24): New static function. 377 (read_attribute): Add implicit_val parameter. Replace dwarf_str 378 and dwarf_str_size parameters with dwarf_sections parameter. Add 379 support for new DWARF 5 forms. Change all callers. 380 (resolve_string): New static function. 381 (resolve_addr_index): Likewise. 382 (read_abbrevs): Support DW_FORM_implicit_const. 383 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index, 384 and ranges_is_index fields. 385 (update_pcrange): Support DWARF 5 encodings. 386 (add_high_low_range): New static function, split out of 387 add_ranges. 388 (add_ranges_from_ranges): Likewise. 389 (add_ranges_from_rnglists): New static function. 390 (add_ranges): Just call new helper functions. 391 (find_address_ranges): Use resolve_string for strings, after 392 reading all attributes. Handle new DWARF 5 attributes. 393 (build_address_map): Support DWARF 5 compilation units. 394 (read_v2_paths): New static function, split out of 395 read_line_header. 396 (read_lnct): New static function. 397 (read_line_header_format_entries): Likewise. 398 (read_line_header): Add ddata parameter. Support DWARF 5 line 399 headers. Call new helper functions. Change all callers. 400 (read_line_program): Use addrsize from line program header. Don't 401 special case directory index 0 for DWARF 5. 402 (read_referenced_name): Use resolve_string. 403 (read_function_entry): Handle DWARF 5 encodings. Use 404 resolve_string. 405 * internal.h (enum dwarf_section): Add DEBUG_ADDR, 406 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS. 407 * elf.c (dwarf_section_names): Add new section names. 408 * pecoff.c (dwarf_section_names): Likewise. 409 * xcoff.c (xcoff_add): Clear dwarf_sections before setting 410 fields. 411 * configure.ac: Define HAVE_DWARF5 automake conditional. 412 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5. 413 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise. 414 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise. 415 (dwarf5_alloc_LDADD): Likewise. 416 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5. 417 (CLEANFILES, clean-local): Define. 418 4192019-12-08 Ian Lance Taylor <iant@golang.org> 420 421 * dwarf.c (struct pcrange): Define. 422 (update_pcrange, add_ranges): New static functions. 423 (add_unit_addr): Change signature to work with add_ranges. Don't 424 add base_address here. 425 (add_unit_ranges): Remove. 426 (find_address_ranges): Replace str/ranges parameters with 427 dwarf_sections. Use update_pcrange and add_ranges. Change all 428 callers. 429 (add_function_range): Change signature to work with add_ranges. 430 Don't add base_address here. 431 (add_function_ranges): Remove. 432 (read_function_entry): Use update_pcrange and add_ranges. 433 4342019-12-04 Ian Lance Taylor <iant@golang.org> 435 436 * edtest.c (test1): Add noclone attribute. 437 4382019-12-04 Ian Lance Taylor <iant@golang.org> 439 440 * internal.h (enum dwarf_section): Define. 441 (struct dwarf_sections): Define. 442 (backtrace_dwarf_add): Update declaration to replace specific 443 section parameters with dwarf_sections parameter. 444 * dwarf.c (struct dwarf_data): Replace specific section fields 445 with dwarf_sections field. 446 (read_attribute): Use dwarf_sections with altlink. 447 (build_address_map): Replace specific section parameters with 448 dwarf_sections parameter. Change all callers. 449 (read_line_info): Use dwarf_sections with ddata. 450 (read_referenced_name): Likewise. 451 (add_function_ranges): Likewise. 452 (read_function_entry): Likewise. 453 (read_function_info): Likewise. 454 (build_dwarf_data): Replace specific section parameters with 455 dwarf_sections parameter. Change all callers. 456 (backtrace_dwarf_add): Likewise. 457 * elf.c (enum debug_section): Remove. 458 (dwarf_section_names): Remove .zdebug names. 459 (elf_add): Track zsections separately. Build dwarf_sections. 460 * pecoff.c (enum debug_section): Remove. 461 (struct debug_section_info): Remove data field. 462 (coff_add): Build dwarf_sections. 463 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx 464 references with DEBUG_xxx references. 465 (xcoff_add): Build dwarf_sections. 466 4672019-09-27 Maciej W. Rozycki <macro@wdc.com> 468 469 * configure: Regenerate. 470 4712019-09-26 Ian Lance Taylor <iant@golang.org> 472 473 PR libbacktrace/91908 474 * pecoff.c (backtrace_initialize): Explicitly cast unchecked 475 __sync_bool_compare_and_swap to void. 476 * xcoff.c (backtrace_initialize): Likewise. 477 4782019-09-03 Ulrich Weigand <uweigand@de.ibm.com> 479 480 * configure.ac: Remove references to spu. 481 * configure: Regenerate. 482 4832019-05-24 Clement Chigot <clement.chigot@atos.net> 484 485 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and 486 test_elf_64. 487 * Makefile.in: Regenerate. 488 4892019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 490 491 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* 492 handling. 493 * configure: Regenerate. 494 4952019-03-11 Ian Lance Taylor <iant@golang.org> 496 497 PR libbacktrace/89669 498 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if 499 HAVE_ELF. 500 * Makefile.in: Regenerate. 501 5022019-02-26 Tom de Vries <tdevries@suse.de> 503 504 * btest.c (test5): Allow global.* as minimal symbol name for global. 505 5062019-02-26 Tom de Vries <tdevries@suse.de> 507 508 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ. 509 * Makefile.in: Regenerate. 510 5112019-02-12 Tom de Vries <tdevries@suse.de> 512 513 PR libbacktrace/81983 514 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0. 515 5162019-02-10 Tom de Vries <tdevries@suse.de> 517 518 * Makefile.am (BUILDTESTS): Add btest_lto. 519 * Makefile.in: Regenerate. 520 * btest.c (test1, f2, f3, test3, f22, f23): Declare with 521 __attribute__((noclone)). 522 5232019-02-08 Tom de Vries <tdevries@suse.de> 524 525 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)). 526 * print.c (backtrace_print): Same. 527 * simple.c (backtrace_simple): Same. 528 5292019-02-08 Tom de Vries <tdevries@suse.de> 530 531 PR libbacktrace/78063 532 * dwarf.c (build_address_map): Keep all parsed units. 533 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr. 534 5352019-01-31 Tom de Vries <tdevries@suse.de> 536 537 PR libbacktrace/89136 538 * elf.c (elf_add): Read build-id if with_buildid_data. Fix 539 'debugaltlink_name_len =+ 1'. 540 5412019-01-29 Tom de Vries <tdevries@suse.de> 542 543 * install-debuginfo-for-buildid.sh.in: New script. 544 * Makefile.am (check_PROGRAMS): Add b2test and b3test. 545 (TESTS): Add b2test_buildid and b3test_dwz_buildid. 546 * Makefile.in: Regenerate. 547 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL. 548 (READELF): Set with AC_CHECK_PROG. 549 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES. 550 * configure: Regenerate. 551 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ... 552 (elf_open_debugfile_by_buildid): ... here. 553 5542019-01-29 Tom de Vries <tdevries@suse.de> 555 556 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for 557 allocfail. 558 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS. 559 (check_PROGRAMS): Add BUILDTESTS. 560 * Makefile.in: Regenerate. 561 5622019-01-28 Tom de Vries <tdevries@suse.de> 563 564 * Makefile.am (xcoff_%.c): Generate sed result into temporary file. 565 Use $< to access prerequisite. 566 * Makefile.in: Regenerate. 567 5682019-01-25 Nathan Sidwell <nathan@acm.org> 569 570 * elf.c (elf_add): Pass "" filename to recursive call with 571 separated debug. 572 5732019-01-25 Tom de Vries <tdevries@suse.de> 574 575 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with 576 filename == "". 577 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink. 578 * Makefile.in: Regenerate. 579 5802019-01-25 Tom de Vries <tdevries@suse.de> 581 582 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule. 583 (TESTS): Rename dtest to btest_gnudebuglink. 584 * Makefile.in: Regenerate. 585 5862019-01-23 Tom de Vries <tdevries@suse.de> 587 588 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields. 589 (units_search, find_unit): Use size_t for offset. 590 (build_address_map): Use size_t for unit_offset. 591 5922019-01-20 Gerald Pfeifer <gerald@pfeifer.com> 593 594 * allocfail.c (main): Increase portability of printf statement. 595 5962019-01-18 Ian Lance Taylor <iant@golang.org> 597 598 PR libbacktrace/88890 599 * mmapio.c (backtrace_get_view): Change size parameter to 600 uint64_t. Check that value fits in size_t. 601 * read.c (backtrace_get_view): Likewise. 602 * internal.h (backtrace_get_view): Update declaration. 603 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view. 604 6052019-01-17 Tom de Vries <tdevries@suse.de> 606 607 PR libbacktrace/82857 608 * configure.ac (DWZ): Set with AC_CHECK_PROG. 609 (HAVE_DWZ): Set with AM_CONDITIONAL. 610 * configure: Regenerate. 611 * Makefile.am (TESTS): Add btest_dwz. 612 * Makefile.in: Regenerate. 613 6142019-01-17 Tom de Vries <tdevries@suse.de> 615 616 PR libbacktrace/82857 617 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO. 618 (read_attribute): Handle DW_FORM_GNU_ref_alt using 619 ATTR_VAL_REF_ALT_INFO. 620 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt. 621 6222019-01-17 Tom de Vries <tdevries@suse.de> 623 624 * dwarf.c (struct unit): Add low_offset and high_offset fields. 625 (struct unit_vector): New type. 626 (struct dwarf_data): Add units and units_counts fields. 627 (find_unit): New function. 628 (find_address_ranges): Add and handle unit_tag parameter. 629 (build_address_map): Add and handle units_vec parameter. 630 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting 631 units vector. 632 6332019-01-17 Tom de Vries <tdevries@suse.de> 634 635 PR libbacktrace/82857 636 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt 637 using altlink. 638 6392019-01-17 Tom de Vries <tdevries@suse.de> 640 641 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE. 642 (read_attribute): Add altlink parameter. Handle missing altlink for 643 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt. 644 (find_address_ranges, build_address_map, build_dwarf_data): Add and 645 handle altlink parameter. 646 (read_referenced_name, read_function_entry): Add argument to 647 read_attribute call. 648 6492019-01-17 Tom de Vries <tdevries@suse.de> 650 651 * dwarf.c (struct dwarf_data): Add altlink field. 652 (backtrace_dwarf_add): Add and handle fileline_altlink parameter. 653 * elf.c (elf_add): Add argument to backtrace_dwarf_add call. 654 (phdr_callback, backtrace_initialize): Add argument to elf_add calls. 655 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter. 656 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. 657 * xcoff.c (xcoff_add): Same. 658 6592019-01-17 Tom de Vries <tdevries@suse.de> 660 661 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter. 662 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter. 663 * elf.c (elf_add): Add and handle fileline_entry parameter. Add 664 argument to backtrace_dwarf_add call. 665 (phdr_callback, backtrace_initialize): Add argument to elf_add calls. 666 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call. 667 * xcoff.c (xcoff_add): Same. 668 6692019-01-17 Tom de Vries <tdevries@suse.de> 670 671 * elf.c (elf_add): Add and handle with_buildid_data and 672 with_buildid_size parameters. Handle .gnu_debugaltlink section. 673 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls. 674 6752019-01-16 Tom de Vries <tdevries@suse.de> 676 677 * dwarf.c (read_referenced_name_from_attr): New function. Factor out 678 of ... 679 (read_referenced_name): ... here, and ... 680 (read_function_entry): ... here. 681 6822019-01-16 Tom de Vries <tdevries@suse.de> 683 684 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any 685 name. 686 (read_function_entry): Same. Don't allow name found via 687 DW_AT_abstract_origin or case DW_AT_specification to override linkage 688 name. 689 6902019-01-09 Sandra Loosemore <sandra@codesourcery.com> 691 692 PR other/16615 693 694 * backtrace.h: Mechanically replace "can not" with "cannot". 695 6962019-01-01 Jakub Jelinek <jakub@redhat.com> 697 698 Update copyright years. 699 7002018-12-29 Gerald Pfeifer <gerald@pfeifer.com> 701 702 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n 703 in sed pattern. 704 * Makefile.in: Regenerate. 705 7062018-12-28 Tom de Vries <tdevries@suse.de> 707 708 * dwarf.c (build_address_map): Reuse unused units. 709 7102018-12-28 Tom de Vries <tdevries@suse.de> 711 712 * dwarf.c (build_address_map): Simplify by removing local variable 713 abbrevs. 714 7152018-12-28 Ian Lance Taylor <iant@golang.org> 716 Tom de Vries <tdevries@suse.de> 717 718 PR libbacktrace/88063 719 * dwarf.c (free_unit_addrs_vector): Remove. 720 (build_address_map): Keep track of allocated units in vector. Free 721 allocated units and corresponding abbrevs upon failure. Remove now 722 redundant call to free_unit_addrs_vector. Free addrs vector upon 723 failure. Free allocated unit vector. 724 7252018-12-28 Tom de Vries <tdevries@suse.de> 726 727 * dwarf.c (build_address_map): Free addrs vector upon failure. 728 7292018-12-14 Tom de Vries <tdevries@suse.de> 730 731 PR testsuite/88491 732 * allocfail.sh: Remove "set -o pipefail". 733 7342018-12-12 Tom de Vries <tdevries@suse.de> 735 736 * Makefile.am (TESTS): Add allocfail.sh. 737 (check_PROGRAMS): Add allocfail. 738 * Makefile.in: Regenerate. 739 * instrumented_alloc.c: New file. Redefine malloc and realloc. 740 Include alloc.c. 741 * allocfail.c: New file. 742 * allocfail.sh: New file. 743 7442018-11-30 Tom de Vries <tdevries@suse.de> 745 746 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32, 747 test_xcoff_64, test_pecoff and test_unknown. 748 * Makefile.in: Regenerate. 749 * test_format.c: New file. 750 7512018-11-30 Tom de Vries <tdevries@suse.de> 752 753 * Makefile.am : Add _with_alloc version for each test in 754 check_PROGRAMS. 755 * Makefile.in: Regenerate. 756 7572018-11-30 Tom de Vries <tdevries@suse.de> 758 759 * internal.h (backtrace_vector_free): New static inline fuction, 760 factored out of ... 761 * dwarf.c (read_line_info): ... here. 762 7632018-11-28 Tom de Vries <tdevries@suse.de> 764 765 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation 766 failure. 767 7682018-11-27 Tom de Vries <tdevries@suse.de> 769 770 * mmap.c (backtrace_vector_release): Same. 771 * unittest.c (test1): Add check. 772 7732018-11-27 Tom de Vries <tdevries@suse.de> 774 775 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free 776 instead of realloc. 777 * Makefile.am (check_PROGRAMS): Add unittest. 778 * Makefile.in: Regenerate. 779 * unittest.c: New file. 780 7812018-11-22 Tom de Vries <tdevries@suse.de> 782 783 * dwarf.c (read_initial_length): Factor out of ... 784 (build_address_map, read_line_info): ... here. 785 7862018-11-21 Tom de Vries <tdevries@suse.de> 787 788 * dwarf.c (read_string): Factor out of ... 789 (read_attribute, read_line_header, read_line_program): ... here. 790 7912018-10-31 Joseph Myers <joseph@codesourcery.com> 792 793 PR bootstrap/82856 794 * Makefile.am: Include multilib.am. 795 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. 796 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. 797 7982018-10-05 Ian Lance Taylor <iant@golang.org> 799 800 PR libbacktrace/87529 801 * backtrace.h: Document that backtrace_create_state should be 802 called only once. 803 8042018-08-05 Iain Buclaw <ibuclaw@gdcproject.org> 805 806 * configure.ac: Move define of HAVE_ZLIB into check for -lz. 807 * Makefile.in: Regenerate. 808 * config.h.in: Likewise. 809 * configure: Likewise. 810 8112018-08-01 Tony Reix <tony.reix@atos.net> 812 813 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove. 814 (struct xcoff_func, struct xcoff_func_vector): New structs. 815 (xcoff_syminfo): Drop leading dot from symbol name. 816 (xcoff_line_compare, xcoff_line_search): Remove. 817 (xcoff_func_compare, xcoff_func_search): New static functions. 818 (xcoff_lookup_pc): Search function table. 819 (xcoff_add_line, xcoff_process_linenos): Remove. 820 (xcoff_initialize_fileline): Build function table. 821 8222018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com> 823 824 PR other/86198 825 * elf.c (elf_add): Increase ".note.gnu.build-id" section size 826 checking up to 36 bytes. 827 8282018-04-24 H.J. Lu <hongjiu.lu@intel.com> 829 830 * configure: Regenerated. 831 8322018-04-19 Jakub Jelinek <jakub@redhat.com> 833 834 * configure: Regenerated. 835 8362018-04-17 Ian Lance Taylor <iant@golang.org> 837 838 * backtrace.c: Revert last two changes. Don't call mmap 839 directly. 840 8412018-04-17 Ian Lance Taylor <iant@golang.org> 842 843 * backtrace.c: Include backtrace-supported.h before checking 844 BACKTRACE_USES_MALLOC. 845 8462018-04-17 Ian Lance Taylor <iant@golang.org> 847 848 * backtrace.c (backtrace_full): When testing whether we can 849 allocate memory, call mmap directly, and munmap the memory. 850 8512018-04-04 Jakub Jelinek <jakub@redhat.com> 852 853 PR other/85161 854 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for 855 big endian, only use 32-bit loads if endianity macros are predefined 856 and indicate big or little endian. 857 8582018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 859 860 PR target/84148 861 * configure: Regenerate. 862 8632018-02-15 Jakub Jelinek <jakub@redhat.com> 864 865 PR other/82368 866 * elf.c (SHT_PROGBITS): Undefine and define. 867 8682018-02-14 Jakub Jelinek <jakub@redhat.com> 869 870 PR other/82368 871 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define. 872 (struct elf_ppc64_opd_data): New type. 873 (elf_initialize_syminfo): Add opd argument, handle symbols 874 pointing into the PowerPC64 ELFv1 .opd section. 875 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer 876 to structure with .opd data to elf_initialize_syminfo. 877 8782018-01-31 Ian Lance Taylor <iant@golang.org> 879 880 * elf.c (elf_add): Close descriptor if we use a debugfile. 881 * btest.c (check_open_files): New static function. 882 (main): Call check_open_files. 883 8842018-01-25 Ian Lance Taylor <iant@golang.org> 885 886 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the 887 desired CRC is zero. 888 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo. 889 8902018-01-25 Ian Lance Taylor <iant@golang.org> 891 892 * pecoff.c (coff_add): Only release syms_view if it is valid. 893 8942018-01-25 Ian Lance Taylor <iant@golang.org> 895 896 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix. 897 8982018-01-24 Ian Lance Taylor <iant@golang.org> 899 900 * pecoff.c (coff_add): Use coff_read4, not memcpy. 901 9022018-01-24 Ian Lance Taylor <iant@golang.org> 903 904 PR other/68239 905 * mmap.c (backtrace_free_locked): Don't put more than 16 entries 906 on the free list. 907 9082018-01-19 Tony Reix <tony.reix@atos.net> 909 910 * xcoff.c (xcoff_incl_compare): New function. 911 (xcoff_incl_search): New function. 912 (xcoff_process_linenos): Use bsearch to find include file. 913 (xcoff_initialize_fileline): Sort include file information. 914 9152018-01-16 Ian Lance Taylor <iant@golang.org> 916 917 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be 918 288. 919 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to 920 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table. 921 (elf_zlib_default_table): Update. 922 (elf_zlib_default_dist_table): New static array. 923 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table 924 for block type 1. 925 * ztest.c (struct zlib_test): Add uncompressed_len. 926 (tests): Initialize uncompressed_len field. Add new test case. 927 (test_samples): Use uncompressed_len field. 928 9292018-01-03 Jakub Jelinek <jakub@redhat.com> 930 931 Update copyright years. 932 9332017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 934 935 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS. 936 * aclocal.m4: Regenerate. 937 * Makefile.in: Likewise. 938 * configure: Likewise. 939 9402017-10-06 Ian Lance Taylor <iant@golang.org> 941 942 * ztest.c (test_large): Pass unsigned long *, not size_t *, to 943 zlib uncompress function. 944 9452017-10-05 Ian Lance Taylor <iant@golang.org> 946 947 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *. 948 Read a four byte integer. 949 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit 950 boundary before ever calling elf_zlib_fetch. 951 * ztest.c (test_large): Simplify print statements a bit. 952 9532017-10-02 Ian Lance Taylor <iant@golang.org> 954 955 * ztest.c: #include <errno.h>. 956 (TEST_TIMING): Don't define, don't test. 957 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME. 958 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise. 959 (ZLIB_CLOCK_GETTIME_ARG): Define. 960 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK. 961 * Makefile.am: Likewise. 962 * configure, Makefile.in: Rebuild. 963 9642017-10-02 Thomas Schwinge <thomas@codesourcery.com> 965 966 PR other/67165 967 * Makefile.am: Append the content of clock_gettime_link to 968 ztest_LDADD. 969 * configure.ac: Test for the case that clock_gettime is in librt. 970 * Makefile.in: Regenerate. 971 * configure: Likewise. 972 973 PR other/67165 974 * configure.ac: Check for clock_gettime. 975 * config.h.in: Regenerate. 976 * configure: Likewise. 977 * ztest.c (average_time, test_large): Conditionalize test timing 978 on clock_gettime availability. 979 9802017-09-29 Tony Reix <tony.reix@atos.net> 981 982 * xcoff.c: Initial support for DWARF debug sections in XCOFF. 983 (STYP_DWARF, SSUBTYP_DW*): Define. 984 (enum dwarf_section): Define. 985 (struct dwsect_info): Define. 986 (xcoff_add): Look for DWARF sections, pass them to 987 backtrace_dwarf_add. 988 9892017-09-28 Ian Lance Taylor <iant@golang.org> 990 991 PR other/67165 992 * elf.c (__builtin_prefetch): Define if not __GNUC__. 993 (unlikely): Define. 994 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define. 995 (b_elf_chdr): Define type. 996 (enum debug_section): Add ZDEBUG_xxx values. 997 (debug_section_names): Add names for new sections. 998 (struct debug_section_info): Add compressed field. 999 (elf_zlib_failed, elf_zlib_fetch): New static functions. 1000 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define. 1001 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define. 1002 (HUFFMAN_SECONDARY_SHIFT): Define. 1003 (ZDEBUG_TABLE_SIZE): Define. 1004 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define. 1005 (final_next_secondary): New static variable if 1006 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE. 1007 (elf_zlib_inflate_table): New static function. 1008 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main 1009 function to produce fixed Huffman table. 1010 (elf_zlib_default_table): New static variable. 1011 (elf_zlib_inflate): New static function. 1012 (elf_zlib_verify_checksum): Likewise. 1013 (elf_zlib_inflate_and_verify): Likewise. 1014 (elf_uncompress_zdebug): Likewise. 1015 (elf_uncompress_chdr): Likewise. 1016 (backtrace_uncompress_zdebug): New extern function. 1017 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug 1018 sections, and uncompress them. 1019 * internal.h (backtrace_compress_zdebug): Declare. 1020 * ztest.c: New file. 1021 * configure.ac: Check for -lz and check whether the linker 1022 supports --compress-debug-sections. 1023 * Makefile.am (ztest_SOURCES): New variable. 1024 (ztest_CFLAGS, ztest_LDADD): New variables. 1025 (check_PROGRAMS): Add ztest. 1026 (ctestg_SOURCES): New variable. 1027 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables. 1028 (ctesta_SOURCES): New variable. 1029 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables. 1030 (check_PROGRAMS): Add ctestg and ctesta. 1031 * configure, config.h.in, Makefile.in: Rebuild. 1032 10332017-09-22 Ian Lance Taylor <iant@golang.org> 1034 1035 PR sanitizer/77631 1036 * configure.ac: Check for lstat and readlink. 1037 * elf.c (lstat, readlink): Provide dummy versions if real versions 1038 are not available. 1039 * configure, config.h.in: Rebuild. 1040 10412017-09-21 Ian Lance Taylor <iant@google.com> 1042 1043 PR go/82284 1044 * elf.c (backtrace_initialize): Set pd.exe_filename. 1045 10462017-09-20 Ian Lance Taylor <iant@golang.org> 1047 Denis Khalikov <d.khalikov@partner.samsung.com> 1048 1049 PR sanitizer/77631 1050 Support for external debug info. 1051 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>. 1052 (S_ISLNK): Define if not defined. 1053 (xstrnlen): Define if strnlen is not available. 1054 (b_elf_note): Define type. 1055 (NT_GNU_BUILD_ID): Define macro. 1056 (elf_crc32, elf_crc32_file): New static functions. 1057 (elf_is_symlink, elf_readlink): New static functions. 1058 (elf_open_debugfile_by_buildid): New static function. 1059 (elf_try_debugfile): New static function. 1060 (elf_find_debugfile_by_debuglink): New static function. 1061 (elf_open_debugfile_by_debuglink): New static function. 1062 (elf_add): Add filename and debuginfo parameters. Adjust all 1063 callers. Look for external debug info notes, and try to fetch 1064 debug info from external file. 1065 (struct phdr_data): Add exe_filename field. 1066 (phdr_callback): Pass filename to elf_add. 1067 (backtrace_initialize): Add filename parameter. 1068 * internal.h (backtrace_initialize): Add filename parameter. 1069 * fileline.c (fileline_initialize): Pass filename to 1070 backtrace_initialize. 1071 * pecoff.c (fileline_initialize): Add unused filename parameter. 1072 * unknown.c (fileline_initialize): Likewise. 1073 * xcoff.c (fileline_initialize): Likewise. 1074 * configure.ac: Check for objcopy --add-gnu-debuglink. 1075 * Makefile.am (dtest): New test target. 1076 * configure, Makefile.in: Rebuild. 1077 10782017-09-12 Steve Ellcey <sellcey@cavium.com> 1079 1080 PR other/81096 1081 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS) 1082 * Makefile.in: Regenerate. 1083 10842017-09-12 Steve Ellcey <sellcey@cavium.com> 1085 1086 PR other/81096 1087 * libbacktrace/Makefile.in 1088 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS) 1089 10902017-08-02 David Edelsohn <dje.gcc@gmail.com> 1091 1092 PR bootstrap/81638 1093 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. 1094 10952017-07-28 Tony Reix <tony.reix@atos.net> 1096 1097 * xcoff.c: Don't leak a file descriptor if an archive is malformed. 1098 10992017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1100 1101 * fileline.c (fileline_initialize): Print pid_t as long. 1102 11032017-07-26 Tony Reix <tony.reix@atos.net> 1104 1105 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery. 1106 * filetype.awk: Separate AIX XCOFF32 and XCOFF64. 1107 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats. 1108 * configure, config.h.in: Regenerate. 1109 11102017-07-21 Tony Reix <tony.reix@atos.net> 1111 1112 * filetype.awk: Add AIX XCOFF type detection. 1113 * configure.ac: Recognize xcoff format. 1114 * Makefile.am (FORMAT_FILES): Add xcoff.c. 1115 * fileline.c: Include <unistd.h>. 1116 (fileline_initialize): Add case for AIX procfs. 1117 * xcoff.c: New file. 1118 * configure, Makefile.in: Rebuild. 1119 11202017-06-21 Richard Biener <rguenther@suse.de> 1121 1122 * configure.ac: Add AC_SYS_LARGEFILE. 1123 * config.h.in: Regenerate. 1124 * configure: Likewise. 1125 11262017-06-11 Ian Lance Taylor <iant@golang.org> 1127 1128 * elf.c (backtrace_initialize): Always set *fileline_fn. 1129 * ttest.c: New file. 1130 * btest.c: Move support functions into testlib.c. Change calls to 1131 check to pass file name. 1132 * testlib.c: New file, copied from (part of) btest.c. 1133 * testlib.h: New file, declarations for testlib.c. 1134 * edtest.c: Use testlib.h and testlib.c. 1135 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional. 1136 * Makefile.am (btest_SOURCES): Add testlib.c. 1137 (edtest_SOURCES): Likewise. 1138 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD. 1139 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define. 1140 * configure, Makefile.in: Rebuild. 1141 11422017-05-19 Than McIntosh <thanm@google.com> 1143 1144 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0. 1145 (read_line_header): Don't allocate dirs if dirs_count == 0. 1146 * edtest.c: New file. 1147 * edtest2.c: New file. 1148 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define. 1149 (check_PROGRAMS): Add edtest. 1150 (edtest2_build.c, gen_edtest2_build): New targets. 1151 * Makefile.in: Rebuild. 1152 11532017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk> 1154 1155 * btest.c (test5): Replace #ifdef guard with 'unused' attribute 1156 to fix compile warning when BACKTRACE_SUPPORTED isn't defined. 1157 11582017-01-01 Jakub Jelinek <jakub@redhat.com> 1159 1160 Update copyright years. 1161 11622016-11-15 Matthias Klose <doko@ubuntu.com> 1163 1164 * configure: Regenerate. 1165 11662016-09-11 Carlos Liam <carlos@aarzee.me> 1167 1168 * all: Remove meaningless trailing whitespace. 1169 11702016-05-18 Uros Bizjak <ubizjak@gmail.com> 1171 1172 PR target/71161 1173 * elf.c (phdr_callback) [__i386__]: Add 1174 __attribute__((__force_align_arg_pointer__)). 1175 11762016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 1177 1178 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to 1179 avoid possible crash. 1180 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of 1181 missing debug info anymore. 1182 11832016-02-06 John David Anglin <danglin@gcc.gnu.org> 1184 1185 * mmap.c (MAP_FAILED): Define if not defined. 1186 11872016-01-04 Jakub Jelinek <jakub@redhat.com> 1188 1189 Update copyright years. 1190 11912015-12-18 Andris Pavenis <andris.pavenis@iki.fi> 1192 1193 * configure.ac: Specify that DJGPP do not have mmap 1194 even when sys/mman.h exists. 1195 * configure: Regenerate 1196 11972015-12-09 John David Anglin <danglin@gcc.gnu.org> 1198 1199 PR libgfortran/68115 1200 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. 1201 * configure: Regenerate. 1202 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call 1203 to void. 1204 12052015-09-17 Ian Lance Taylor <iant@google.com> 1206 1207 * posix.c (backtrace_open): Cast second argument of open() to int. 1208 12092015-09-11 Ian Lance Taylor <iant@google.com> 1210 1211 * Makefile.am (backtrace.lo): Depend on internal.h. 1212 (sort.lo, stest.lo): Add explicit dependencies. 1213 * Makefile.in: Rebuild. 1214 12152015-09-09 Hans-Peter Nilsson <hp@axis.com> 1216 1217 * backtrace.c: #include <sys/types.h>. 1218 12192015-09-08 Ian Lance Taylor <iant@google.com> 1220 1221 PR other/67457 1222 * backtrace.c: #include "internal.h". 1223 (struct backtrace_data): Add can_alloc field. 1224 (unwind): If can_alloc is false, don't try to get file/line 1225 information. 1226 (backtrace_full): Set can_alloc field in bdata. 1227 * alloc.c (backtrace_alloc): Don't call error_callback if it is 1228 NULL. 1229 * mmap.c (backtrace_alloc): Likewise. 1230 * internal.h: Update comments for backtrace_alloc and 1231 backtrace_free. 1232 12332015-09-08 Ian Lance Taylor <iant@google.com> 1234 1235 PR other/67457 1236 * mmap.c (backtrace_alloc): Correct test for mmap failure. 1237 12382015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 1239 1240 * configure.ac: For spu-*-* targets, set have_fcntl to no. 1241 * configure: Regenerate. 1242 12432015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 1244 1245 * configure.ac: Remove [disable-shared] argument to LT_INIT. 1246 Remove setting PIC_FLAG when building as target library. 1247 * configure: Regenerate. 1248 12492015-08-26 Hans-Peter Nilsson <hp@axis.com> 1250 1251 * configure.ac: Only compile with -fPIC if the target 1252 supports it. 1253 * configure: Regenerate. 1254 12552015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 1256 1257 * configure.ac: Set have_mmap to no on spu-*-* targets. 1258 * configure: Regenerate. 1259 12602015-08-13 Ian Lance Taylor <iant@google.com> 1261 1262 * dwarf.c (read_function_entry): Add vec_inlined parameter. 1263 Change all callers. 1264 12652015-06-11 Martin Sebor <msebor@redhat.com> 1266 1267 PR sanitizer/65479 1268 * dwarf.c (struct line): Add new field idx. 1269 (line_compare): Use it. 1270 (add_line): Set it. 1271 (read_line_info): Reset it. 1272 12732015-05-29 Tristan Gingold <gingold@adacore.com> 1274 1275 * pecoff.c: New file. 1276 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. 1277 * Makefile.in: Regenerate. 1278 * filetype.awk: Detect pecoff. 1279 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. 1280 Add pecoff. 1281 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is 1282 true. 1283 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. 1284 * configure: Regenerate. 1285 * pecoff.c: New file. 1286 12872015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 1288 1289 * Makefile.in: Regenerated with automake-1.11.6. 1290 * aclocal.m4: Likewise. 1291 * configure: Likewise. 1292 12932015-01-24 Matthias Klose <doko@ubuntu.com> 1294 1295 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 1296 * configure: Regenerate. 1297 12982015-01-05 Jakub Jelinek <jakub@redhat.com> 1299 1300 Update copyright years. 1301 13022014-11-21 H.J. Lu <hongjiu.lu@intel.com> 1303 1304 PR bootstrap/63784 1305 * configure: Regenerated. 1306 13072014-11-11 David Malcolm <dmalcolm@redhat.com> 1308 1309 * ChangeLog.jit: New. 1310 13112014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 1312 1313 PR target/63610 1314 * configure: Regenerate. 1315 13162014-10-23 Ian Lance Taylor <iant@google.com> 1317 1318 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: 1319 Fix to return void *. 1320 13212014-05-08 Ian Lance Taylor <iant@google.com> 1322 1323 * mmap.c (backtrace_free): If freeing a large aligned block of 1324 memory, call munmap rather than holding onto it. 1325 (backtrace_vector_grow): When growing a vector, double the number 1326 of pages requested. When releasing the old version of a grown 1327 vector, pass the correct size to backtrace_free. 1328 13292014-03-07 Ian Lance Taylor <iant@google.com> 1330 1331 * sort.c (backtrace_qsort): Use middle element as pivot. 1332 13332014-03-06 Ian Lance Taylor <iant@google.com> 1334 1335 * sort.c: New file. 1336 * stest.c: New file. 1337 * internal.h (backtrace_qsort): Declare. 1338 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. 1339 (read_line_info, read_function_entry): Likewise. 1340 (read_function_info, build_dwarf_data): Likewise. 1341 * elf.c (elf_initialize_syminfo): Likewise. 1342 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. 1343 (stest_SOURCES, stest_LDADD): Define. 1344 (check_PROGRAMS): Add stest. 1345 13462014-02-07 Misty De Meo <misty@brew.sh> 1347 1348 PR target/58710 1349 * configure.ac: Use AC_LINK_IFELSE in check for 1350 _Unwind_GetIPInfo. 1351 * configure: Regenerate. 1352 13532014-01-02 Richard Sandiford <rdsandiford@googlemail.com> 1354 1355 Update copyright years 1356 13572013-12-06 Jakub Jelinek <jakub@redhat.com> 1358 1359 * elf.c (ET_DYN): Undefine and define again. 1360 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, 1361 return early -1 without closing the descriptor. 1362 (struct phdr_data): Add exe_descriptor. 1363 (phdr_callback): If pd->exe_descriptor is not -1, for very first 1364 call if dlpi_name is NULL just call elf_add with the exe_descriptor, 1365 otherwise backtrace_close the exe_descriptor if not -1. Adjust 1366 call to elf_add. 1367 (backtrace_initialize): Adjust call to elf_add. If it returns 1368 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. 1369 13702013-12-05 Ian Lance Taylor <iant@google.com> 1371 1372 * alloc.c (backtrace_vector_finish): Add error_callback and data 1373 parameters. Call backtrace_vector_release. Return address base. 1374 * mmap.c (backtrace_vector_finish): Add error_callback and data 1375 parameters. Return address base. 1376 * dwarf.c (read_function_info): Get new address base from 1377 backtrace_vector_finish. 1378 * internal.h (backtrace_vector_finish): Update declaration. 1379 13802013-11-27 Ian Lance Taylor <iant@google.com> 1381 1382 * dwarf.c (find_address_ranges): New static function, broken out 1383 of build_address_map. 1384 (build_address_map): Call it. 1385 * btest.c (check): Check for missing filename or function, rather 1386 than crashing. 1387 (f3): Check that enough frames were returned. 1388 13892013-11-19 Jakub Jelinek <jakub@redhat.com> 1390 1391 * backtrace.h (backtrace_syminfo_callback): Add symsize argument. 1392 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as 1393 last argument. 1394 * btest.c (struct symdata): Add size field. 1395 (callback_three): Add symsize argument. Copy it to the data->size 1396 field. 1397 (f23): Set symdata.size to 0. 1398 (test5): Likewise. If sizeof (int) > 1, lookup address of 1399 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size 1400 values. 1401 1402 * atomic.c: Include sys/types.h. 1403 14042013-11-18 Ian Lance Taylor <iant@google.com> 1405 1406 * configure.ac: Check for support of __atomic extensions. 1407 * internal.h: Declare or #define atomic functions for use in 1408 backtrace code. 1409 * atomic.c: New file. 1410 * dwarf.c (dwarf_lookup_pc): Use atomic functions. 1411 (dwarf_fileline, backtrace_dwarf_add): Likewise. 1412 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. 1413 (backtrace_initialize): Likewise. 1414 * fileline.c (fileline_initialize): Likewise. 1415 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. 1416 * configure, config.h.in, Makefile.in: Rebuild. 1417 14182013-11-18 Jakub Jelinek <jakub@redhat.com> 1419 1420 * elf.c (SHN_UNDEF): Define. 1421 (elf_initialize_syminfo): Add base_address argument. Ignore symbols 1422 with st_shndx == SHN_UNDEF. Add base_address to address fields. 1423 (elf_add): Adjust caller. 1424 1425 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. 1426 14272013-11-16 Ian Lance Taylor <iant@google.com> 1428 1429 * backtrace.h (backtrace_create_state): Correct comment about 1430 threading. 1431 14322013-11-15 Ian Lance Taylor <iant@google.com> 1433 1434 * backtrace.h (backtrace_syminfo): Update comment and parameter 1435 name to take any address, not just a PC value. 1436 * elf.c (STT_OBJECT): Define. 1437 (elf_nosyms): Rename parameter pc to addr. 1438 (elf_symbol_search): Rename local variable pc to addr. 1439 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. 1440 (elf_syminfo): Rename parameter pc to addr. 1441 * btest.c (global): New global variable. 1442 (test5): New test. 1443 (main): Call test5. 1444 14452013-10-17 Ian Lance Taylor <iant@google.com> 1446 1447 * elf.c (elf_add): Don't get the wrong offsets if a debug section 1448 is missing. 1449 14502013-10-15 David Malcolm <dmalcolm@redhat.com> 1451 1452 * configure.ac: Add --enable-host-shared, setting up 1453 pre-existing PIC_FLAG variable within Makefile.am et al. 1454 * configure: Regenerate. 1455 14562013-09-20 Alan Modra <amodra@gmail.com> 1457 1458 * configure: Regenerate. 1459 14602013-07-23 Alexander Monakov <amonakov@ispras.ru> 1461 1462 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. 1463 14642013-07-23 Alexander Monakov <amonakov@ispras.ru> 1465 1466 * elf.c (backtrace_initialize): Pass elf_fileline_fn to 1467 dl_iterate_phdr callbacks. 1468 14692013-03-25 Ian Lance Taylor <iant@google.com> 1470 1471 * alloc.c: #include <sys/types.h>. 1472 * mmap.c: Likewise. 1473 14742013-01-31 Ian Lance Taylor <iant@google.com> 1475 1476 * dwarf.c (read_function_info): Permit fvec parameter to be NULL. 1477 (dwarf_lookup_pc): Don't use ddata->fvec if threaded. 1478 14792013-01-25 Jakub Jelinek <jakub@redhat.com> 1480 1481 PR other/56076 1482 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir 1483 attribute was not seen. 1484 14852013-01-16 Ian Lance Taylor <iant@google.com> 1486 1487 * dwarf.c (struct unit): Add filename and abs_filename fields. 1488 (build_address_map): Set new fields when reading unit. 1489 (dwarf_lookup_pc): If we don't find an entry in the line table, 1490 just return the main file name. 1491 14922013-01-14 Richard Sandiford <rdsandiford@googlemail.com> 1493 1494 Update copyright years. 1495 14962013-01-01 Ian Lance Taylor <iant@google.com> 1497 1498 PR bootstrap/54834 1499 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I 1500 $(MULTIBUILDTOP)/../../gcc/include. 1501 * Makefile.in: Rebuild. 1502 15032013-01-01 Ian Lance Taylor <iant@google.com> 1504 1505 PR other/55536 1506 * mmap.c (backtrace_alloc): Don't call sync functions if not 1507 threaded. 1508 (backtrace_free): Likewise. 1509 15102012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 1511 1512 * mmapio.c: Define MAP_FAILED if not defined. 1513 15142012-12-11 Jakub Jelinek <jakub@redhat.com> 1515 1516 PR bootstrap/54926 1517 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. 1518 * configure.ac: If --with-target-subdir, add -frandom-seed=$@ 1519 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler 1520 accepts it. 1521 * Makefile.in: Regenerated. 1522 * configure: Regenerated. 1523 15242012-12-07 Jakub Jelinek <jakub@redhat.com> 1525 1526 PR bootstrap/54926 1527 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. 1528 * Makefile.in: Regenerated. 1529 15302012-11-20 Ian Lance Taylor <iant@google.com> 1531 1532 * dwarf.c (read_attribute): Always clear val. 1533 15342012-11-13 Ian Lance Taylor <iant@google.com> 1535 1536 PR other/55312 1537 * configure.ac: Only add -Werror if building a target library. 1538 * configure: Rebuild. 1539 15402012-11-12 Ian Lance Taylor <iant@google.com> 1541 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1542 Gerald Pfeifer <gerald@pfeifer.com> 1543 1544 * configure.ac: Check for getexecname. 1545 * fileline.c: #include <errno.h>. Define getexecname if not 1546 available. 1547 (fileline_initialize): Try to find the executable in a few 1548 different ways. 1549 * print.c (error_callback): Only print the filename if it came 1550 from the backtrace state. 1551 * configure, config.h.in: Rebuild. 1552 15532012-10-29 Ian Lance Taylor <iant@google.com> 1554 1555 * mmap.c (backtrace_vector_release): Correct last patch: add 1556 aligned, not size. 1557 15582012-10-29 Ian Lance Taylor <iant@google.com> 1559 1560 * mmap.c (backtrace_vector_release): Make sure freed block is 1561 aligned on 8-byte boundary. 1562 15632012-10-26 Ian Lance Taylor <iant@google.com> 1564 1565 PR other/55087 1566 * posix.c (backtrace_open): Add does_not_exist parameter. 1567 * elf.c (phdr_callback): Do not warn if shared library could not 1568 be opened. 1569 * fileline.c (fileline_initialize): Update calls to 1570 backtrace_open. 1571 * internal.h (backtrace_open): Update declaration. 1572 15732012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> 1574 1575 PR target/55061 1576 * configure.ac: Check for _Unwind_GetIPInfo function declaration. 1577 * configure: Regenerate. 1578 15792012-10-24 Ian Lance Taylor <iant@google.com> 1580 1581 PR target/55061 1582 * configure.ac: Check whether -funwind-tables option works. 1583 * configure: Rebuild. 1584 15852012-10-11 Ian Lance Taylor <iant@google.com> 1586 1587 * configure.ac: Do not use dl_iterate_phdr on Solaris 10. 1588 * configure: Rebuild. 1589 15902012-10-10 Ian Lance Taylor <iant@google.com> 1591 1592 * elf.c: Rename all Elf typedefs to start with b_elf, and be all 1593 lower case. 1594 15952012-10-10 Hans-Peter Nilsson <hp@bitrange.com> 1596 1597 * elf.c (elf_add_syminfo_data): Add casts to avoid warning. 1598 15992012-10-09 Ian Lance Taylor <iant@google.com> 1600 1601 * dwarf.c (dwarf_fileline): Add cast to avoid warning. 1602 (backtrace_dwarf_add): Likewise. 1603 16042012-10-09 Ian Lance Taylor <iant@google.com> 1605 1606 Add support for tracing through shared libraries. 1607 * configure.ac: Check for link.h and dl_iterate_phdr. 1608 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef 1609 ELF macros before #defining them. 1610 (dl_phdr_info, dl_iterate_phdr): Define if system does not have 1611 dl_iterate_phdr. 1612 (struct elf_syminfo_data): Add next field. 1613 (elf_initialize_syminfo): Initialize next field. 1614 (elf_add_syminfo_data): New static function. 1615 (elf_add): New static function, broken out of 1616 backtrace_initialize. Call backtrace_dwarf_add instead of 1617 backtrace_dwarf_initialize. 1618 (struct phdr_data): Define. 1619 (phdr_callback): New static function. 1620 (backtrace_initialize): Call elf_add. 1621 * dwarf.c (struct dwarf_data): Add next and base_address fields. 1622 (add_unit_addr): Add base_address parameter. Change all callers. 1623 (add_unit_ranges, build_address_map): Likewise. 1624 (add_line): Add ddata parameter. Change all callers. 1625 (read_line_program, add_function_range): Likewise. 1626 (dwarf_lookup_pc): New static function, broken out of 1627 dwarf_fileline. 1628 (dwarf_fileline): Call dwarf_lookup_pc. 1629 (build_dwarf_data): New static function. 1630 (backtrace_dwarf_add): New function. 1631 (backtrace_dwarf_initialize): Remove. 1632 * internal.h (backtrace_dwarf_initialize): Don't declare. 1633 (backtrace_dwarf_add): Declare. 1634 * configure, config.h.in: Rebuild. 1635 16362012-10-04 Gerald Pfeifer <gerald@pfeifer.com> 1637 1638 * btest.c (f23): Avoid uninitialized variable warning. 1639 16402012-10-04 Ian Lance Taylor <iant@google.com> 1641 1642 * dwarf.c: If the system header files do not declare strnlen, 1643 provide our own version. 1644 16452012-10-03 Ian Lance Taylor <iant@google.com> 1646 1647 * dwarf.c (read_uleb128): Fix overflow test. 1648 (read_sleb128): Likewise. 1649 (build_address_map): Don't change unit_buf.start. 1650 16512012-10-02 Uros Bizjak <ubizjak@gmail.com> 1652 1653 PR other/54761 1654 * configure.ac (EXTRA_FLAGS): New. 1655 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). 1656 * configure, Makefile.in: Regenerate. 1657 16582012-09-29 Ian Lance Taylor <iant@google.com> 1659 1660 PR other/54749 1661 * fileline.c (fileline_initialize): Pass errnum as -1 when 1662 reporting that we could not read executable information after a 1663 previous failure. 1664 16652012-09-27 Ian Lance Taylor <iant@google.com> 1666 1667 PR bootstrap/54732 1668 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. 1669 * Makefile.am: Add dependencies for all objects. 1670 * configure, aclocal.m4, Makefile.in: Rebuild. 1671 16722012-09-27 Ian Lance Taylor <iant@google.com> 1673 1674 PR other/54726 1675 * elf.c (backtrace_initialize): Set *fileln_fn, not 1676 state->fileln_fn. 1677 16782012-09-19 Ian Lance Taylor <iant@google.com> 1679 1680 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled 1681 as a target library. 1682 * configure: Rebuild. 1683 16842012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1685 Ian Lance Taylor <iant@google.com> 1686 1687 * configure.ac (GCC_HEADER_STDINT): Invoke. 1688 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". 1689 * btest.c: Don't include <stdint.h>. 1690 * dwarf.c: Likewise. 1691 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. 1692 16932012-09-18 Ian Lance Taylor <iant@google.com> 1694 1695 PR bootstrap/54623 1696 * Makefile.am (AM_CPPFLAGS): Define. 1697 (AM_CFLAGS): Remove -I options. 1698 * Makefile.in: Rebuild. 1699 17002012-09-18 Ian Lance Taylor <iant@google.com> 1701 1702 * posix.c (O_BINARY): Define if not defined. 1703 (backtrace_open): Pass O_BINARY to open. Only call fcntl if 1704 HAVE_FCNTL is defined. 1705 * configure.ac: Test for the fcntl function. 1706 * configure, config.h.in: Rebuild. 1707 17082012-09-18 Ian Lance Taylor <iant@google.com> 1709 1710 * btest.c (test1, test2, test3, test4): Add the unused attribute. 1711 17122012-09-18 Ian Lance Taylor <iant@google.com> 1713 1714 * dwarf.c: Correct test of HAVE_DECL_STRNLEN. 1715 17162012-09-18 Ian Lance Taylor <iant@google.com> 1717 1718 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 1719 * mmapio.c: Don't define _GNU_SOURCE. 1720 * configure, config.h.in: Rebuild. 1721 17222012-09-18 Ian Lance Taylor <iant@google.com> 1723 1724 * configure.ac: Check whether strnlen is declared. 1725 * dwarf.c: Declare strnlen if not declared. 1726 * configure, config.h.in: Rebuild. 1727 17282012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1729 1730 * fileline.c: Include <stdlib.h>. 1731 * mmap.c: Likewise. 1732 17332012-09-17 Ian Lance Taylor <iant@google.com> 1734 1735 PR bootstrap/54611 1736 * nounwind.c (backtrace_full): Rename from backtrace. Add state 1737 parameter. 1738 17392012-09-17 Gerald Pfeifer <gerald@pfeifer.com> 1740 1741 PR bootstrap/54611 1742 * nounwind.c (backtrace_simple): Add state parameter. 1743 17442012-09-17 Ian Lance Taylor <iant@google.com> 1745 1746 PR bootstrap/54609 1747 * unknown.c (unknown_fileline): Add state parameter, remove 1748 fileline_data parameter, name error_callback parameter. 1749 (backtrace_initialize): Add state parameter. 1750 17512012-09-17 Ian Lance Taylor <iant@google.com> 1752 1753 * Initial implementation. 1754 1755Copyright (C) 2012-2021 Free Software Foundation, Inc. 1756 1757Copying and distribution of this file, with or without modification, 1758are permitted in any medium without royalty provided the copyright 1759notice and this notice are preserved. 1760