HSA: reduce dump output w/o -details flag
[official-gcc.git] / libbacktrace / ChangeLog
blobb38e2fee45ca66317380f436a9c0a5867ff1e898
1 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
3         * mmap.c (MAP_FAILED): Define if not defined.
5 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
7         Update copyright years.
9 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
11         * configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists
12         * configure: Regenerate
14 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
16         PR 68115/libfortran
17         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
18         * configure: Regenerate.
19         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
20         to void.
22 2015-09-17  Ian Lance Taylor  <iant@google.com>
24         * posix.c (backtrace_open): Cast second argument of open() to int.
26 2015-09-11  Ian Lance Taylor  <iant@google.com>
28         * Makefile.am (backtrace.lo): Depend on internal.h.
29         (sort.lo, stest.lo): Add explicit dependencies.
30         * Makefile.in: Rebuild.
32 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
34         * backtrace.c: #include <sys/types.h>.
36 2015-09-08  Ian Lance Taylor  <iant@google.com>
38         PR other/67457
39         * backtrace.c: #include "internal.h".
40         (struct backtrace_data): Add can_alloc field.
41         (unwind): If can_alloc is false, don't try to get file/line
42         information.
43         (backtrace_full): Set can_alloc field in bdata.
44         * alloc.c (backtrace_alloc): Don't call error_callback if it is
45         NULL.
46         * mmap.c (backtrace_alloc): Likewise.
47         * internal.h: Update comments for backtrace_alloc and
48         backtrace_free.
50 2015-09-08  Ian Lance Taylor  <iant@google.com>
52         PR other/67457
53         * mmap.c (backtrace_alloc): Correct test for mmap failure.
55 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
57         * configure.ac: For spu-*-* targets, set have_fcntl to no.
58         * configure: Regenerate.
60 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
62         * configure.ac: Remove [disable-shared] argument to LT_INIT.
63         Remove setting PIC_FLAG when building as target library.
64         * configure: Regenerate.
66 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
68         * configure.ac: Only compile with -fPIC if the target
69         supports it.
70         * configure: Regenerate.
72 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
74         * configure.ac: Set have_mmap to no on spu-*-* targets.
75         * configure: Regenerate.
77 2015-08-13  Ian Lance Taylor  <iant@google.com>
79         * dwarf.c (read_function_entry): Add vec_inlined parameter.
80         Change all callers.
82 2015-06-11  Martin Sebor  <msebor@redhat.com>
84         PR sanitizer/65479
85         * dwarf.c (struct line): Add new field idx.
86         (line_compare): Use it.
87         (add_line): Set it.
88         (read_line_info): Reset it.
90 2015-05-29  Tristan Gingold  <gingold@adacore.com>
92         * pecoff.c: New file.
93         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
94         * Makefile.in: Regenerate.
95         * filetype.awk: Detect pecoff.
96         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
97         Add pecoff.
98         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
99         true.
100         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
101         * configure: Regenerate.
102         * pecoff.c: New file.
104 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
106         * Makefile.in: Regenerated with automake-1.11.6.
107         * aclocal.m4: Likewise.
108         * configure: Likewise.
110 2015-01-24  Matthias Klose  <doko@ubuntu.com>
112         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
113         * configure: Regenerate.
115 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
117         Update copyright years.
119 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
121         PR bootstrap/63784
122         * configure: Regenerated.
124 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
126         * ChangeLog.jit: New.
128 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
130         PR target/63610
131         * configure: Regenerate.
133 2014-10-23  Ian Lance Taylor  <iant@google.com>
135         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
136         Fix to return void *.
138 2014-05-08  Ian Lance Taylor  <iant@google.com>
140         * mmap.c (backtrace_free): If freeing a large aligned block of
141         memory, call munmap rather than holding onto it.
142         (backtrace_vector_grow): When growing a vector, double the number
143         of pages requested.  When releasing the old version of a grown
144         vector, pass the correct size to backtrace_free.
146 2014-03-07  Ian Lance Taylor  <iant@google.com>
148         * sort.c (backtrace_qsort): Use middle element as pivot.
150 2014-03-06  Ian Lance Taylor  <iant@google.com>
152         * sort.c: New file.
153         * stest.c: New file.
154         * internal.h (backtrace_qsort): Declare.
155         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
156         (read_line_info, read_function_entry): Likewise.
157         (read_function_info, build_dwarf_data): Likewise.
158         * elf.c (elf_initialize_syminfo): Likewise.
159         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
160         (stest_SOURCES, stest_LDADD): Define.
161         (check_PROGRAMS): Add stest.
163 2014-02-07  Misty De Meo  <misty@brew.sh>
165         PR target/58710
166         * configure.ac: Use AC_LINK_IFELSE in check for
167         _Unwind_GetIPInfo.
168         * configure: Regenerate.
170 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
172         Update copyright years
174 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
176         * elf.c (ET_DYN): Undefine and define again.
177         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
178         return early -1 without closing the descriptor.
179         (struct phdr_data): Add exe_descriptor.
180         (phdr_callback): If pd->exe_descriptor is not -1, for very first
181         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
182         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
183         call to elf_add.
184         (backtrace_initialize): Adjust call to elf_add.  If it returns
185         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
187 2013-12-05  Ian Lance Taylor  <iant@google.com>
189         * alloc.c (backtrace_vector_finish): Add error_callback and data
190         parameters.  Call backtrace_vector_release.  Return address base.
191         * mmap.c (backtrace_vector_finish): Add error_callback and data
192         parameters.  Return address base.
193         * dwarf.c (read_function_info): Get new address base from
194         backtrace_vector_finish.
195         * internal.h (backtrace_vector_finish): Update declaration.
197 2013-11-27  Ian Lance Taylor  <iant@google.com>
199         * dwarf.c (find_address_ranges): New static function, broken out
200         of build_address_map.
201         (build_address_map): Call it.
202         * btest.c (check): Check for missing filename or function, rather
203         than crashing.
204         (f3): Check that enough frames were returned.
206 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
208         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
209         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
210         last argument.
211         * btest.c (struct symdata): Add size field.
212         (callback_three): Add symsize argument.  Copy it to the data->size
213         field.
214         (f23): Set symdata.size to 0.
215         (test5): Likewise.  If sizeof (int) > 1, lookup address of
216         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
217         values.
219         * atomic.c: Include sys/types.h.
221 2013-11-18  Ian Lance Taylor  <iant@google.com>
223         * configure.ac: Check for support of __atomic extensions.
224         * internal.h: Declare or #define atomic functions for use in
225         backtrace code.
226         * atomic.c: New file.
227         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
228         (dwarf_fileline, backtrace_dwarf_add): Likewise.
229         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
230         (backtrace_initialize): Likewise.
231         * fileline.c (fileline_initialize): Likewise.
232         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
233         * configure, config.h.in, Makefile.in: Rebuild.
235 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
237         * elf.c (SHN_UNDEF): Define.
238         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
239         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
240         (elf_add): Adjust caller.
242         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
244 2013-11-16  Ian Lance Taylor  <iant@google.com>
246         * backtrace.h (backtrace_create_state): Correct comment about
247         threading.
249 2013-11-15  Ian Lance Taylor  <iant@google.com>
251         * backtrace.h (backtrace_syminfo): Update comment and parameter
252         name to take any address, not just a PC value.
253         * elf.c (STT_OBJECT): Define.
254         (elf_nosyms): Rename parameter pc to addr.
255         (elf_symbol_search): Rename local variable pc to addr.
256         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
257         (elf_syminfo): Rename parameter pc to addr.
258         * btest.c (global): New global variable.
259         (test5): New test.
260         (main): Call test5.
262 2013-10-17  Ian Lance Taylor  <iant@google.com>
264         * elf.c (elf_add): Don't get the wrong offsets if a debug section
265         is missing.
267 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
269         * configure.ac: Add --enable-host-shared, setting up
270         pre-existing PIC_FLAG variable within Makefile.am et al.
271         * configure: Regenerate.
273 2013-09-20  Alan Modra  <amodra@gmail.com>
275         * configure: Regenerate.
277 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
279         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
281 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
283         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
284         dl_iterate_phdr callbacks.
286 2013-03-25  Ian Lance Taylor  <iant@google.com>
288         * alloc.c: #include <sys/types.h>.
289         * mmap.c: Likewise.
291 2013-01-31  Ian Lance Taylor  <iant@google.com>
293         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
294         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
296 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
298         PR other/56076
299         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
300         attribute was not seen.
302 2013-01-16  Ian Lance Taylor  <iant@google.com>
304         * dwarf.c (struct unit): Add filename and abs_filename fields.
305         (build_address_map): Set new fields when reading unit.
306         (dwarf_lookup_pc): If we don't find an entry in the line table,
307         just return the main file name.
309 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
311         Update copyright years.
313 2013-01-01  Ian Lance Taylor  <iant@google.com>
315         PR bootstrap/54834
316         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
317         $(MULTIBUILDTOP)/../../gcc/include.
318         * Makefile.in: Rebuild.
320 2013-01-01  Ian Lance Taylor  <iant@google.com>
322         PR other/55536
323         * mmap.c (backtrace_alloc): Don't call sync functions if not
324         threaded.
325         (backtrace_free): Likewise.
327 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
329         * mmapio.c: Define MAP_FAILED if not defined.
331 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
333         PR bootstrap/54926
334         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
335         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
336         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
337         accepts it.
338         * Makefile.in: Regenerated.
339         * configure: Regenerated.
341 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
343         PR bootstrap/54926
344         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
345         * Makefile.in: Regenerated.
347 2012-11-20  Ian Lance Taylor  <iant@google.com>
349         * dwarf.c (read_attribute): Always clear val.
351 2012-11-13  Ian Lance Taylor  <iant@google.com>
353         PR other/55312
354         * configure.ac: Only add -Werror if building a target library.
355         * configure: Rebuild.
357 2012-11-12  Ian Lance Taylor  <iant@google.com>
358             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
359             Gerald Pfeifer  <gerald@pfeifer.com>
361         * configure.ac: Check for getexecname.
362         * fileline.c: #include <errno.h>.  Define getexecname if not
363         available.
364         (fileline_initialize): Try to find the executable in a few
365         different ways.
366         * print.c (error_callback): Only print the filename if it came
367         from the backtrace state.
368         * configure, config.h.in: Rebuild.
370 2012-10-29  Ian Lance Taylor  <iant@google.com>
372         * mmap.c (backtrace_vector_release): Correct last patch: add
373         aligned, not size.
375 2012-10-29  Ian Lance Taylor  <iant@google.com>
377         * mmap.c (backtrace_vector_release): Make sure freed block is
378         aligned on 8-byte boundary.
380 2012-10-26  Ian Lance Taylor  <iant@google.com>
382         PR other/55087
383         * posix.c (backtrace_open): Add does_not_exist parameter.
384         * elf.c (phdr_callback): Do not warn if shared library could not
385         be opened.
386         * fileline.c (fileline_initialize): Update calls to
387         backtrace_open.
388         * internal.h (backtrace_open): Update declaration.
390 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
392         PR target/55061
393         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
394         * configure: Regenerate.
396 2012-10-24  Ian Lance Taylor  <iant@google.com>
398         PR target/55061
399         * configure.ac: Check whether -funwind-tables option works.
400         * configure: Rebuild.
402 2012-10-11  Ian Lance Taylor  <iant@google.com>
404         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
405         * configure: Rebuild.
407 2012-10-10  Ian Lance Taylor  <iant@google.com>
409         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
410         lower case.
412 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
414         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
416 2012-10-09  Ian Lance Taylor  <iant@google.com>
418         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
419         (backtrace_dwarf_add): Likewise.
421 2012-10-09  Ian Lance Taylor  <iant@google.com>
423         Add support for tracing through shared libraries.
424         * configure.ac: Check for link.h and dl_iterate_phdr.
425         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
426         ELF macros before #defining them.
427         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
428         dl_iterate_phdr.
429         (struct elf_syminfo_data): Add next field.
430         (elf_initialize_syminfo): Initialize next field.
431         (elf_add_syminfo_data): New static function.
432         (elf_add): New static function, broken out of
433         backtrace_initialize.  Call backtrace_dwarf_add instead of
434         backtrace_dwarf_initialize.
435         (struct phdr_data): Define.
436         (phdr_callback): New static function.
437         (backtrace_initialize): Call elf_add.
438         * dwarf.c (struct dwarf_data): Add next and base_address fields.
439         (add_unit_addr): Add base_address parameter.  Change all callers.
440         (add_unit_ranges, build_address_map): Likewise.
441         (add_line): Add ddata parameter.  Change all callers.
442         (read_line_program, add_function_range): Likewise.
443         (dwarf_lookup_pc): New static function, broken out of
444         dwarf_fileline.
445         (dwarf_fileline): Call dwarf_lookup_pc.
446         (build_dwarf_data): New static function.
447         (backtrace_dwarf_add): New function.
448         (backtrace_dwarf_initialize): Remove.
449         * internal.h (backtrace_dwarf_initialize): Don't declare.
450         (backtrace_dwarf_add): Declare.
451         * configure, config.h.in: Rebuild.
453 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
455         * btest.c (f23): Avoid uninitialized variable warning.
457 2012-10-04  Ian Lance Taylor  <iant@google.com>
459         * dwarf.c: If the system header files do not declare strnlen,
460         provide our own version.
462 2012-10-03  Ian Lance Taylor  <iant@google.com>
464         * dwarf.c (read_uleb128): Fix overflow test.
465         (read_sleb128): Likewise.
466         (build_address_map): Don't change unit_buf.start.
468 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
470         PR other/54761
471         * configure.ac (EXTRA_FLAGS): New.
472         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
473         * configure, Makefile.in: Regenerate.
475 2012-09-29  Ian Lance Taylor  <iant@google.com>
477         PR other/54749
478         * fileline.c (fileline_initialize): Pass errnum as -1 when
479         reporting that we could not read executable information after a
480         previous failure.
482 2012-09-27  Ian Lance Taylor  <iant@google.com>
484         PR bootstrap/54732
485         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
486         * Makefile.am: Add dependencies for all objects.
487         * configure, aclocal.m4, Makefile.in: Rebuild.
489 2012-09-27  Ian Lance Taylor  <iant@google.com>
491         PR other/54726
492         * elf.c (backtrace_initialize): Set *fileln_fn, not
493         state->fileln_fn.
495 2012-09-19  Ian Lance Taylor  <iant@google.com>
497         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
498         as a target library.
499         * configure: Rebuild.
501 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
502             Ian Lance Taylor  <iant@google.com>
504         * configure.ac (GCC_HEADER_STDINT): Invoke.
505         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
506         * btest.c: Don't include <stdint.h>.
507         * dwarf.c: Likewise.
508         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
510 2012-09-18  Ian Lance Taylor  <iant@google.com>
512         PR bootstrap/54623
513         * Makefile.am (AM_CPPFLAGS): Define.
514         (AM_CFLAGS): Remove -I options.
515         * Makefile.in: Rebuild.
517 2012-09-18  Ian Lance Taylor  <iant@google.com>
519         * posix.c (O_BINARY): Define if not defined.
520         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
521         HAVE_FCNTL is defined.
522         * configure.ac: Test for the fcntl function.
523         * configure, config.h.in: Rebuild.
525 2012-09-18  Ian Lance Taylor  <iant@google.com>
527         * btest.c (test1, test2, test3, test4): Add the unused attribute.
529 2012-09-18  Ian Lance Taylor  <iant@google.com>
531         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
533 2012-09-18  Ian Lance Taylor  <iant@google.com>
535         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
536         * mmapio.c: Don't define _GNU_SOURCE.
537         * configure, config.h.in: Rebuild.
539 2012-09-18  Ian Lance Taylor  <iant@google.com>
541         * configure.ac: Check whether strnlen is declared.
542         * dwarf.c: Declare strnlen if not declared.
543         * configure, config.h.in: Rebuild.
545 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
547         * fileline.c: Include <stdlib.h>.
548         * mmap.c: Likewise.
550 2012-09-17  Ian Lance Taylor  <iant@google.com>
552         PR bootstrap/54611
553         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
554         parameter.
556 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
558         PR bootstrap/54611
559         * nounwind.c (backtrace_simple): Add state parameter.
561 2012-09-17  Ian Lance Taylor  <iant@google.com>
563         PR bootstrap/54609
564         * unknown.c (unknown_fileline): Add state parameter, remove
565         fileline_data parameter, name error_callback parameter.
566         (backtrace_initialize): Add state parameter.
568 2012-09-17  Ian Lance Taylor  <iant@google.com>
570         * Initial implementation.
572 Copyright (C) 2012-2016 Free Software Foundation, Inc.
574 Copying and distribution of this file, with or without modification,
575 are permitted in any medium without royalty provided the copyright
576 notice and this notice are preserved.