12017-10-10 Release Manager 2 3 * GCC 5.5.0 released. 4 52016-06-03 Release Manager 6 7 * GCC 5.4.0 released. 8 92016-05-18 Uros Bizjak <ubizjak@gmail.com> 10 11 PR target/71161 12 * elf.c (phdr_callback) [__i386__]: Add 13 __attribute__((__force_align_arg_pointer__)). 14 152015-12-04 Release Manager 16 17 * GCC 5.3.0 released. 18 192015-07-16 Release Manager 20 21 * GCC 5.2.0 released. 22 232015-04-22 Release Manager 24 25 * GCC 5.1.0 released. 26 272015-01-24 Matthias Klose <doko@ubuntu.com> 28 29 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 30 * configure: Regenerate. 31 322015-01-05 Jakub Jelinek <jakub@redhat.com> 33 34 Update copyright years. 35 362014-11-21 H.J. Lu <hongjiu.lu@intel.com> 37 38 PR bootstrap/63784 39 * configure: Regenerated. 40 412014-11-11 David Malcolm <dmalcolm@redhat.com> 42 43 * ChangeLog.jit: New. 44 452014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 46 47 PR target/63610 48 * configure: Regenerate. 49 502014-10-23 Ian Lance Taylor <iant@google.com> 51 52 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]: 53 Fix to return void *. 54 552014-05-08 Ian Lance Taylor <iant@google.com> 56 57 * mmap.c (backtrace_free): If freeing a large aligned block of 58 memory, call munmap rather than holding onto it. 59 (backtrace_vector_grow): When growing a vector, double the number 60 of pages requested. When releasing the old version of a grown 61 vector, pass the correct size to backtrace_free. 62 632014-03-07 Ian Lance Taylor <iant@google.com> 64 65 * sort.c (backtrace_qsort): Use middle element as pivot. 66 672014-03-06 Ian Lance Taylor <iant@google.com> 68 69 * sort.c: New file. 70 * stest.c: New file. 71 * internal.h (backtrace_qsort): Declare. 72 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. 73 (read_line_info, read_function_entry): Likewise. 74 (read_function_info, build_dwarf_data): Likewise. 75 * elf.c (elf_initialize_syminfo): Likewise. 76 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. 77 (stest_SOURCES, stest_LDADD): Define. 78 (check_PROGRAMS): Add stest. 79 802014-02-07 Misty De Meo <misty@brew.sh> 81 82 PR target/58710 83 * configure.ac: Use AC_LINK_IFELSE in check for 84 _Unwind_GetIPInfo. 85 * configure: Regenerate. 86 872014-01-02 Richard Sandiford <rdsandiford@googlemail.com> 88 89 Update copyright years 90 912013-12-06 Jakub Jelinek <jakub@redhat.com> 92 93 * elf.c (ET_DYN): Undefine and define again. 94 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN, 95 return early -1 without closing the descriptor. 96 (struct phdr_data): Add exe_descriptor. 97 (phdr_callback): If pd->exe_descriptor is not -1, for very first 98 call if dlpi_name is NULL just call elf_add with the exe_descriptor, 99 otherwise backtrace_close the exe_descriptor if not -1. Adjust 100 call to elf_add. 101 (backtrace_initialize): Adjust call to elf_add. If it returns 102 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1. 103 1042013-12-05 Ian Lance Taylor <iant@google.com> 105 106 * alloc.c (backtrace_vector_finish): Add error_callback and data 107 parameters. Call backtrace_vector_release. Return address base. 108 * mmap.c (backtrace_vector_finish): Add error_callback and data 109 parameters. Return address base. 110 * dwarf.c (read_function_info): Get new address base from 111 backtrace_vector_finish. 112 * internal.h (backtrace_vector_finish): Update declaration. 113 1142013-11-27 Ian Lance Taylor <iant@google.com> 115 116 * dwarf.c (find_address_ranges): New static function, broken out 117 of build_address_map. 118 (build_address_map): Call it. 119 * btest.c (check): Check for missing filename or function, rather 120 than crashing. 121 (f3): Check that enough frames were returned. 122 1232013-11-19 Jakub Jelinek <jakub@redhat.com> 124 125 * backtrace.h (backtrace_syminfo_callback): Add symsize argument. 126 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as 127 last argument. 128 * btest.c (struct symdata): Add size field. 129 (callback_three): Add symsize argument. Copy it to the data->size 130 field. 131 (f23): Set symdata.size to 0. 132 (test5): Likewise. If sizeof (int) > 1, lookup address of 133 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size 134 values. 135 136 * atomic.c: Include sys/types.h. 137 1382013-11-18 Ian Lance Taylor <iant@google.com> 139 140 * configure.ac: Check for support of __atomic extensions. 141 * internal.h: Declare or #define atomic functions for use in 142 backtrace code. 143 * atomic.c: New file. 144 * dwarf.c (dwarf_lookup_pc): Use atomic functions. 145 (dwarf_fileline, backtrace_dwarf_add): Likewise. 146 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise. 147 (backtrace_initialize): Likewise. 148 * fileline.c (fileline_initialize): Likewise. 149 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c. 150 * configure, config.h.in, Makefile.in: Rebuild. 151 1522013-11-18 Jakub Jelinek <jakub@redhat.com> 153 154 * elf.c (SHN_UNDEF): Define. 155 (elf_initialize_syminfo): Add base_address argument. Ignore symbols 156 with st_shndx == SHN_UNDEF. Add base_address to address fields. 157 (elf_add): Adjust caller. 158 159 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally. 160 1612013-11-16 Ian Lance Taylor <iant@google.com> 162 163 * backtrace.h (backtrace_create_state): Correct comment about 164 threading. 165 1662013-11-15 Ian Lance Taylor <iant@google.com> 167 168 * backtrace.h (backtrace_syminfo): Update comment and parameter 169 name to take any address, not just a PC value. 170 * elf.c (STT_OBJECT): Define. 171 (elf_nosyms): Rename parameter pc to addr. 172 (elf_symbol_search): Rename local variable pc to addr. 173 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols. 174 (elf_syminfo): Rename parameter pc to addr. 175 * btest.c (global): New global variable. 176 (test5): New test. 177 (main): Call test5. 178 1792013-10-17 Ian Lance Taylor <iant@google.com> 180 181 * elf.c (elf_add): Don't get the wrong offsets if a debug section 182 is missing. 183 1842013-10-15 David Malcolm <dmalcolm@redhat.com> 185 186 * configure.ac: Add --enable-host-shared, setting up 187 pre-existing PIC_FLAG variable within Makefile.am et al. 188 * configure: Regenerate. 189 1902013-09-20 Alan Modra <amodra@gmail.com> 191 192 * configure: Regenerate. 193 1942013-07-23 Alexander Monakov <amonakov@ispras.ru> 195 196 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain. 197 1982013-07-23 Alexander Monakov <amonakov@ispras.ru> 199 200 * elf.c (backtrace_initialize): Pass elf_fileline_fn to 201 dl_iterate_phdr callbacks. 202 2032013-03-25 Ian Lance Taylor <iant@google.com> 204 205 * alloc.c: #include <sys/types.h>. 206 * mmap.c: Likewise. 207 2082013-01-31 Ian Lance Taylor <iant@google.com> 209 210 * dwarf.c (read_function_info): Permit fvec parameter to be NULL. 211 (dwarf_lookup_pc): Don't use ddata->fvec if threaded. 212 2132013-01-25 Jakub Jelinek <jakub@redhat.com> 214 215 PR other/56076 216 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir 217 attribute was not seen. 218 2192013-01-16 Ian Lance Taylor <iant@google.com> 220 221 * dwarf.c (struct unit): Add filename and abs_filename fields. 222 (build_address_map): Set new fields when reading unit. 223 (dwarf_lookup_pc): If we don't find an entry in the line table, 224 just return the main file name. 225 2262013-01-14 Richard Sandiford <rdsandiford@googlemail.com> 227 228 Update copyright years. 229 2302013-01-01 Ian Lance Taylor <iant@google.com> 231 232 PR bootstrap/54834 233 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I 234 $(MULTIBUILDTOP)/../../gcc/include. 235 * Makefile.in: Rebuild. 236 2372013-01-01 Ian Lance Taylor <iant@google.com> 238 239 PR other/55536 240 * mmap.c (backtrace_alloc): Don't call sync functions if not 241 threaded. 242 (backtrace_free): Likewise. 243 2442012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 245 246 * mmapio.c: Define MAP_FAILED if not defined. 247 2482012-12-11 Jakub Jelinek <jakub@redhat.com> 249 250 PR bootstrap/54926 251 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@. 252 * configure.ac: If --with-target-subdir, add -frandom-seed=$@ 253 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler 254 accepts it. 255 * Makefile.in: Regenerated. 256 * configure: Regenerated. 257 2582012-12-07 Jakub Jelinek <jakub@redhat.com> 259 260 PR bootstrap/54926 261 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@. 262 * Makefile.in: Regenerated. 263 2642012-11-20 Ian Lance Taylor <iant@google.com> 265 266 * dwarf.c (read_attribute): Always clear val. 267 2682012-11-13 Ian Lance Taylor <iant@google.com> 269 270 PR other/55312 271 * configure.ac: Only add -Werror if building a target library. 272 * configure: Rebuild. 273 2742012-11-12 Ian Lance Taylor <iant@google.com> 275 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 276 Gerald Pfeifer <gerald@pfeifer.com> 277 278 * configure.ac: Check for getexecname. 279 * fileline.c: #include <errno.h>. Define getexecname if not 280 available. 281 (fileline_initialize): Try to find the executable in a few 282 different ways. 283 * print.c (error_callback): Only print the filename if it came 284 from the backtrace state. 285 * configure, config.h.in: Rebuild. 286 2872012-10-29 Ian Lance Taylor <iant@google.com> 288 289 * mmap.c (backtrace_vector_release): Correct last patch: add 290 aligned, not size. 291 2922012-10-29 Ian Lance Taylor <iant@google.com> 293 294 * mmap.c (backtrace_vector_release): Make sure freed block is 295 aligned on 8-byte boundary. 296 2972012-10-26 Ian Lance Taylor <iant@google.com> 298 299 PR other/55087 300 * posix.c (backtrace_open): Add does_not_exist parameter. 301 * elf.c (phdr_callback): Do not warn if shared library could not 302 be opened. 303 * fileline.c (fileline_initialize): Update calls to 304 backtrace_open. 305 * internal.h (backtrace_open): Update declaration. 306 3072012-10-26 Jack Howarth <howarth@bromo.med.uc.edu> 308 309 PR target/55061 310 * configure.ac: Check for _Unwind_GetIPInfo function declaration. 311 * configure: Regenerate. 312 3132012-10-24 Ian Lance Taylor <iant@google.com> 314 315 PR target/55061 316 * configure.ac: Check whether -funwind-tables option works. 317 * configure: Rebuild. 318 3192012-10-11 Ian Lance Taylor <iant@google.com> 320 321 * configure.ac: Do not use dl_iterate_phdr on Solaris 10. 322 * configure: Rebuild. 323 3242012-10-10 Ian Lance Taylor <iant@google.com> 325 326 * elf.c: Rename all Elf typedefs to start with b_elf, and be all 327 lower case. 328 3292012-10-10 Hans-Peter Nilsson <hp@bitrange.com> 330 331 * elf.c (elf_add_syminfo_data): Add casts to avoid warning. 332 3332012-10-09 Ian Lance Taylor <iant@google.com> 334 335 * dwarf.c (dwarf_fileline): Add cast to avoid warning. 336 (backtrace_dwarf_add): Likewise. 337 3382012-10-09 Ian Lance Taylor <iant@google.com> 339 340 Add support for tracing through shared libraries. 341 * configure.ac: Check for link.h and dl_iterate_phdr. 342 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef 343 ELF macros before #defining them. 344 (dl_phdr_info, dl_iterate_phdr): Define if system does not have 345 dl_iterate_phdr. 346 (struct elf_syminfo_data): Add next field. 347 (elf_initialize_syminfo): Initialize next field. 348 (elf_add_syminfo_data): New static function. 349 (elf_add): New static function, broken out of 350 backtrace_initialize. Call backtrace_dwarf_add instead of 351 backtrace_dwarf_initialize. 352 (struct phdr_data): Define. 353 (phdr_callback): New static function. 354 (backtrace_initialize): Call elf_add. 355 * dwarf.c (struct dwarf_data): Add next and base_address fields. 356 (add_unit_addr): Add base_address parameter. Change all callers. 357 (add_unit_ranges, build_address_map): Likewise. 358 (add_line): Add ddata parameter. Change all callers. 359 (read_line_program, add_function_range): Likewise. 360 (dwarf_lookup_pc): New static function, broken out of 361 dwarf_fileline. 362 (dwarf_fileline): Call dwarf_lookup_pc. 363 (build_dwarf_data): New static function. 364 (backtrace_dwarf_add): New function. 365 (backtrace_dwarf_initialize): Remove. 366 * internal.h (backtrace_dwarf_initialize): Don't declare. 367 (backtrace_dwarf_add): Declare. 368 * configure, config.h.in: Rebuild. 369 3702012-10-04 Gerald Pfeifer <gerald@pfeifer.com> 371 372 * btest.c (f23): Avoid uninitialized variable warning. 373 3742012-10-04 Ian Lance Taylor <iant@google.com> 375 376 * dwarf.c: If the system header files do not declare strnlen, 377 provide our own version. 378 3792012-10-03 Ian Lance Taylor <iant@google.com> 380 381 * dwarf.c (read_uleb128): Fix overflow test. 382 (read_sleb128): Likewise. 383 (build_address_map): Don't change unit_buf.start. 384 3852012-10-02 Uros Bizjak <ubizjak@gmail.com> 386 387 PR other/54761 388 * configure.ac (EXTRA_FLAGS): New. 389 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS). 390 * configure, Makefile.in: Regenerate. 391 3922012-09-29 Ian Lance Taylor <iant@google.com> 393 394 PR other/54749 395 * fileline.c (fileline_initialize): Pass errnum as -1 when 396 reporting that we could not read executable information after a 397 previous failure. 398 3992012-09-27 Ian Lance Taylor <iant@google.com> 400 401 PR bootstrap/54732 402 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE. 403 * Makefile.am: Add dependencies for all objects. 404 * configure, aclocal.m4, Makefile.in: Rebuild. 405 4062012-09-27 Ian Lance Taylor <iant@google.com> 407 408 PR other/54726 409 * elf.c (backtrace_initialize): Set *fileln_fn, not 410 state->fileln_fn. 411 4122012-09-19 Ian Lance Taylor <iant@google.com> 413 414 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled 415 as a target library. 416 * configure: Rebuild. 417 4182012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 419 Ian Lance Taylor <iant@google.com> 420 421 * configure.ac (GCC_HEADER_STDINT): Invoke. 422 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". 423 * btest.c: Don't include <stdint.h>. 424 * dwarf.c: Likewise. 425 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. 426 4272012-09-18 Ian Lance Taylor <iant@google.com> 428 429 PR bootstrap/54623 430 * Makefile.am (AM_CPPFLAGS): Define. 431 (AM_CFLAGS): Remove -I options. 432 * Makefile.in: Rebuild. 433 4342012-09-18 Ian Lance Taylor <iant@google.com> 435 436 * posix.c (O_BINARY): Define if not defined. 437 (backtrace_open): Pass O_BINARY to open. Only call fcntl if 438 HAVE_FCNTL is defined. 439 * configure.ac: Test for the fcntl function. 440 * configure, config.h.in: Rebuild. 441 4422012-09-18 Ian Lance Taylor <iant@google.com> 443 444 * btest.c (test1, test2, test3, test4): Add the unused attribute. 445 4462012-09-18 Ian Lance Taylor <iant@google.com> 447 448 * dwarf.c: Correct test of HAVE_DECL_STRNLEN. 449 4502012-09-18 Ian Lance Taylor <iant@google.com> 451 452 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 453 * mmapio.c: Don't define _GNU_SOURCE. 454 * configure, config.h.in: Rebuild. 455 4562012-09-18 Ian Lance Taylor <iant@google.com> 457 458 * configure.ac: Check whether strnlen is declared. 459 * dwarf.c: Declare strnlen if not declared. 460 * configure, config.h.in: Rebuild. 461 4622012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 463 464 * fileline.c: Include <stdlib.h>. 465 * mmap.c: Likewise. 466 4672012-09-17 Ian Lance Taylor <iant@google.com> 468 469 PR bootstrap/54611 470 * nounwind.c (backtrace_full): Rename from backtrace. Add state 471 parameter. 472 4732012-09-17 Gerald Pfeifer <gerald@pfeifer.com> 474 475 PR bootstrap/54611 476 * nounwind.c (backtrace_simple): Add state parameter. 477 4782012-09-17 Ian Lance Taylor <iant@google.com> 479 480 PR bootstrap/54609 481 * unknown.c (unknown_fileline): Add state parameter, remove 482 fileline_data parameter, name error_callback parameter. 483 (backtrace_initialize): Add state parameter. 484 4852012-09-17 Ian Lance Taylor <iant@google.com> 486 487 * Initial implementation. 488