Update ChangeLog and version files for release
[official-gcc.git] / libbacktrace / ChangeLog
blobece9eac2c056d1411cb5687fe7875e91b7327ebb
1 2016-04-27  Release Manager
3         * GCC 6.1.0 released.
5 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
7         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
8         avoid possible crash.
9         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
10         missing debug info anymore.
12 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
14         * mmap.c (MAP_FAILED): Define if not defined.
16 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
18         Update copyright years.
20 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
22         * configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists
23         * configure: Regenerate
25 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
27         PR 68115/libfortran
28         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
29         * configure: Regenerate.
30         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
31         to void.
33 2015-09-17  Ian Lance Taylor  <iant@google.com>
35         * posix.c (backtrace_open): Cast second argument of open() to int.
37 2015-09-11  Ian Lance Taylor  <iant@google.com>
39         * Makefile.am (backtrace.lo): Depend on internal.h.
40         (sort.lo, stest.lo): Add explicit dependencies.
41         * Makefile.in: Rebuild.
43 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
45         * backtrace.c: #include <sys/types.h>.
47 2015-09-08  Ian Lance Taylor  <iant@google.com>
49         PR other/67457
50         * backtrace.c: #include "internal.h".
51         (struct backtrace_data): Add can_alloc field.
52         (unwind): If can_alloc is false, don't try to get file/line
53         information.
54         (backtrace_full): Set can_alloc field in bdata.
55         * alloc.c (backtrace_alloc): Don't call error_callback if it is
56         NULL.
57         * mmap.c (backtrace_alloc): Likewise.
58         * internal.h: Update comments for backtrace_alloc and
59         backtrace_free.
61 2015-09-08  Ian Lance Taylor  <iant@google.com>
63         PR other/67457
64         * mmap.c (backtrace_alloc): Correct test for mmap failure.
66 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
68         * configure.ac: For spu-*-* targets, set have_fcntl to no.
69         * configure: Regenerate.
71 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
73         * configure.ac: Remove [disable-shared] argument to LT_INIT.
74         Remove setting PIC_FLAG when building as target library.
75         * configure: Regenerate.
77 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
79         * configure.ac: Only compile with -fPIC if the target
80         supports it.
81         * configure: Regenerate.
83 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
85         * configure.ac: Set have_mmap to no on spu-*-* targets.
86         * configure: Regenerate.
88 2015-08-13  Ian Lance Taylor  <iant@google.com>
90         * dwarf.c (read_function_entry): Add vec_inlined parameter.
91         Change all callers.
93 2015-06-11  Martin Sebor  <msebor@redhat.com>
95         PR sanitizer/65479
96         * dwarf.c (struct line): Add new field idx.
97         (line_compare): Use it.
98         (add_line): Set it.
99         (read_line_info): Reset it.
101 2015-05-29  Tristan Gingold  <gingold@adacore.com>
103         * pecoff.c: New file.
104         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
105         * Makefile.in: Regenerate.
106         * filetype.awk: Detect pecoff.
107         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
108         Add pecoff.
109         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
110         true.
111         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
112         * configure: Regenerate.
113         * pecoff.c: New file.
115 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
117         * Makefile.in: Regenerated with automake-1.11.6.
118         * aclocal.m4: Likewise.
119         * configure: Likewise.
121 2015-01-24  Matthias Klose  <doko@ubuntu.com>
123         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
124         * configure: Regenerate.
126 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
128         Update copyright years.
130 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
132         PR bootstrap/63784
133         * configure: Regenerated.
135 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
137         * ChangeLog.jit: New.
139 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
141         PR target/63610
142         * configure: Regenerate.
144 2014-10-23  Ian Lance Taylor  <iant@google.com>
146         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
147         Fix to return void *.
149 2014-05-08  Ian Lance Taylor  <iant@google.com>
151         * mmap.c (backtrace_free): If freeing a large aligned block of
152         memory, call munmap rather than holding onto it.
153         (backtrace_vector_grow): When growing a vector, double the number
154         of pages requested.  When releasing the old version of a grown
155         vector, pass the correct size to backtrace_free.
157 2014-03-07  Ian Lance Taylor  <iant@google.com>
159         * sort.c (backtrace_qsort): Use middle element as pivot.
161 2014-03-06  Ian Lance Taylor  <iant@google.com>
163         * sort.c: New file.
164         * stest.c: New file.
165         * internal.h (backtrace_qsort): Declare.
166         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
167         (read_line_info, read_function_entry): Likewise.
168         (read_function_info, build_dwarf_data): Likewise.
169         * elf.c (elf_initialize_syminfo): Likewise.
170         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
171         (stest_SOURCES, stest_LDADD): Define.
172         (check_PROGRAMS): Add stest.
174 2014-02-07  Misty De Meo  <misty@brew.sh>
176         PR target/58710
177         * configure.ac: Use AC_LINK_IFELSE in check for
178         _Unwind_GetIPInfo.
179         * configure: Regenerate.
181 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
183         Update copyright years
185 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
187         * elf.c (ET_DYN): Undefine and define again.
188         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
189         return early -1 without closing the descriptor.
190         (struct phdr_data): Add exe_descriptor.
191         (phdr_callback): If pd->exe_descriptor is not -1, for very first
192         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
193         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
194         call to elf_add.
195         (backtrace_initialize): Adjust call to elf_add.  If it returns
196         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
198 2013-12-05  Ian Lance Taylor  <iant@google.com>
200         * alloc.c (backtrace_vector_finish): Add error_callback and data
201         parameters.  Call backtrace_vector_release.  Return address base.
202         * mmap.c (backtrace_vector_finish): Add error_callback and data
203         parameters.  Return address base.
204         * dwarf.c (read_function_info): Get new address base from
205         backtrace_vector_finish.
206         * internal.h (backtrace_vector_finish): Update declaration.
208 2013-11-27  Ian Lance Taylor  <iant@google.com>
210         * dwarf.c (find_address_ranges): New static function, broken out
211         of build_address_map.
212         (build_address_map): Call it.
213         * btest.c (check): Check for missing filename or function, rather
214         than crashing.
215         (f3): Check that enough frames were returned.
217 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
219         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
220         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
221         last argument.
222         * btest.c (struct symdata): Add size field.
223         (callback_three): Add symsize argument.  Copy it to the data->size
224         field.
225         (f23): Set symdata.size to 0.
226         (test5): Likewise.  If sizeof (int) > 1, lookup address of
227         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
228         values.
230         * atomic.c: Include sys/types.h.
232 2013-11-18  Ian Lance Taylor  <iant@google.com>
234         * configure.ac: Check for support of __atomic extensions.
235         * internal.h: Declare or #define atomic functions for use in
236         backtrace code.
237         * atomic.c: New file.
238         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
239         (dwarf_fileline, backtrace_dwarf_add): Likewise.
240         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
241         (backtrace_initialize): Likewise.
242         * fileline.c (fileline_initialize): Likewise.
243         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
244         * configure, config.h.in, Makefile.in: Rebuild.
246 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
248         * elf.c (SHN_UNDEF): Define.
249         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
250         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
251         (elf_add): Adjust caller.
253         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
255 2013-11-16  Ian Lance Taylor  <iant@google.com>
257         * backtrace.h (backtrace_create_state): Correct comment about
258         threading.
260 2013-11-15  Ian Lance Taylor  <iant@google.com>
262         * backtrace.h (backtrace_syminfo): Update comment and parameter
263         name to take any address, not just a PC value.
264         * elf.c (STT_OBJECT): Define.
265         (elf_nosyms): Rename parameter pc to addr.
266         (elf_symbol_search): Rename local variable pc to addr.
267         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
268         (elf_syminfo): Rename parameter pc to addr.
269         * btest.c (global): New global variable.
270         (test5): New test.
271         (main): Call test5.
273 2013-10-17  Ian Lance Taylor  <iant@google.com>
275         * elf.c (elf_add): Don't get the wrong offsets if a debug section
276         is missing.
278 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
280         * configure.ac: Add --enable-host-shared, setting up
281         pre-existing PIC_FLAG variable within Makefile.am et al.
282         * configure: Regenerate.
284 2013-09-20  Alan Modra  <amodra@gmail.com>
286         * configure: Regenerate.
288 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
290         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
292 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
294         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
295         dl_iterate_phdr callbacks.
297 2013-03-25  Ian Lance Taylor  <iant@google.com>
299         * alloc.c: #include <sys/types.h>.
300         * mmap.c: Likewise.
302 2013-01-31  Ian Lance Taylor  <iant@google.com>
304         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
305         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
307 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
309         PR other/56076
310         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
311         attribute was not seen.
313 2013-01-16  Ian Lance Taylor  <iant@google.com>
315         * dwarf.c (struct unit): Add filename and abs_filename fields.
316         (build_address_map): Set new fields when reading unit.
317         (dwarf_lookup_pc): If we don't find an entry in the line table,
318         just return the main file name.
320 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
322         Update copyright years.
324 2013-01-01  Ian Lance Taylor  <iant@google.com>
326         PR bootstrap/54834
327         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
328         $(MULTIBUILDTOP)/../../gcc/include.
329         * Makefile.in: Rebuild.
331 2013-01-01  Ian Lance Taylor  <iant@google.com>
333         PR other/55536
334         * mmap.c (backtrace_alloc): Don't call sync functions if not
335         threaded.
336         (backtrace_free): Likewise.
338 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
340         * mmapio.c: Define MAP_FAILED if not defined.
342 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
344         PR bootstrap/54926
345         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
346         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
347         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
348         accepts it.
349         * Makefile.in: Regenerated.
350         * configure: Regenerated.
352 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
354         PR bootstrap/54926
355         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
356         * Makefile.in: Regenerated.
358 2012-11-20  Ian Lance Taylor  <iant@google.com>
360         * dwarf.c (read_attribute): Always clear val.
362 2012-11-13  Ian Lance Taylor  <iant@google.com>
364         PR other/55312
365         * configure.ac: Only add -Werror if building a target library.
366         * configure: Rebuild.
368 2012-11-12  Ian Lance Taylor  <iant@google.com>
369             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
370             Gerald Pfeifer  <gerald@pfeifer.com>
372         * configure.ac: Check for getexecname.
373         * fileline.c: #include <errno.h>.  Define getexecname if not
374         available.
375         (fileline_initialize): Try to find the executable in a few
376         different ways.
377         * print.c (error_callback): Only print the filename if it came
378         from the backtrace state.
379         * configure, config.h.in: Rebuild.
381 2012-10-29  Ian Lance Taylor  <iant@google.com>
383         * mmap.c (backtrace_vector_release): Correct last patch: add
384         aligned, not size.
386 2012-10-29  Ian Lance Taylor  <iant@google.com>
388         * mmap.c (backtrace_vector_release): Make sure freed block is
389         aligned on 8-byte boundary.
391 2012-10-26  Ian Lance Taylor  <iant@google.com>
393         PR other/55087
394         * posix.c (backtrace_open): Add does_not_exist parameter.
395         * elf.c (phdr_callback): Do not warn if shared library could not
396         be opened.
397         * fileline.c (fileline_initialize): Update calls to
398         backtrace_open.
399         * internal.h (backtrace_open): Update declaration.
401 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
403         PR target/55061
404         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
405         * configure: Regenerate.
407 2012-10-24  Ian Lance Taylor  <iant@google.com>
409         PR target/55061
410         * configure.ac: Check whether -funwind-tables option works.
411         * configure: Rebuild.
413 2012-10-11  Ian Lance Taylor  <iant@google.com>
415         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
416         * configure: Rebuild.
418 2012-10-10  Ian Lance Taylor  <iant@google.com>
420         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
421         lower case.
423 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
425         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
427 2012-10-09  Ian Lance Taylor  <iant@google.com>
429         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
430         (backtrace_dwarf_add): Likewise.
432 2012-10-09  Ian Lance Taylor  <iant@google.com>
434         Add support for tracing through shared libraries.
435         * configure.ac: Check for link.h and dl_iterate_phdr.
436         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
437         ELF macros before #defining them.
438         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
439         dl_iterate_phdr.
440         (struct elf_syminfo_data): Add next field.
441         (elf_initialize_syminfo): Initialize next field.
442         (elf_add_syminfo_data): New static function.
443         (elf_add): New static function, broken out of
444         backtrace_initialize.  Call backtrace_dwarf_add instead of
445         backtrace_dwarf_initialize.
446         (struct phdr_data): Define.
447         (phdr_callback): New static function.
448         (backtrace_initialize): Call elf_add.
449         * dwarf.c (struct dwarf_data): Add next and base_address fields.
450         (add_unit_addr): Add base_address parameter.  Change all callers.
451         (add_unit_ranges, build_address_map): Likewise.
452         (add_line): Add ddata parameter.  Change all callers.
453         (read_line_program, add_function_range): Likewise.
454         (dwarf_lookup_pc): New static function, broken out of
455         dwarf_fileline.
456         (dwarf_fileline): Call dwarf_lookup_pc.
457         (build_dwarf_data): New static function.
458         (backtrace_dwarf_add): New function.
459         (backtrace_dwarf_initialize): Remove.
460         * internal.h (backtrace_dwarf_initialize): Don't declare.
461         (backtrace_dwarf_add): Declare.
462         * configure, config.h.in: Rebuild.
464 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
466         * btest.c (f23): Avoid uninitialized variable warning.
468 2012-10-04  Ian Lance Taylor  <iant@google.com>
470         * dwarf.c: If the system header files do not declare strnlen,
471         provide our own version.
473 2012-10-03  Ian Lance Taylor  <iant@google.com>
475         * dwarf.c (read_uleb128): Fix overflow test.
476         (read_sleb128): Likewise.
477         (build_address_map): Don't change unit_buf.start.
479 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
481         PR other/54761
482         * configure.ac (EXTRA_FLAGS): New.
483         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
484         * configure, Makefile.in: Regenerate.
486 2012-09-29  Ian Lance Taylor  <iant@google.com>
488         PR other/54749
489         * fileline.c (fileline_initialize): Pass errnum as -1 when
490         reporting that we could not read executable information after a
491         previous failure.
493 2012-09-27  Ian Lance Taylor  <iant@google.com>
495         PR bootstrap/54732
496         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
497         * Makefile.am: Add dependencies for all objects.
498         * configure, aclocal.m4, Makefile.in: Rebuild.
500 2012-09-27  Ian Lance Taylor  <iant@google.com>
502         PR other/54726
503         * elf.c (backtrace_initialize): Set *fileln_fn, not
504         state->fileln_fn.
506 2012-09-19  Ian Lance Taylor  <iant@google.com>
508         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
509         as a target library.
510         * configure: Rebuild.
512 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
513             Ian Lance Taylor  <iant@google.com>
515         * configure.ac (GCC_HEADER_STDINT): Invoke.
516         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
517         * btest.c: Don't include <stdint.h>.
518         * dwarf.c: Likewise.
519         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
521 2012-09-18  Ian Lance Taylor  <iant@google.com>
523         PR bootstrap/54623
524         * Makefile.am (AM_CPPFLAGS): Define.
525         (AM_CFLAGS): Remove -I options.
526         * Makefile.in: Rebuild.
528 2012-09-18  Ian Lance Taylor  <iant@google.com>
530         * posix.c (O_BINARY): Define if not defined.
531         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
532         HAVE_FCNTL is defined.
533         * configure.ac: Test for the fcntl function.
534         * configure, config.h.in: Rebuild.
536 2012-09-18  Ian Lance Taylor  <iant@google.com>
538         * btest.c (test1, test2, test3, test4): Add the unused attribute.
540 2012-09-18  Ian Lance Taylor  <iant@google.com>
542         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
544 2012-09-18  Ian Lance Taylor  <iant@google.com>
546         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
547         * mmapio.c: Don't define _GNU_SOURCE.
548         * configure, config.h.in: Rebuild.
550 2012-09-18  Ian Lance Taylor  <iant@google.com>
552         * configure.ac: Check whether strnlen is declared.
553         * dwarf.c: Declare strnlen if not declared.
554         * configure, config.h.in: Rebuild.
556 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
558         * fileline.c: Include <stdlib.h>.
559         * mmap.c: Likewise.
561 2012-09-17  Ian Lance Taylor  <iant@google.com>
563         PR bootstrap/54611
564         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
565         parameter.
567 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
569         PR bootstrap/54611
570         * nounwind.c (backtrace_simple): Add state parameter.
572 2012-09-17  Ian Lance Taylor  <iant@google.com>
574         PR bootstrap/54609
575         * unknown.c (unknown_fileline): Add state parameter, remove
576         fileline_data parameter, name error_callback parameter.
577         (backtrace_initialize): Add state parameter.
579 2012-09-17  Ian Lance Taylor  <iant@google.com>
581         * Initial implementation.
583 Copyright (C) 2012-2016 Free Software Foundation, Inc.
585 Copying and distribution of this file, with or without modification,
586 are permitted in any medium without royalty provided the copyright
587 notice and this notice are preserved.