Update ChangeLog and version files for release
[official-gcc.git] / libbacktrace / ChangeLog
blob2d8810bd83f77c97ebef8753af8b7c02e314c426
1 2018-01-25  Release Manager
3         * GCC 7.3.0 released.
5 2017-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
7         * elf.c: Fix typo in the last commit, SFH_COMPRESSED vs SHF_COMPRESSED.
9 2017-10-10  Ian Lance Taylor  <iant@golang.org>
11         PR go/80914
12         * elf.c (SHF_COMPRESSED): Define.
13         (elf_add): Ignore debug sections with SHF_COMPRESSED set.
15 2017-08-14  Release Manager
17         * GCC 7.2.0 released.
19 2017-05-02  Release Manager
21         * GCC 7.1.0 released.
23 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
25         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
26         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
28 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
30         Update copyright years.
32 2016-11-15  Matthias Klose  <doko@ubuntu.com>
34         * configure: Regenerate.
36 2016-09-11  Carlos Liam  <carlos@aarzee.me>
38         * all: Remove meaningless trailing whitespace.
40 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
42         PR target/71161
43         * elf.c (phdr_callback) [__i386__]: Add
44         __attribute__((__force_align_arg_pointer__)).
46 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
48         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
49         avoid possible crash.
50         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
51         missing debug info anymore.
53 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
55         * mmap.c (MAP_FAILED): Define if not defined.
57 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
59         Update copyright years.
61 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
63         * configure.ac: Specify that DJGPP do not have mmap
64         even when sys/mman.h exists.
65         * configure: Regenerate
67 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
69         PR libgfortran/68115
70         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
71         * configure: Regenerate.
72         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
73         to void.
75 2015-09-17  Ian Lance Taylor  <iant@google.com>
77         * posix.c (backtrace_open): Cast second argument of open() to int.
79 2015-09-11  Ian Lance Taylor  <iant@google.com>
81         * Makefile.am (backtrace.lo): Depend on internal.h.
82         (sort.lo, stest.lo): Add explicit dependencies.
83         * Makefile.in: Rebuild.
85 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
87         * backtrace.c: #include <sys/types.h>.
89 2015-09-08  Ian Lance Taylor  <iant@google.com>
91         PR other/67457
92         * backtrace.c: #include "internal.h".
93         (struct backtrace_data): Add can_alloc field.
94         (unwind): If can_alloc is false, don't try to get file/line
95         information.
96         (backtrace_full): Set can_alloc field in bdata.
97         * alloc.c (backtrace_alloc): Don't call error_callback if it is
98         NULL.
99         * mmap.c (backtrace_alloc): Likewise.
100         * internal.h: Update comments for backtrace_alloc and
101         backtrace_free.
103 2015-09-08  Ian Lance Taylor  <iant@google.com>
105         PR other/67457
106         * mmap.c (backtrace_alloc): Correct test for mmap failure.
108 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
110         * configure.ac: For spu-*-* targets, set have_fcntl to no.
111         * configure: Regenerate.
113 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
115         * configure.ac: Remove [disable-shared] argument to LT_INIT.
116         Remove setting PIC_FLAG when building as target library.
117         * configure: Regenerate.
119 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
121         * configure.ac: Only compile with -fPIC if the target
122         supports it.
123         * configure: Regenerate.
125 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
127         * configure.ac: Set have_mmap to no on spu-*-* targets.
128         * configure: Regenerate.
130 2015-08-13  Ian Lance Taylor  <iant@google.com>
132         * dwarf.c (read_function_entry): Add vec_inlined parameter.
133         Change all callers.
135 2015-06-11  Martin Sebor  <msebor@redhat.com>
137         PR sanitizer/65479
138         * dwarf.c (struct line): Add new field idx.
139         (line_compare): Use it.
140         (add_line): Set it.
141         (read_line_info): Reset it.
143 2015-05-29  Tristan Gingold  <gingold@adacore.com>
145         * pecoff.c: New file.
146         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
147         * Makefile.in: Regenerate.
148         * filetype.awk: Detect pecoff.
149         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
150         Add pecoff.
151         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
152         true.
153         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
154         * configure: Regenerate.
155         * pecoff.c: New file.
157 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
159         * Makefile.in: Regenerated with automake-1.11.6.
160         * aclocal.m4: Likewise.
161         * configure: Likewise.
163 2015-01-24  Matthias Klose  <doko@ubuntu.com>
165         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
166         * configure: Regenerate.
168 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
170         Update copyright years.
172 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
174         PR bootstrap/63784
175         * configure: Regenerated.
177 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
179         * ChangeLog.jit: New.
181 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
183         PR target/63610
184         * configure: Regenerate.
186 2014-10-23  Ian Lance Taylor  <iant@google.com>
188         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
189         Fix to return void *.
191 2014-05-08  Ian Lance Taylor  <iant@google.com>
193         * mmap.c (backtrace_free): If freeing a large aligned block of
194         memory, call munmap rather than holding onto it.
195         (backtrace_vector_grow): When growing a vector, double the number
196         of pages requested.  When releasing the old version of a grown
197         vector, pass the correct size to backtrace_free.
199 2014-03-07  Ian Lance Taylor  <iant@google.com>
201         * sort.c (backtrace_qsort): Use middle element as pivot.
203 2014-03-06  Ian Lance Taylor  <iant@google.com>
205         * sort.c: New file.
206         * stest.c: New file.
207         * internal.h (backtrace_qsort): Declare.
208         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
209         (read_line_info, read_function_entry): Likewise.
210         (read_function_info, build_dwarf_data): Likewise.
211         * elf.c (elf_initialize_syminfo): Likewise.
212         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
213         (stest_SOURCES, stest_LDADD): Define.
214         (check_PROGRAMS): Add stest.
216 2014-02-07  Misty De Meo  <misty@brew.sh>
218         PR target/58710
219         * configure.ac: Use AC_LINK_IFELSE in check for
220         _Unwind_GetIPInfo.
221         * configure: Regenerate.
223 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
225         Update copyright years
227 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
229         * elf.c (ET_DYN): Undefine and define again.
230         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
231         return early -1 without closing the descriptor.
232         (struct phdr_data): Add exe_descriptor.
233         (phdr_callback): If pd->exe_descriptor is not -1, for very first
234         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
235         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
236         call to elf_add.
237         (backtrace_initialize): Adjust call to elf_add.  If it returns
238         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
240 2013-12-05  Ian Lance Taylor  <iant@google.com>
242         * alloc.c (backtrace_vector_finish): Add error_callback and data
243         parameters.  Call backtrace_vector_release.  Return address base.
244         * mmap.c (backtrace_vector_finish): Add error_callback and data
245         parameters.  Return address base.
246         * dwarf.c (read_function_info): Get new address base from
247         backtrace_vector_finish.
248         * internal.h (backtrace_vector_finish): Update declaration.
250 2013-11-27  Ian Lance Taylor  <iant@google.com>
252         * dwarf.c (find_address_ranges): New static function, broken out
253         of build_address_map.
254         (build_address_map): Call it.
255         * btest.c (check): Check for missing filename or function, rather
256         than crashing.
257         (f3): Check that enough frames were returned.
259 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
261         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
262         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
263         last argument.
264         * btest.c (struct symdata): Add size field.
265         (callback_three): Add symsize argument.  Copy it to the data->size
266         field.
267         (f23): Set symdata.size to 0.
268         (test5): Likewise.  If sizeof (int) > 1, lookup address of
269         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
270         values.
272         * atomic.c: Include sys/types.h.
274 2013-11-18  Ian Lance Taylor  <iant@google.com>
276         * configure.ac: Check for support of __atomic extensions.
277         * internal.h: Declare or #define atomic functions for use in
278         backtrace code.
279         * atomic.c: New file.
280         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
281         (dwarf_fileline, backtrace_dwarf_add): Likewise.
282         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
283         (backtrace_initialize): Likewise.
284         * fileline.c (fileline_initialize): Likewise.
285         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
286         * configure, config.h.in, Makefile.in: Rebuild.
288 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
290         * elf.c (SHN_UNDEF): Define.
291         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
292         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
293         (elf_add): Adjust caller.
295         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
297 2013-11-16  Ian Lance Taylor  <iant@google.com>
299         * backtrace.h (backtrace_create_state): Correct comment about
300         threading.
302 2013-11-15  Ian Lance Taylor  <iant@google.com>
304         * backtrace.h (backtrace_syminfo): Update comment and parameter
305         name to take any address, not just a PC value.
306         * elf.c (STT_OBJECT): Define.
307         (elf_nosyms): Rename parameter pc to addr.
308         (elf_symbol_search): Rename local variable pc to addr.
309         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
310         (elf_syminfo): Rename parameter pc to addr.
311         * btest.c (global): New global variable.
312         (test5): New test.
313         (main): Call test5.
315 2013-10-17  Ian Lance Taylor  <iant@google.com>
317         * elf.c (elf_add): Don't get the wrong offsets if a debug section
318         is missing.
320 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
322         * configure.ac: Add --enable-host-shared, setting up
323         pre-existing PIC_FLAG variable within Makefile.am et al.
324         * configure: Regenerate.
326 2013-09-20  Alan Modra  <amodra@gmail.com>
328         * configure: Regenerate.
330 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
332         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
334 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
336         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
337         dl_iterate_phdr callbacks.
339 2013-03-25  Ian Lance Taylor  <iant@google.com>
341         * alloc.c: #include <sys/types.h>.
342         * mmap.c: Likewise.
344 2013-01-31  Ian Lance Taylor  <iant@google.com>
346         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
347         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
349 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
351         PR other/56076
352         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
353         attribute was not seen.
355 2013-01-16  Ian Lance Taylor  <iant@google.com>
357         * dwarf.c (struct unit): Add filename and abs_filename fields.
358         (build_address_map): Set new fields when reading unit.
359         (dwarf_lookup_pc): If we don't find an entry in the line table,
360         just return the main file name.
362 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
364         Update copyright years.
366 2013-01-01  Ian Lance Taylor  <iant@google.com>
368         PR bootstrap/54834
369         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
370         $(MULTIBUILDTOP)/../../gcc/include.
371         * Makefile.in: Rebuild.
373 2013-01-01  Ian Lance Taylor  <iant@google.com>
375         PR other/55536
376         * mmap.c (backtrace_alloc): Don't call sync functions if not
377         threaded.
378         (backtrace_free): Likewise.
380 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
382         * mmapio.c: Define MAP_FAILED if not defined.
384 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
386         PR bootstrap/54926
387         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
388         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
389         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
390         accepts it.
391         * Makefile.in: Regenerated.
392         * configure: Regenerated.
394 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
396         PR bootstrap/54926
397         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
398         * Makefile.in: Regenerated.
400 2012-11-20  Ian Lance Taylor  <iant@google.com>
402         * dwarf.c (read_attribute): Always clear val.
404 2012-11-13  Ian Lance Taylor  <iant@google.com>
406         PR other/55312
407         * configure.ac: Only add -Werror if building a target library.
408         * configure: Rebuild.
410 2012-11-12  Ian Lance Taylor  <iant@google.com>
411             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
412             Gerald Pfeifer  <gerald@pfeifer.com>
414         * configure.ac: Check for getexecname.
415         * fileline.c: #include <errno.h>.  Define getexecname if not
416         available.
417         (fileline_initialize): Try to find the executable in a few
418         different ways.
419         * print.c (error_callback): Only print the filename if it came
420         from the backtrace state.
421         * configure, config.h.in: Rebuild.
423 2012-10-29  Ian Lance Taylor  <iant@google.com>
425         * mmap.c (backtrace_vector_release): Correct last patch: add
426         aligned, not size.
428 2012-10-29  Ian Lance Taylor  <iant@google.com>
430         * mmap.c (backtrace_vector_release): Make sure freed block is
431         aligned on 8-byte boundary.
433 2012-10-26  Ian Lance Taylor  <iant@google.com>
435         PR other/55087
436         * posix.c (backtrace_open): Add does_not_exist parameter.
437         * elf.c (phdr_callback): Do not warn if shared library could not
438         be opened.
439         * fileline.c (fileline_initialize): Update calls to
440         backtrace_open.
441         * internal.h (backtrace_open): Update declaration.
443 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
445         PR target/55061
446         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
447         * configure: Regenerate.
449 2012-10-24  Ian Lance Taylor  <iant@google.com>
451         PR target/55061
452         * configure.ac: Check whether -funwind-tables option works.
453         * configure: Rebuild.
455 2012-10-11  Ian Lance Taylor  <iant@google.com>
457         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
458         * configure: Rebuild.
460 2012-10-10  Ian Lance Taylor  <iant@google.com>
462         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
463         lower case.
465 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
467         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
469 2012-10-09  Ian Lance Taylor  <iant@google.com>
471         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
472         (backtrace_dwarf_add): Likewise.
474 2012-10-09  Ian Lance Taylor  <iant@google.com>
476         Add support for tracing through shared libraries.
477         * configure.ac: Check for link.h and dl_iterate_phdr.
478         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
479         ELF macros before #defining them.
480         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
481         dl_iterate_phdr.
482         (struct elf_syminfo_data): Add next field.
483         (elf_initialize_syminfo): Initialize next field.
484         (elf_add_syminfo_data): New static function.
485         (elf_add): New static function, broken out of
486         backtrace_initialize.  Call backtrace_dwarf_add instead of
487         backtrace_dwarf_initialize.
488         (struct phdr_data): Define.
489         (phdr_callback): New static function.
490         (backtrace_initialize): Call elf_add.
491         * dwarf.c (struct dwarf_data): Add next and base_address fields.
492         (add_unit_addr): Add base_address parameter.  Change all callers.
493         (add_unit_ranges, build_address_map): Likewise.
494         (add_line): Add ddata parameter.  Change all callers.
495         (read_line_program, add_function_range): Likewise.
496         (dwarf_lookup_pc): New static function, broken out of
497         dwarf_fileline.
498         (dwarf_fileline): Call dwarf_lookup_pc.
499         (build_dwarf_data): New static function.
500         (backtrace_dwarf_add): New function.
501         (backtrace_dwarf_initialize): Remove.
502         * internal.h (backtrace_dwarf_initialize): Don't declare.
503         (backtrace_dwarf_add): Declare.
504         * configure, config.h.in: Rebuild.
506 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
508         * btest.c (f23): Avoid uninitialized variable warning.
510 2012-10-04  Ian Lance Taylor  <iant@google.com>
512         * dwarf.c: If the system header files do not declare strnlen,
513         provide our own version.
515 2012-10-03  Ian Lance Taylor  <iant@google.com>
517         * dwarf.c (read_uleb128): Fix overflow test.
518         (read_sleb128): Likewise.
519         (build_address_map): Don't change unit_buf.start.
521 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
523         PR other/54761
524         * configure.ac (EXTRA_FLAGS): New.
525         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
526         * configure, Makefile.in: Regenerate.
528 2012-09-29  Ian Lance Taylor  <iant@google.com>
530         PR other/54749
531         * fileline.c (fileline_initialize): Pass errnum as -1 when
532         reporting that we could not read executable information after a
533         previous failure.
535 2012-09-27  Ian Lance Taylor  <iant@google.com>
537         PR bootstrap/54732
538         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
539         * Makefile.am: Add dependencies for all objects.
540         * configure, aclocal.m4, Makefile.in: Rebuild.
542 2012-09-27  Ian Lance Taylor  <iant@google.com>
544         PR other/54726
545         * elf.c (backtrace_initialize): Set *fileln_fn, not
546         state->fileln_fn.
548 2012-09-19  Ian Lance Taylor  <iant@google.com>
550         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
551         as a target library.
552         * configure: Rebuild.
554 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
555             Ian Lance Taylor  <iant@google.com>
557         * configure.ac (GCC_HEADER_STDINT): Invoke.
558         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
559         * btest.c: Don't include <stdint.h>.
560         * dwarf.c: Likewise.
561         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
563 2012-09-18  Ian Lance Taylor  <iant@google.com>
565         PR bootstrap/54623
566         * Makefile.am (AM_CPPFLAGS): Define.
567         (AM_CFLAGS): Remove -I options.
568         * Makefile.in: Rebuild.
570 2012-09-18  Ian Lance Taylor  <iant@google.com>
572         * posix.c (O_BINARY): Define if not defined.
573         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
574         HAVE_FCNTL is defined.
575         * configure.ac: Test for the fcntl function.
576         * configure, config.h.in: Rebuild.
578 2012-09-18  Ian Lance Taylor  <iant@google.com>
580         * btest.c (test1, test2, test3, test4): Add the unused attribute.
582 2012-09-18  Ian Lance Taylor  <iant@google.com>
584         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
586 2012-09-18  Ian Lance Taylor  <iant@google.com>
588         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
589         * mmapio.c: Don't define _GNU_SOURCE.
590         * configure, config.h.in: Rebuild.
592 2012-09-18  Ian Lance Taylor  <iant@google.com>
594         * configure.ac: Check whether strnlen is declared.
595         * dwarf.c: Declare strnlen if not declared.
596         * configure, config.h.in: Rebuild.
598 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
600         * fileline.c: Include <stdlib.h>.
601         * mmap.c: Likewise.
603 2012-09-17  Ian Lance Taylor  <iant@google.com>
605         PR bootstrap/54611
606         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
607         parameter.
609 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
611         PR bootstrap/54611
612         * nounwind.c (backtrace_simple): Add state parameter.
614 2012-09-17  Ian Lance Taylor  <iant@google.com>
616         PR bootstrap/54609
617         * unknown.c (unknown_fileline): Add state parameter, remove
618         fileline_data parameter, name error_callback parameter.
619         (backtrace_initialize): Add state parameter.
621 2012-09-17  Ian Lance Taylor  <iant@google.com>
623         * Initial implementation.
625 Copyright (C) 2012-2017 Free Software Foundation, Inc.
627 Copying and distribution of this file, with or without modification,
628 are permitted in any medium without royalty provided the copyright
629 notice and this notice are preserved.