1 2017-08-14 Release Manager
5 2017-05-02 Release Manager
9 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
11 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
12 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
14 2017-01-01 Jakub Jelinek <jakub@redhat.com>
16 Update copyright years.
18 2016-11-15 Matthias Klose <doko@ubuntu.com>
20 * configure: Regenerate.
22 2016-09-11 Carlos Liam <carlos@aarzee.me>
24 * all: Remove meaningless trailing whitespace.
26 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
29 * elf.c (phdr_callback) [__i386__]: Add
30 __attribute__((__force_align_arg_pointer__)).
32 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
34 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
36 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
37 missing debug info anymore.
39 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
41 * mmap.c (MAP_FAILED): Define if not defined.
43 2016-01-04 Jakub Jelinek <jakub@redhat.com>
45 Update copyright years.
47 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
49 * configure.ac: Specify that DJGPP do not have mmap
50 even when sys/mman.h exists.
51 * configure: Regenerate
53 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
56 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
57 * configure: Regenerate.
58 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
61 2015-09-17 Ian Lance Taylor <iant@google.com>
63 * posix.c (backtrace_open): Cast second argument of open() to int.
65 2015-09-11 Ian Lance Taylor <iant@google.com>
67 * Makefile.am (backtrace.lo): Depend on internal.h.
68 (sort.lo, stest.lo): Add explicit dependencies.
69 * Makefile.in: Rebuild.
71 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
73 * backtrace.c: #include <sys/types.h>.
75 2015-09-08 Ian Lance Taylor <iant@google.com>
78 * backtrace.c: #include "internal.h".
79 (struct backtrace_data): Add can_alloc field.
80 (unwind): If can_alloc is false, don't try to get file/line
82 (backtrace_full): Set can_alloc field in bdata.
83 * alloc.c (backtrace_alloc): Don't call error_callback if it is
85 * mmap.c (backtrace_alloc): Likewise.
86 * internal.h: Update comments for backtrace_alloc and
89 2015-09-08 Ian Lance Taylor <iant@google.com>
92 * mmap.c (backtrace_alloc): Correct test for mmap failure.
94 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
96 * configure.ac: For spu-*-* targets, set have_fcntl to no.
97 * configure: Regenerate.
99 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
101 * configure.ac: Remove [disable-shared] argument to LT_INIT.
102 Remove setting PIC_FLAG when building as target library.
103 * configure: Regenerate.
105 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
107 * configure.ac: Only compile with -fPIC if the target
109 * configure: Regenerate.
111 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
113 * configure.ac: Set have_mmap to no on spu-*-* targets.
114 * configure: Regenerate.
116 2015-08-13 Ian Lance Taylor <iant@google.com>
118 * dwarf.c (read_function_entry): Add vec_inlined parameter.
121 2015-06-11 Martin Sebor <msebor@redhat.com>
124 * dwarf.c (struct line): Add new field idx.
125 (line_compare): Use it.
127 (read_line_info): Reset it.
129 2015-05-29 Tristan Gingold <gingold@adacore.com>
131 * pecoff.c: New file.
132 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
133 * Makefile.in: Regenerate.
134 * filetype.awk: Detect pecoff.
135 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
137 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
139 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
140 * configure: Regenerate.
141 * pecoff.c: New file.
143 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
145 * Makefile.in: Regenerated with automake-1.11.6.
146 * aclocal.m4: Likewise.
147 * configure: Likewise.
149 2015-01-24 Matthias Klose <doko@ubuntu.com>
151 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
152 * configure: Regenerate.
154 2015-01-05 Jakub Jelinek <jakub@redhat.com>
156 Update copyright years.
158 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
161 * configure: Regenerated.
163 2014-11-11 David Malcolm <dmalcolm@redhat.com>
165 * ChangeLog.jit: New.
167 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
170 * configure: Regenerate.
172 2014-10-23 Ian Lance Taylor <iant@google.com>
174 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
175 Fix to return void *.
177 2014-05-08 Ian Lance Taylor <iant@google.com>
179 * mmap.c (backtrace_free): If freeing a large aligned block of
180 memory, call munmap rather than holding onto it.
181 (backtrace_vector_grow): When growing a vector, double the number
182 of pages requested. When releasing the old version of a grown
183 vector, pass the correct size to backtrace_free.
185 2014-03-07 Ian Lance Taylor <iant@google.com>
187 * sort.c (backtrace_qsort): Use middle element as pivot.
189 2014-03-06 Ian Lance Taylor <iant@google.com>
193 * internal.h (backtrace_qsort): Declare.
194 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
195 (read_line_info, read_function_entry): Likewise.
196 (read_function_info, build_dwarf_data): Likewise.
197 * elf.c (elf_initialize_syminfo): Likewise.
198 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
199 (stest_SOURCES, stest_LDADD): Define.
200 (check_PROGRAMS): Add stest.
202 2014-02-07 Misty De Meo <misty@brew.sh>
205 * configure.ac: Use AC_LINK_IFELSE in check for
207 * configure: Regenerate.
209 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
211 Update copyright years
213 2013-12-06 Jakub Jelinek <jakub@redhat.com>
215 * elf.c (ET_DYN): Undefine and define again.
216 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
217 return early -1 without closing the descriptor.
218 (struct phdr_data): Add exe_descriptor.
219 (phdr_callback): If pd->exe_descriptor is not -1, for very first
220 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
221 otherwise backtrace_close the exe_descriptor if not -1. Adjust
223 (backtrace_initialize): Adjust call to elf_add. If it returns
224 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
226 2013-12-05 Ian Lance Taylor <iant@google.com>
228 * alloc.c (backtrace_vector_finish): Add error_callback and data
229 parameters. Call backtrace_vector_release. Return address base.
230 * mmap.c (backtrace_vector_finish): Add error_callback and data
231 parameters. Return address base.
232 * dwarf.c (read_function_info): Get new address base from
233 backtrace_vector_finish.
234 * internal.h (backtrace_vector_finish): Update declaration.
236 2013-11-27 Ian Lance Taylor <iant@google.com>
238 * dwarf.c (find_address_ranges): New static function, broken out
239 of build_address_map.
240 (build_address_map): Call it.
241 * btest.c (check): Check for missing filename or function, rather
243 (f3): Check that enough frames were returned.
245 2013-11-19 Jakub Jelinek <jakub@redhat.com>
247 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
248 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
250 * btest.c (struct symdata): Add size field.
251 (callback_three): Add symsize argument. Copy it to the data->size
253 (f23): Set symdata.size to 0.
254 (test5): Likewise. If sizeof (int) > 1, lookup address of
255 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
258 * atomic.c: Include sys/types.h.
260 2013-11-18 Ian Lance Taylor <iant@google.com>
262 * configure.ac: Check for support of __atomic extensions.
263 * internal.h: Declare or #define atomic functions for use in
265 * atomic.c: New file.
266 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
267 (dwarf_fileline, backtrace_dwarf_add): Likewise.
268 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
269 (backtrace_initialize): Likewise.
270 * fileline.c (fileline_initialize): Likewise.
271 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
272 * configure, config.h.in, Makefile.in: Rebuild.
274 2013-11-18 Jakub Jelinek <jakub@redhat.com>
276 * elf.c (SHN_UNDEF): Define.
277 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
278 with st_shndx == SHN_UNDEF. Add base_address to address fields.
279 (elf_add): Adjust caller.
281 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
283 2013-11-16 Ian Lance Taylor <iant@google.com>
285 * backtrace.h (backtrace_create_state): Correct comment about
288 2013-11-15 Ian Lance Taylor <iant@google.com>
290 * backtrace.h (backtrace_syminfo): Update comment and parameter
291 name to take any address, not just a PC value.
292 * elf.c (STT_OBJECT): Define.
293 (elf_nosyms): Rename parameter pc to addr.
294 (elf_symbol_search): Rename local variable pc to addr.
295 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
296 (elf_syminfo): Rename parameter pc to addr.
297 * btest.c (global): New global variable.
301 2013-10-17 Ian Lance Taylor <iant@google.com>
303 * elf.c (elf_add): Don't get the wrong offsets if a debug section
306 2013-10-15 David Malcolm <dmalcolm@redhat.com>
308 * configure.ac: Add --enable-host-shared, setting up
309 pre-existing PIC_FLAG variable within Makefile.am et al.
310 * configure: Regenerate.
312 2013-09-20 Alan Modra <amodra@gmail.com>
314 * configure: Regenerate.
316 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
318 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
320 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
322 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
323 dl_iterate_phdr callbacks.
325 2013-03-25 Ian Lance Taylor <iant@google.com>
327 * alloc.c: #include <sys/types.h>.
330 2013-01-31 Ian Lance Taylor <iant@google.com>
332 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
333 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
335 2013-01-25 Jakub Jelinek <jakub@redhat.com>
338 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
339 attribute was not seen.
341 2013-01-16 Ian Lance Taylor <iant@google.com>
343 * dwarf.c (struct unit): Add filename and abs_filename fields.
344 (build_address_map): Set new fields when reading unit.
345 (dwarf_lookup_pc): If we don't find an entry in the line table,
346 just return the main file name.
348 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
350 Update copyright years.
352 2013-01-01 Ian Lance Taylor <iant@google.com>
355 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
356 $(MULTIBUILDTOP)/../../gcc/include.
357 * Makefile.in: Rebuild.
359 2013-01-01 Ian Lance Taylor <iant@google.com>
362 * mmap.c (backtrace_alloc): Don't call sync functions if not
364 (backtrace_free): Likewise.
366 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
368 * mmapio.c: Define MAP_FAILED if not defined.
370 2012-12-11 Jakub Jelinek <jakub@redhat.com>
373 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
374 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
375 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
377 * Makefile.in: Regenerated.
378 * configure: Regenerated.
380 2012-12-07 Jakub Jelinek <jakub@redhat.com>
383 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
384 * Makefile.in: Regenerated.
386 2012-11-20 Ian Lance Taylor <iant@google.com>
388 * dwarf.c (read_attribute): Always clear val.
390 2012-11-13 Ian Lance Taylor <iant@google.com>
393 * configure.ac: Only add -Werror if building a target library.
394 * configure: Rebuild.
396 2012-11-12 Ian Lance Taylor <iant@google.com>
397 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
398 Gerald Pfeifer <gerald@pfeifer.com>
400 * configure.ac: Check for getexecname.
401 * fileline.c: #include <errno.h>. Define getexecname if not
403 (fileline_initialize): Try to find the executable in a few
405 * print.c (error_callback): Only print the filename if it came
406 from the backtrace state.
407 * configure, config.h.in: Rebuild.
409 2012-10-29 Ian Lance Taylor <iant@google.com>
411 * mmap.c (backtrace_vector_release): Correct last patch: add
414 2012-10-29 Ian Lance Taylor <iant@google.com>
416 * mmap.c (backtrace_vector_release): Make sure freed block is
417 aligned on 8-byte boundary.
419 2012-10-26 Ian Lance Taylor <iant@google.com>
422 * posix.c (backtrace_open): Add does_not_exist parameter.
423 * elf.c (phdr_callback): Do not warn if shared library could not
425 * fileline.c (fileline_initialize): Update calls to
427 * internal.h (backtrace_open): Update declaration.
429 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
432 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
433 * configure: Regenerate.
435 2012-10-24 Ian Lance Taylor <iant@google.com>
438 * configure.ac: Check whether -funwind-tables option works.
439 * configure: Rebuild.
441 2012-10-11 Ian Lance Taylor <iant@google.com>
443 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
444 * configure: Rebuild.
446 2012-10-10 Ian Lance Taylor <iant@google.com>
448 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
451 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
453 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
455 2012-10-09 Ian Lance Taylor <iant@google.com>
457 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
458 (backtrace_dwarf_add): Likewise.
460 2012-10-09 Ian Lance Taylor <iant@google.com>
462 Add support for tracing through shared libraries.
463 * configure.ac: Check for link.h and dl_iterate_phdr.
464 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
465 ELF macros before #defining them.
466 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
468 (struct elf_syminfo_data): Add next field.
469 (elf_initialize_syminfo): Initialize next field.
470 (elf_add_syminfo_data): New static function.
471 (elf_add): New static function, broken out of
472 backtrace_initialize. Call backtrace_dwarf_add instead of
473 backtrace_dwarf_initialize.
474 (struct phdr_data): Define.
475 (phdr_callback): New static function.
476 (backtrace_initialize): Call elf_add.
477 * dwarf.c (struct dwarf_data): Add next and base_address fields.
478 (add_unit_addr): Add base_address parameter. Change all callers.
479 (add_unit_ranges, build_address_map): Likewise.
480 (add_line): Add ddata parameter. Change all callers.
481 (read_line_program, add_function_range): Likewise.
482 (dwarf_lookup_pc): New static function, broken out of
484 (dwarf_fileline): Call dwarf_lookup_pc.
485 (build_dwarf_data): New static function.
486 (backtrace_dwarf_add): New function.
487 (backtrace_dwarf_initialize): Remove.
488 * internal.h (backtrace_dwarf_initialize): Don't declare.
489 (backtrace_dwarf_add): Declare.
490 * configure, config.h.in: Rebuild.
492 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
494 * btest.c (f23): Avoid uninitialized variable warning.
496 2012-10-04 Ian Lance Taylor <iant@google.com>
498 * dwarf.c: If the system header files do not declare strnlen,
499 provide our own version.
501 2012-10-03 Ian Lance Taylor <iant@google.com>
503 * dwarf.c (read_uleb128): Fix overflow test.
504 (read_sleb128): Likewise.
505 (build_address_map): Don't change unit_buf.start.
507 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
510 * configure.ac (EXTRA_FLAGS): New.
511 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
512 * configure, Makefile.in: Regenerate.
514 2012-09-29 Ian Lance Taylor <iant@google.com>
517 * fileline.c (fileline_initialize): Pass errnum as -1 when
518 reporting that we could not read executable information after a
521 2012-09-27 Ian Lance Taylor <iant@google.com>
524 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
525 * Makefile.am: Add dependencies for all objects.
526 * configure, aclocal.m4, Makefile.in: Rebuild.
528 2012-09-27 Ian Lance Taylor <iant@google.com>
531 * elf.c (backtrace_initialize): Set *fileln_fn, not
534 2012-09-19 Ian Lance Taylor <iant@google.com>
536 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
538 * configure: Rebuild.
540 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
541 Ian Lance Taylor <iant@google.com>
543 * configure.ac (GCC_HEADER_STDINT): Invoke.
544 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
545 * btest.c: Don't include <stdint.h>.
547 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
549 2012-09-18 Ian Lance Taylor <iant@google.com>
552 * Makefile.am (AM_CPPFLAGS): Define.
553 (AM_CFLAGS): Remove -I options.
554 * Makefile.in: Rebuild.
556 2012-09-18 Ian Lance Taylor <iant@google.com>
558 * posix.c (O_BINARY): Define if not defined.
559 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
560 HAVE_FCNTL is defined.
561 * configure.ac: Test for the fcntl function.
562 * configure, config.h.in: Rebuild.
564 2012-09-18 Ian Lance Taylor <iant@google.com>
566 * btest.c (test1, test2, test3, test4): Add the unused attribute.
568 2012-09-18 Ian Lance Taylor <iant@google.com>
570 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
572 2012-09-18 Ian Lance Taylor <iant@google.com>
574 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
575 * mmapio.c: Don't define _GNU_SOURCE.
576 * configure, config.h.in: Rebuild.
578 2012-09-18 Ian Lance Taylor <iant@google.com>
580 * configure.ac: Check whether strnlen is declared.
581 * dwarf.c: Declare strnlen if not declared.
582 * configure, config.h.in: Rebuild.
584 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * fileline.c: Include <stdlib.h>.
589 2012-09-17 Ian Lance Taylor <iant@google.com>
592 * nounwind.c (backtrace_full): Rename from backtrace. Add state
595 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
598 * nounwind.c (backtrace_simple): Add state parameter.
600 2012-09-17 Ian Lance Taylor <iant@google.com>
603 * unknown.c (unknown_fileline): Add state parameter, remove
604 fileline_data parameter, name error_callback parameter.
605 (backtrace_initialize): Add state parameter.
607 2012-09-17 Ian Lance Taylor <iant@google.com>
609 * Initial implementation.
611 Copyright (C) 2012-2017 Free Software Foundation, Inc.
613 Copying and distribution of this file, with or without modification,
614 are permitted in any medium without royalty provided the copyright
615 notice and this notice are preserved.