1 2017-07-04 Release Manager
5 2016-12-21 Release Manager
9 2016-08-22 Release Manager
13 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
16 * elf.c (phdr_callback) [__i386__]: Add
17 __attribute__((__force_align_arg_pointer__)).
19 2016-04-27 Release Manager
23 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
25 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
27 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
28 missing debug info anymore.
30 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
32 * mmap.c (MAP_FAILED): Define if not defined.
34 2016-01-04 Jakub Jelinek <jakub@redhat.com>
36 Update copyright years.
38 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
40 * configure.ac: Specify that DJGPP do not have mmap
41 even when sys/mman.h exists.
42 * configure: Regenerate
44 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
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
52 2015-09-17 Ian Lance Taylor <iant@google.com>
54 * posix.c (backtrace_open): Cast second argument of open() to int.
56 2015-09-11 Ian Lance Taylor <iant@google.com>
58 * Makefile.am (backtrace.lo): Depend on internal.h.
59 (sort.lo, stest.lo): Add explicit dependencies.
60 * Makefile.in: Rebuild.
62 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
64 * backtrace.c: #include <sys/types.h>.
66 2015-09-08 Ian Lance Taylor <iant@google.com>
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
73 (backtrace_full): Set can_alloc field in bdata.
74 * alloc.c (backtrace_alloc): Don't call error_callback if it is
76 * mmap.c (backtrace_alloc): Likewise.
77 * internal.h: Update comments for backtrace_alloc and
80 2015-09-08 Ian Lance Taylor <iant@google.com>
83 * mmap.c (backtrace_alloc): Correct test for mmap failure.
85 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
87 * configure.ac: For spu-*-* targets, set have_fcntl to no.
88 * configure: Regenerate.
90 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
92 * configure.ac: Remove [disable-shared] argument to LT_INIT.
93 Remove setting PIC_FLAG when building as target library.
94 * configure: Regenerate.
96 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
98 * configure.ac: Only compile with -fPIC if the target
100 * configure: Regenerate.
102 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
104 * configure.ac: Set have_mmap to no on spu-*-* targets.
105 * configure: Regenerate.
107 2015-08-13 Ian Lance Taylor <iant@google.com>
109 * dwarf.c (read_function_entry): Add vec_inlined parameter.
112 2015-06-11 Martin Sebor <msebor@redhat.com>
115 * dwarf.c (struct line): Add new field idx.
116 (line_compare): Use it.
118 (read_line_info): Reset it.
120 2015-05-29 Tristan Gingold <gingold@adacore.com>
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.
128 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
130 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
131 * configure: Regenerate.
132 * pecoff.c: New file.
134 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
136 * Makefile.in: Regenerated with automake-1.11.6.
137 * aclocal.m4: Likewise.
138 * configure: Likewise.
140 2015-01-24 Matthias Klose <doko@ubuntu.com>
142 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
143 * configure: Regenerate.
145 2015-01-05 Jakub Jelinek <jakub@redhat.com>
147 Update copyright years.
149 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
152 * configure: Regenerated.
154 2014-11-11 David Malcolm <dmalcolm@redhat.com>
156 * ChangeLog.jit: New.
158 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
161 * configure: Regenerate.
163 2014-10-23 Ian Lance Taylor <iant@google.com>
165 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
166 Fix to return void *.
168 2014-05-08 Ian Lance Taylor <iant@google.com>
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.
176 2014-03-07 Ian Lance Taylor <iant@google.com>
178 * sort.c (backtrace_qsort): Use middle element as pivot.
180 2014-03-06 Ian Lance Taylor <iant@google.com>
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.
193 2014-02-07 Misty De Meo <misty@brew.sh>
196 * configure.ac: Use AC_LINK_IFELSE in check for
198 * configure: Regenerate.
200 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
202 Update copyright years
204 2013-12-06 Jakub Jelinek <jakub@redhat.com>
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
214 (backtrace_initialize): Adjust call to elf_add. If it returns
215 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
217 2013-12-05 Ian Lance Taylor <iant@google.com>
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.
227 2013-11-27 Ian Lance Taylor <iant@google.com>
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
234 (f3): Check that enough frames were returned.
236 2013-11-19 Jakub Jelinek <jakub@redhat.com>
238 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
239 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
241 * btest.c (struct symdata): Add size field.
242 (callback_three): Add symsize argument. Copy it to the data->size
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
249 * atomic.c: Include sys/types.h.
251 2013-11-18 Ian Lance Taylor <iant@google.com>
253 * configure.ac: Check for support of __atomic extensions.
254 * internal.h: Declare or #define atomic functions for use in
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.
265 2013-11-18 Jakub Jelinek <jakub@redhat.com>
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.
272 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
274 2013-11-16 Ian Lance Taylor <iant@google.com>
276 * backtrace.h (backtrace_create_state): Correct comment about
279 2013-11-15 Ian Lance Taylor <iant@google.com>
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.
292 2013-10-17 Ian Lance Taylor <iant@google.com>
294 * elf.c (elf_add): Don't get the wrong offsets if a debug section
297 2013-10-15 David Malcolm <dmalcolm@redhat.com>
299 * configure.ac: Add --enable-host-shared, setting up
300 pre-existing PIC_FLAG variable within Makefile.am et al.
301 * configure: Regenerate.
303 2013-09-20 Alan Modra <amodra@gmail.com>
305 * configure: Regenerate.
307 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
309 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
311 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
313 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
314 dl_iterate_phdr callbacks.
316 2013-03-25 Ian Lance Taylor <iant@google.com>
318 * alloc.c: #include <sys/types.h>.
321 2013-01-31 Ian Lance Taylor <iant@google.com>
323 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
324 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
326 2013-01-25 Jakub Jelinek <jakub@redhat.com>
329 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
330 attribute was not seen.
332 2013-01-16 Ian Lance Taylor <iant@google.com>
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.
339 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
341 Update copyright years.
343 2013-01-01 Ian Lance Taylor <iant@google.com>
346 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
347 $(MULTIBUILDTOP)/../../gcc/include.
348 * Makefile.in: Rebuild.
350 2013-01-01 Ian Lance Taylor <iant@google.com>
353 * mmap.c (backtrace_alloc): Don't call sync functions if not
355 (backtrace_free): Likewise.
357 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
359 * mmapio.c: Define MAP_FAILED if not defined.
361 2012-12-11 Jakub Jelinek <jakub@redhat.com>
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
368 * Makefile.in: Regenerated.
369 * configure: Regenerated.
371 2012-12-07 Jakub Jelinek <jakub@redhat.com>
374 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
375 * Makefile.in: Regenerated.
377 2012-11-20 Ian Lance Taylor <iant@google.com>
379 * dwarf.c (read_attribute): Always clear val.
381 2012-11-13 Ian Lance Taylor <iant@google.com>
384 * configure.ac: Only add -Werror if building a target library.
385 * configure: Rebuild.
387 2012-11-12 Ian Lance Taylor <iant@google.com>
388 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
389 Gerald Pfeifer <gerald@pfeifer.com>
391 * configure.ac: Check for getexecname.
392 * fileline.c: #include <errno.h>. Define getexecname if not
394 (fileline_initialize): Try to find the executable in a few
396 * print.c (error_callback): Only print the filename if it came
397 from the backtrace state.
398 * configure, config.h.in: Rebuild.
400 2012-10-29 Ian Lance Taylor <iant@google.com>
402 * mmap.c (backtrace_vector_release): Correct last patch: add
405 2012-10-29 Ian Lance Taylor <iant@google.com>
407 * mmap.c (backtrace_vector_release): Make sure freed block is
408 aligned on 8-byte boundary.
410 2012-10-26 Ian Lance Taylor <iant@google.com>
413 * posix.c (backtrace_open): Add does_not_exist parameter.
414 * elf.c (phdr_callback): Do not warn if shared library could not
416 * fileline.c (fileline_initialize): Update calls to
418 * internal.h (backtrace_open): Update declaration.
420 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
423 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
424 * configure: Regenerate.
426 2012-10-24 Ian Lance Taylor <iant@google.com>
429 * configure.ac: Check whether -funwind-tables option works.
430 * configure: Rebuild.
432 2012-10-11 Ian Lance Taylor <iant@google.com>
434 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
435 * configure: Rebuild.
437 2012-10-10 Ian Lance Taylor <iant@google.com>
439 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
442 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
444 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
446 2012-10-09 Ian Lance Taylor <iant@google.com>
448 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
449 (backtrace_dwarf_add): Likewise.
451 2012-10-09 Ian Lance Taylor <iant@google.com>
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
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
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.
483 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
485 * btest.c (f23): Avoid uninitialized variable warning.
487 2012-10-04 Ian Lance Taylor <iant@google.com>
489 * dwarf.c: If the system header files do not declare strnlen,
490 provide our own version.
492 2012-10-03 Ian Lance Taylor <iant@google.com>
494 * dwarf.c (read_uleb128): Fix overflow test.
495 (read_sleb128): Likewise.
496 (build_address_map): Don't change unit_buf.start.
498 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
501 * configure.ac (EXTRA_FLAGS): New.
502 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
503 * configure, Makefile.in: Regenerate.
505 2012-09-29 Ian Lance Taylor <iant@google.com>
508 * fileline.c (fileline_initialize): Pass errnum as -1 when
509 reporting that we could not read executable information after a
512 2012-09-27 Ian Lance Taylor <iant@google.com>
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.
519 2012-09-27 Ian Lance Taylor <iant@google.com>
522 * elf.c (backtrace_initialize): Set *fileln_fn, not
525 2012-09-19 Ian Lance Taylor <iant@google.com>
527 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
529 * configure: Rebuild.
531 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
532 Ian Lance Taylor <iant@google.com>
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>.
538 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
540 2012-09-18 Ian Lance Taylor <iant@google.com>
543 * Makefile.am (AM_CPPFLAGS): Define.
544 (AM_CFLAGS): Remove -I options.
545 * Makefile.in: Rebuild.
547 2012-09-18 Ian Lance Taylor <iant@google.com>
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.
555 2012-09-18 Ian Lance Taylor <iant@google.com>
557 * btest.c (test1, test2, test3, test4): Add the unused attribute.
559 2012-09-18 Ian Lance Taylor <iant@google.com>
561 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
563 2012-09-18 Ian Lance Taylor <iant@google.com>
565 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
566 * mmapio.c: Don't define _GNU_SOURCE.
567 * configure, config.h.in: Rebuild.
569 2012-09-18 Ian Lance Taylor <iant@google.com>
571 * configure.ac: Check whether strnlen is declared.
572 * dwarf.c: Declare strnlen if not declared.
573 * configure, config.h.in: Rebuild.
575 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
577 * fileline.c: Include <stdlib.h>.
580 2012-09-17 Ian Lance Taylor <iant@google.com>
583 * nounwind.c (backtrace_full): Rename from backtrace. Add state
586 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
589 * nounwind.c (backtrace_simple): Add state parameter.
591 2012-09-17 Ian Lance Taylor <iant@google.com>
594 * unknown.c (unknown_fileline): Add state parameter, remove
595 fileline_data parameter, name error_callback parameter.
596 (backtrace_initialize): Add state parameter.
598 2012-09-17 Ian Lance Taylor <iant@google.com>
600 * Initial implementation.
602 Copyright (C) 2012-2016 Free Software Foundation, Inc.
604 Copying and distribution of this file, with or without modification,
605 are permitted in any medium without royalty provided the copyright
606 notice and this notice are preserved.