12017-07-04 Release Manager 2 3 * GCC 6.4.0 released. 4 52016-12-21 Release Manager 6 7 * GCC 6.3.0 released. 8 92016-08-22 Release Manager 10 11 * GCC 6.2.0 released. 12 132016-05-18 Uros Bizjak <ubizjak@gmail.com> 14 15 PR target/71161 16 * elf.c (phdr_callback) [__i386__]: Add 17 __attribute__((__force_align_arg_pointer__)). 18 192016-04-27 Release Manager 20 21 * GCC 6.1.0 released. 22 232016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 24 25 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to 26 avoid possible crash. 27 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of 28 missing debug info anymore. 29 302016-02-06 John David Anglin <danglin@gcc.gnu.org> 31 32 * mmap.c (MAP_FAILED): Define if not defined. 33 342016-01-04 Jakub Jelinek <jakub@redhat.com> 35 36 Update copyright years. 37 382015-12-18 Andris Pavenis <andris.pavenis@iki.fi> 39 40 * configure.ac: Specify that DJGPP do not have mmap 41 even when sys/mman.h exists. 42 * configure: Regenerate 43 442015-12-09 John David Anglin <danglin@gcc.gnu.org> 45 46 PR libgfortran/68115 47 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*. 48 * configure: Regenerate. 49 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call 50 to void. 51 522015-09-17 Ian Lance Taylor <iant@google.com> 53 54 * posix.c (backtrace_open): Cast second argument of open() to int. 55 562015-09-11 Ian Lance Taylor <iant@google.com> 57 58 * Makefile.am (backtrace.lo): Depend on internal.h. 59 (sort.lo, stest.lo): Add explicit dependencies. 60 * Makefile.in: Rebuild. 61 622015-09-09 Hans-Peter Nilsson <hp@axis.com> 63 64 * backtrace.c: #include <sys/types.h>. 65 662015-09-08 Ian Lance Taylor <iant@google.com> 67 68 PR other/67457 69 * backtrace.c: #include "internal.h". 70 (struct backtrace_data): Add can_alloc field. 71 (unwind): If can_alloc is false, don't try to get file/line 72 information. 73 (backtrace_full): Set can_alloc field in bdata. 74 * alloc.c (backtrace_alloc): Don't call error_callback if it is 75 NULL. 76 * mmap.c (backtrace_alloc): Likewise. 77 * internal.h: Update comments for backtrace_alloc and 78 backtrace_free. 79 802015-09-08 Ian Lance Taylor <iant@google.com> 81 82 PR other/67457 83 * mmap.c (backtrace_alloc): Correct test for mmap failure. 84 852015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 86 87 * configure.ac: For spu-*-* targets, set have_fcntl to no. 88 * configure: Regenerate. 89 902015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 91 92 * configure.ac: Remove [disable-shared] argument to LT_INIT. 93 Remove setting PIC_FLAG when building as target library. 94 * configure: Regenerate. 95 962015-08-26 Hans-Peter Nilsson <hp@axis.com> 97 98 * configure.ac: Only compile with -fPIC if the target 99 supports it. 100 * configure: Regenerate. 101 1022015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 103 104 * configure.ac: Set have_mmap to no on spu-*-* targets. 105 * configure: Regenerate. 106 1072015-08-13 Ian Lance Taylor <iant@google.com> 108 109 * dwarf.c (read_function_entry): Add vec_inlined parameter. 110 Change all callers. 111 1122015-06-11 Martin Sebor <msebor@redhat.com> 113 114 PR sanitizer/65479 115 * dwarf.c (struct line): Add new field idx. 116 (line_compare): Use it. 117 (add_line): Set it. 118 (read_line_info): Reset it. 119 1202015-05-29 Tristan Gingold <gingold@adacore.com> 121 122 * pecoff.c: New file. 123 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies. 124 * Makefile.in: Regenerate. 125 * filetype.awk: Detect pecoff. 126 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms. 127 Add pecoff. 128 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is 129 true. 130 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define. 131 * configure: Regenerate. 132 * pecoff.c: New file. 133 1342015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 135 136 * Makefile.in: Regenerated with automake-1.11.6. 137 * aclocal.m4: Likewise. 138 * configure: Likewise. 139 1402015-01-24 Matthias Klose <doko@ubuntu.com> 141 142 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 143 * configure: Regenerate. 144 1452015-01-05 Jakub Jelinek <jakub@redhat.com> 146 147 Update copyright years. 148 1492014-11-21 H.J. Lu <hongjiu.lu@intel.com> 150 151 PR bootstrap/63784 152 * configure: Regenerated. 153 1542014-11-11 David Malcolm <dmalcolm@redhat.com> 155 156 * ChangeLog.jit: New. 157 1582014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 159 160 PR target/63610 161 * configure: Regenerate. 162 1632014-10-23 Ian Lance Taylor <iant@google.com> 164 165 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: 166 Fix to return void *. 167 1682014-05-08 Ian Lance Taylor <iant@google.com> 169 170 * mmap.c (backtrace_free): If freeing a large aligned block of 171 memory, call munmap rather than holding onto it. 172 (backtrace_vector_grow): When growing a vector, double the number 173 of pages requested. When releasing the old version of a grown 174 vector, pass the correct size to backtrace_free. 175 1762014-03-07 Ian Lance Taylor <iant@google.com> 177 178 * sort.c (backtrace_qsort): Use middle element as pivot. 179 1802014-03-06 Ian Lance Taylor <iant@google.com> 181 182 * sort.c: New file. 183 * stest.c: New file. 184 * internal.h (backtrace_qsort): Declare. 185 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. 186 (read_line_info, read_function_entry): Likewise. 187 (read_function_info, build_dwarf_data): Likewise. 188 * elf.c (elf_initialize_syminfo): Likewise. 189 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. 190 (stest_SOURCES, stest_LDADD): Define. 191 (check_PROGRAMS): Add stest. 192 1932014-02-07 Misty De Meo <misty@brew.sh> 194 195 PR target/58710 196 * configure.ac: Use AC_LINK_IFELSE in check for 197 _Unwind_GetIPInfo. 198 * configure: Regenerate. 199 2002014-01-02 Richard Sandiford <rdsandiford@googlemail.com> 201 202 Update copyright years 203 2042013-12-06 Jakub Jelinek <jakub@redhat.com> 205 206 * elf.c (ET_DYN): Undefine and define again. 207 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, 208 return early -1 without closing the descriptor. 209 (struct phdr_data): Add exe_descriptor. 210 (phdr_callback): If pd->exe_descriptor is not -1, for very first 211 call if dlpi_name is NULL just call elf_add with the exe_descriptor, 212 otherwise backtrace_close the exe_descriptor if not -1. Adjust 213 call to elf_add. 214 (backtrace_initialize): Adjust call to elf_add. If it returns 215 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. 216 2172013-12-05 Ian Lance Taylor <iant@google.com> 218 219 * alloc.c (backtrace_vector_finish): Add error_callback and data 220 parameters. Call backtrace_vector_release. Return address base. 221 * mmap.c (backtrace_vector_finish): Add error_callback and data 222 parameters. Return address base. 223 * dwarf.c (read_function_info): Get new address base from 224 backtrace_vector_finish. 225 * internal.h (backtrace_vector_finish): Update declaration. 226 2272013-11-27 Ian Lance Taylor <iant@google.com> 228 229 * dwarf.c (find_address_ranges): New static function, broken out 230 of build_address_map. 231 (build_address_map): Call it. 232 * btest.c (check): Check for missing filename or function, rather 233 than crashing. 234 (f3): Check that enough frames were returned. 235 2362013-11-19 Jakub Jelinek <jakub@redhat.com> 237 238 * backtrace.h (backtrace_syminfo_callback): Add symsize argument. 239 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as 240 last argument. 241 * btest.c (struct symdata): Add size field. 242 (callback_three): Add symsize argument. Copy it to the data->size 243 field. 244 (f23): Set symdata.size to 0. 245 (test5): Likewise. If sizeof (int) > 1, lookup address of 246 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size 247 values. 248 249 * atomic.c: Include sys/types.h. 250 2512013-11-18 Ian Lance Taylor <iant@google.com> 252 253 * configure.ac: Check for support of __atomic extensions. 254 * internal.h: Declare or #define atomic functions for use in 255 backtrace code. 256 * atomic.c: New file. 257 * dwarf.c (dwarf_lookup_pc): Use atomic functions. 258 (dwarf_fileline, backtrace_dwarf_add): Likewise. 259 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. 260 (backtrace_initialize): Likewise. 261 * fileline.c (fileline_initialize): Likewise. 262 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. 263 * configure, config.h.in, Makefile.in: Rebuild. 264 2652013-11-18 Jakub Jelinek <jakub@redhat.com> 266 267 * elf.c (SHN_UNDEF): Define. 268 (elf_initialize_syminfo): Add base_address argument. Ignore symbols 269 with st_shndx == SHN_UNDEF. Add base_address to address fields. 270 (elf_add): Adjust caller. 271 272 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. 273 2742013-11-16 Ian Lance Taylor <iant@google.com> 275 276 * backtrace.h (backtrace_create_state): Correct comment about 277 threading. 278 2792013-11-15 Ian Lance Taylor <iant@google.com> 280 281 * backtrace.h (backtrace_syminfo): Update comment and parameter 282 name to take any address, not just a PC value. 283 * elf.c (STT_OBJECT): Define. 284 (elf_nosyms): Rename parameter pc to addr. 285 (elf_symbol_search): Rename local variable pc to addr. 286 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. 287 (elf_syminfo): Rename parameter pc to addr. 288 * btest.c (global): New global variable. 289 (test5): New test. 290 (main): Call test5. 291 2922013-10-17 Ian Lance Taylor <iant@google.com> 293 294 * elf.c (elf_add): Don't get the wrong offsets if a debug section 295 is missing. 296 2972013-10-15 David Malcolm <dmalcolm@redhat.com> 298 299 * configure.ac: Add --enable-host-shared, setting up 300 pre-existing PIC_FLAG variable within Makefile.am et al. 301 * configure: Regenerate. 302 3032013-09-20 Alan Modra <amodra@gmail.com> 304 305 * configure: Regenerate. 306 3072013-07-23 Alexander Monakov <amonakov@ispras.ru> 308 309 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. 310 3112013-07-23 Alexander Monakov <amonakov@ispras.ru> 312 313 * elf.c (backtrace_initialize): Pass elf_fileline_fn to 314 dl_iterate_phdr callbacks. 315 3162013-03-25 Ian Lance Taylor <iant@google.com> 317 318 * alloc.c: #include <sys/types.h>. 319 * mmap.c: Likewise. 320 3212013-01-31 Ian Lance Taylor <iant@google.com> 322 323 * dwarf.c (read_function_info): Permit fvec parameter to be NULL. 324 (dwarf_lookup_pc): Don't use ddata->fvec if threaded. 325 3262013-01-25 Jakub Jelinek <jakub@redhat.com> 327 328 PR other/56076 329 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir 330 attribute was not seen. 331 3322013-01-16 Ian Lance Taylor <iant@google.com> 333 334 * dwarf.c (struct unit): Add filename and abs_filename fields. 335 (build_address_map): Set new fields when reading unit. 336 (dwarf_lookup_pc): If we don't find an entry in the line table, 337 just return the main file name. 338 3392013-01-14 Richard Sandiford <rdsandiford@googlemail.com> 340 341 Update copyright years. 342 3432013-01-01 Ian Lance Taylor <iant@google.com> 344 345 PR bootstrap/54834 346 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I 347 $(MULTIBUILDTOP)/../../gcc/include. 348 * Makefile.in: Rebuild. 349 3502013-01-01 Ian Lance Taylor <iant@google.com> 351 352 PR other/55536 353 * mmap.c (backtrace_alloc): Don't call sync functions if not 354 threaded. 355 (backtrace_free): Likewise. 356 3572012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 358 359 * mmapio.c: Define MAP_FAILED if not defined. 360 3612012-12-11 Jakub Jelinek <jakub@redhat.com> 362 363 PR bootstrap/54926 364 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. 365 * configure.ac: If --with-target-subdir, add -frandom-seed=$@ 366 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler 367 accepts it. 368 * Makefile.in: Regenerated. 369 * configure: Regenerated. 370 3712012-12-07 Jakub Jelinek <jakub@redhat.com> 372 373 PR bootstrap/54926 374 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. 375 * Makefile.in: Regenerated. 376 3772012-11-20 Ian Lance Taylor <iant@google.com> 378 379 * dwarf.c (read_attribute): Always clear val. 380 3812012-11-13 Ian Lance Taylor <iant@google.com> 382 383 PR other/55312 384 * configure.ac: Only add -Werror if building a target library. 385 * configure: Rebuild. 386 3872012-11-12 Ian Lance Taylor <iant@google.com> 388 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 389 Gerald Pfeifer <gerald@pfeifer.com> 390 391 * configure.ac: Check for getexecname. 392 * fileline.c: #include <errno.h>. Define getexecname if not 393 available. 394 (fileline_initialize): Try to find the executable in a few 395 different ways. 396 * print.c (error_callback): Only print the filename if it came 397 from the backtrace state. 398 * configure, config.h.in: Rebuild. 399 4002012-10-29 Ian Lance Taylor <iant@google.com> 401 402 * mmap.c (backtrace_vector_release): Correct last patch: add 403 aligned, not size. 404 4052012-10-29 Ian Lance Taylor <iant@google.com> 406 407 * mmap.c (backtrace_vector_release): Make sure freed block is 408 aligned on 8-byte boundary. 409 4102012-10-26 Ian Lance Taylor <iant@google.com> 411 412 PR other/55087 413 * posix.c (backtrace_open): Add does_not_exist parameter. 414 * elf.c (phdr_callback): Do not warn if shared library could not 415 be opened. 416 * fileline.c (fileline_initialize): Update calls to 417 backtrace_open. 418 * internal.h (backtrace_open): Update declaration. 419 4202012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> 421 422 PR target/55061 423 * configure.ac: Check for _Unwind_GetIPInfo function declaration. 424 * configure: Regenerate. 425 4262012-10-24 Ian Lance Taylor <iant@google.com> 427 428 PR target/55061 429 * configure.ac: Check whether -funwind-tables option works. 430 * configure: Rebuild. 431 4322012-10-11 Ian Lance Taylor <iant@google.com> 433 434 * configure.ac: Do not use dl_iterate_phdr on Solaris 10. 435 * configure: Rebuild. 436 4372012-10-10 Ian Lance Taylor <iant@google.com> 438 439 * elf.c: Rename all Elf typedefs to start with b_elf, and be all 440 lower case. 441 4422012-10-10 Hans-Peter Nilsson <hp@bitrange.com> 443 444 * elf.c (elf_add_syminfo_data): Add casts to avoid warning. 445 4462012-10-09 Ian Lance Taylor <iant@google.com> 447 448 * dwarf.c (dwarf_fileline): Add cast to avoid warning. 449 (backtrace_dwarf_add): Likewise. 450 4512012-10-09 Ian Lance Taylor <iant@google.com> 452 453 Add support for tracing through shared libraries. 454 * configure.ac: Check for link.h and dl_iterate_phdr. 455 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef 456 ELF macros before #defining them. 457 (dl_phdr_info, dl_iterate_phdr): Define if system does not have 458 dl_iterate_phdr. 459 (struct elf_syminfo_data): Add next field. 460 (elf_initialize_syminfo): Initialize next field. 461 (elf_add_syminfo_data): New static function. 462 (elf_add): New static function, broken out of 463 backtrace_initialize. Call backtrace_dwarf_add instead of 464 backtrace_dwarf_initialize. 465 (struct phdr_data): Define. 466 (phdr_callback): New static function. 467 (backtrace_initialize): Call elf_add. 468 * dwarf.c (struct dwarf_data): Add next and base_address fields. 469 (add_unit_addr): Add base_address parameter. Change all callers. 470 (add_unit_ranges, build_address_map): Likewise. 471 (add_line): Add ddata parameter. Change all callers. 472 (read_line_program, add_function_range): Likewise. 473 (dwarf_lookup_pc): New static function, broken out of 474 dwarf_fileline. 475 (dwarf_fileline): Call dwarf_lookup_pc. 476 (build_dwarf_data): New static function. 477 (backtrace_dwarf_add): New function. 478 (backtrace_dwarf_initialize): Remove. 479 * internal.h (backtrace_dwarf_initialize): Don't declare. 480 (backtrace_dwarf_add): Declare. 481 * configure, config.h.in: Rebuild. 482 4832012-10-04 Gerald Pfeifer <gerald@pfeifer.com> 484 485 * btest.c (f23): Avoid uninitialized variable warning. 486 4872012-10-04 Ian Lance Taylor <iant@google.com> 488 489 * dwarf.c: If the system header files do not declare strnlen, 490 provide our own version. 491 4922012-10-03 Ian Lance Taylor <iant@google.com> 493 494 * dwarf.c (read_uleb128): Fix overflow test. 495 (read_sleb128): Likewise. 496 (build_address_map): Don't change unit_buf.start. 497 4982012-10-02 Uros Bizjak <ubizjak@gmail.com> 499 500 PR other/54761 501 * configure.ac (EXTRA_FLAGS): New. 502 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). 503 * configure, Makefile.in: Regenerate. 504 5052012-09-29 Ian Lance Taylor <iant@google.com> 506 507 PR other/54749 508 * fileline.c (fileline_initialize): Pass errnum as -1 when 509 reporting that we could not read executable information after a 510 previous failure. 511 5122012-09-27 Ian Lance Taylor <iant@google.com> 513 514 PR bootstrap/54732 515 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. 516 * Makefile.am: Add dependencies for all objects. 517 * configure, aclocal.m4, Makefile.in: Rebuild. 518 5192012-09-27 Ian Lance Taylor <iant@google.com> 520 521 PR other/54726 522 * elf.c (backtrace_initialize): Set *fileln_fn, not 523 state->fileln_fn. 524 5252012-09-19 Ian Lance Taylor <iant@google.com> 526 527 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled 528 as a target library. 529 * configure: Rebuild. 530 5312012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 532 Ian Lance Taylor <iant@google.com> 533 534 * configure.ac (GCC_HEADER_STDINT): Invoke. 535 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". 536 * btest.c: Don't include <stdint.h>. 537 * dwarf.c: Likewise. 538 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. 539 5402012-09-18 Ian Lance Taylor <iant@google.com> 541 542 PR bootstrap/54623 543 * Makefile.am (AM_CPPFLAGS): Define. 544 (AM_CFLAGS): Remove -I options. 545 * Makefile.in: Rebuild. 546 5472012-09-18 Ian Lance Taylor <iant@google.com> 548 549 * posix.c (O_BINARY): Define if not defined. 550 (backtrace_open): Pass O_BINARY to open. Only call fcntl if 551 HAVE_FCNTL is defined. 552 * configure.ac: Test for the fcntl function. 553 * configure, config.h.in: Rebuild. 554 5552012-09-18 Ian Lance Taylor <iant@google.com> 556 557 * btest.c (test1, test2, test3, test4): Add the unused attribute. 558 5592012-09-18 Ian Lance Taylor <iant@google.com> 560 561 * dwarf.c: Correct test of HAVE_DECL_STRNLEN. 562 5632012-09-18 Ian Lance Taylor <iant@google.com> 564 565 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 566 * mmapio.c: Don't define _GNU_SOURCE. 567 * configure, config.h.in: Rebuild. 568 5692012-09-18 Ian Lance Taylor <iant@google.com> 570 571 * configure.ac: Check whether strnlen is declared. 572 * dwarf.c: Declare strnlen if not declared. 573 * configure, config.h.in: Rebuild. 574 5752012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 576 577 * fileline.c: Include <stdlib.h>. 578 * mmap.c: Likewise. 579 5802012-09-17 Ian Lance Taylor <iant@google.com> 581 582 PR bootstrap/54611 583 * nounwind.c (backtrace_full): Rename from backtrace. Add state 584 parameter. 585 5862012-09-17 Gerald Pfeifer <gerald@pfeifer.com> 587 588 PR bootstrap/54611 589 * nounwind.c (backtrace_simple): Add state parameter. 590 5912012-09-17 Ian Lance Taylor <iant@google.com> 592 593 PR bootstrap/54609 594 * unknown.c (unknown_fileline): Add state parameter, remove 595 fileline_data parameter, name error_callback parameter. 596 (backtrace_initialize): Add state parameter. 597 5982012-09-17 Ian Lance Taylor <iant@google.com> 599 600 * Initial implementation. 601 602Copyright (C) 2012-2016 Free Software Foundation, Inc. 603 604Copying and distribution of this file, with or without modification, 605are permitted in any medium without royalty provided the copyright 606notice and this notice are preserved. 607