Update ChangeLog and version files for release
[official-gcc.git] / libbacktrace / ChangeLog
blob4f11bc35cd9d21dd5e7543184dd3fe641626b738
1 2017-10-10  Release Manager
3         * GCC 5.5.0 released.
5 2016-06-03  Release Manager
7         * GCC 5.4.0 released.
9 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
11         PR target/71161
12         * elf.c (phdr_callback) [__i386__]: Add
13         __attribute__((__force_align_arg_pointer__)).
15 2015-12-04  Release Manager
17         * GCC 5.3.0 released.
19 2015-07-16  Release Manager
21         * GCC 5.2.0 released.
23 2015-04-22  Release Manager
25         * GCC 5.1.0 released.
27 2015-01-24  Matthias Klose  <doko@ubuntu.com>
29         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
30         * configure: Regenerate.
32 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
34         Update copyright years.
36 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
38         PR bootstrap/63784
39         * configure: Regenerated.
41 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
43         * ChangeLog.jit: New.
45 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
47         PR target/63610
48         * configure: Regenerate.
50 2014-10-23  Ian Lance Taylor  <iant@google.com>
52         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
53         Fix to return void *.
55 2014-05-08  Ian Lance Taylor  <iant@google.com>
57         * mmap.c (backtrace_free): If freeing a large aligned block of
58         memory, call munmap rather than holding onto it.
59         (backtrace_vector_grow): When growing a vector, double the number
60         of pages requested.  When releasing the old version of a grown
61         vector, pass the correct size to backtrace_free.
63 2014-03-07  Ian Lance Taylor  <iant@google.com>
65         * sort.c (backtrace_qsort): Use middle element as pivot.
67 2014-03-06  Ian Lance Taylor  <iant@google.com>
69         * sort.c: New file.
70         * stest.c: New file.
71         * internal.h (backtrace_qsort): Declare.
72         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
73         (read_line_info, read_function_entry): Likewise.
74         (read_function_info, build_dwarf_data): Likewise.
75         * elf.c (elf_initialize_syminfo): Likewise.
76         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
77         (stest_SOURCES, stest_LDADD): Define.
78         (check_PROGRAMS): Add stest.
80 2014-02-07  Misty De Meo  <misty@brew.sh>
82         PR target/58710
83         * configure.ac: Use AC_LINK_IFELSE in check for
84         _Unwind_GetIPInfo.
85         * configure: Regenerate.
87 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
89         Update copyright years
91 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
93         * elf.c (ET_DYN): Undefine and define again.
94         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
95         return early -1 without closing the descriptor.
96         (struct phdr_data): Add exe_descriptor.
97         (phdr_callback): If pd->exe_descriptor is not -1, for very first
98         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
99         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
100         call to elf_add.
101         (backtrace_initialize): Adjust call to elf_add.  If it returns
102         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
104 2013-12-05  Ian Lance Taylor  <iant@google.com>
106         * alloc.c (backtrace_vector_finish): Add error_callback and data
107         parameters.  Call backtrace_vector_release.  Return address base.
108         * mmap.c (backtrace_vector_finish): Add error_callback and data
109         parameters.  Return address base.
110         * dwarf.c (read_function_info): Get new address base from
111         backtrace_vector_finish.
112         * internal.h (backtrace_vector_finish): Update declaration.
114 2013-11-27  Ian Lance Taylor  <iant@google.com>
116         * dwarf.c (find_address_ranges): New static function, broken out
117         of build_address_map.
118         (build_address_map): Call it.
119         * btest.c (check): Check for missing filename or function, rather
120         than crashing.
121         (f3): Check that enough frames were returned.
123 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
125         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
126         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
127         last argument.
128         * btest.c (struct symdata): Add size field.
129         (callback_three): Add symsize argument.  Copy it to the data->size
130         field.
131         (f23): Set symdata.size to 0.
132         (test5): Likewise.  If sizeof (int) > 1, lookup address of
133         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
134         values.
136         * atomic.c: Include sys/types.h.
138 2013-11-18  Ian Lance Taylor  <iant@google.com>
140         * configure.ac: Check for support of __atomic extensions.
141         * internal.h: Declare or #define atomic functions for use in
142         backtrace code.
143         * atomic.c: New file.
144         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
145         (dwarf_fileline, backtrace_dwarf_add): Likewise.
146         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
147         (backtrace_initialize): Likewise.
148         * fileline.c (fileline_initialize): Likewise.
149         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
150         * configure, config.h.in, Makefile.in: Rebuild.
152 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
154         * elf.c (SHN_UNDEF): Define.
155         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
156         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
157         (elf_add): Adjust caller.
159         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
161 2013-11-16  Ian Lance Taylor  <iant@google.com>
163         * backtrace.h (backtrace_create_state): Correct comment about
164         threading.
166 2013-11-15  Ian Lance Taylor  <iant@google.com>
168         * backtrace.h (backtrace_syminfo): Update comment and parameter
169         name to take any address, not just a PC value.
170         * elf.c (STT_OBJECT): Define.
171         (elf_nosyms): Rename parameter pc to addr.
172         (elf_symbol_search): Rename local variable pc to addr.
173         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
174         (elf_syminfo): Rename parameter pc to addr.
175         * btest.c (global): New global variable.
176         (test5): New test.
177         (main): Call test5.
179 2013-10-17  Ian Lance Taylor  <iant@google.com>
181         * elf.c (elf_add): Don't get the wrong offsets if a debug section
182         is missing.
184 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
186         * configure.ac: Add --enable-host-shared, setting up
187         pre-existing PIC_FLAG variable within Makefile.am et al.
188         * configure: Regenerate.
190 2013-09-20  Alan Modra  <amodra@gmail.com>
192         * configure: Regenerate.
194 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
196         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
198 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
200         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
201         dl_iterate_phdr callbacks.
203 2013-03-25  Ian Lance Taylor  <iant@google.com>
205         * alloc.c: #include <sys/types.h>.
206         * mmap.c: Likewise.
208 2013-01-31  Ian Lance Taylor  <iant@google.com>
210         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
211         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
213 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
215         PR other/56076
216         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
217         attribute was not seen.
219 2013-01-16  Ian Lance Taylor  <iant@google.com>
221         * dwarf.c (struct unit): Add filename and abs_filename fields.
222         (build_address_map): Set new fields when reading unit.
223         (dwarf_lookup_pc): If we don't find an entry in the line table,
224         just return the main file name.
226 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
228         Update copyright years.
230 2013-01-01  Ian Lance Taylor  <iant@google.com>
232         PR bootstrap/54834
233         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
234         $(MULTIBUILDTOP)/../../gcc/include.
235         * Makefile.in: Rebuild.
237 2013-01-01  Ian Lance Taylor  <iant@google.com>
239         PR other/55536
240         * mmap.c (backtrace_alloc): Don't call sync functions if not
241         threaded.
242         (backtrace_free): Likewise.
244 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
246         * mmapio.c: Define MAP_FAILED if not defined.
248 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
250         PR bootstrap/54926
251         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
252         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
253         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
254         accepts it.
255         * Makefile.in: Regenerated.
256         * configure: Regenerated.
258 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
260         PR bootstrap/54926
261         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
262         * Makefile.in: Regenerated.
264 2012-11-20  Ian Lance Taylor  <iant@google.com>
266         * dwarf.c (read_attribute): Always clear val.
268 2012-11-13  Ian Lance Taylor  <iant@google.com>
270         PR other/55312
271         * configure.ac: Only add -Werror if building a target library.
272         * configure: Rebuild.
274 2012-11-12  Ian Lance Taylor  <iant@google.com>
275             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
276             Gerald Pfeifer  <gerald@pfeifer.com>
278         * configure.ac: Check for getexecname.
279         * fileline.c: #include <errno.h>.  Define getexecname if not
280         available.
281         (fileline_initialize): Try to find the executable in a few
282         different ways.
283         * print.c (error_callback): Only print the filename if it came
284         from the backtrace state.
285         * configure, config.h.in: Rebuild.
287 2012-10-29  Ian Lance Taylor  <iant@google.com>
289         * mmap.c (backtrace_vector_release): Correct last patch: add
290         aligned, not size.
292 2012-10-29  Ian Lance Taylor  <iant@google.com>
294         * mmap.c (backtrace_vector_release): Make sure freed block is
295         aligned on 8-byte boundary.
297 2012-10-26  Ian Lance Taylor  <iant@google.com>
299         PR other/55087
300         * posix.c (backtrace_open): Add does_not_exist parameter.
301         * elf.c (phdr_callback): Do not warn if shared library could not
302         be opened.
303         * fileline.c (fileline_initialize): Update calls to
304         backtrace_open.
305         * internal.h (backtrace_open): Update declaration.
307 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
309         PR target/55061
310         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
311         * configure: Regenerate.
313 2012-10-24  Ian Lance Taylor  <iant@google.com>
315         PR target/55061
316         * configure.ac: Check whether -funwind-tables option works.
317         * configure: Rebuild.
319 2012-10-11  Ian Lance Taylor  <iant@google.com>
321         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
322         * configure: Rebuild.
324 2012-10-10  Ian Lance Taylor  <iant@google.com>
326         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
327         lower case.
329 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
331         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
333 2012-10-09  Ian Lance Taylor  <iant@google.com>
335         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
336         (backtrace_dwarf_add): Likewise.
338 2012-10-09  Ian Lance Taylor  <iant@google.com>
340         Add support for tracing through shared libraries.
341         * configure.ac: Check for link.h and dl_iterate_phdr.
342         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
343         ELF macros before #defining them.
344         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
345         dl_iterate_phdr.
346         (struct elf_syminfo_data): Add next field.
347         (elf_initialize_syminfo): Initialize next field.
348         (elf_add_syminfo_data): New static function.
349         (elf_add): New static function, broken out of
350         backtrace_initialize.  Call backtrace_dwarf_add instead of
351         backtrace_dwarf_initialize.
352         (struct phdr_data): Define.
353         (phdr_callback): New static function.
354         (backtrace_initialize): Call elf_add.
355         * dwarf.c (struct dwarf_data): Add next and base_address fields.
356         (add_unit_addr): Add base_address parameter.  Change all callers.
357         (add_unit_ranges, build_address_map): Likewise.
358         (add_line): Add ddata parameter.  Change all callers.
359         (read_line_program, add_function_range): Likewise.
360         (dwarf_lookup_pc): New static function, broken out of
361         dwarf_fileline.
362         (dwarf_fileline): Call dwarf_lookup_pc.
363         (build_dwarf_data): New static function.
364         (backtrace_dwarf_add): New function.
365         (backtrace_dwarf_initialize): Remove.
366         * internal.h (backtrace_dwarf_initialize): Don't declare.
367         (backtrace_dwarf_add): Declare.
368         * configure, config.h.in: Rebuild.
370 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
372         * btest.c (f23): Avoid uninitialized variable warning.
374 2012-10-04  Ian Lance Taylor  <iant@google.com>
376         * dwarf.c: If the system header files do not declare strnlen,
377         provide our own version.
379 2012-10-03  Ian Lance Taylor  <iant@google.com>
381         * dwarf.c (read_uleb128): Fix overflow test.
382         (read_sleb128): Likewise.
383         (build_address_map): Don't change unit_buf.start.
385 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
387         PR other/54761
388         * configure.ac (EXTRA_FLAGS): New.
389         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
390         * configure, Makefile.in: Regenerate.
392 2012-09-29  Ian Lance Taylor  <iant@google.com>
394         PR other/54749
395         * fileline.c (fileline_initialize): Pass errnum as -1 when
396         reporting that we could not read executable information after a
397         previous failure.
399 2012-09-27  Ian Lance Taylor  <iant@google.com>
401         PR bootstrap/54732
402         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
403         * Makefile.am: Add dependencies for all objects.
404         * configure, aclocal.m4, Makefile.in: Rebuild.
406 2012-09-27  Ian Lance Taylor  <iant@google.com>
408         PR other/54726
409         * elf.c (backtrace_initialize): Set *fileln_fn, not
410         state->fileln_fn.
412 2012-09-19  Ian Lance Taylor  <iant@google.com>
414         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
415         as a target library.
416         * configure: Rebuild.
418 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
419             Ian Lance Taylor  <iant@google.com>
421         * configure.ac (GCC_HEADER_STDINT): Invoke.
422         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
423         * btest.c: Don't include <stdint.h>.
424         * dwarf.c: Likewise.
425         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
427 2012-09-18  Ian Lance Taylor  <iant@google.com>
429         PR bootstrap/54623
430         * Makefile.am (AM_CPPFLAGS): Define.
431         (AM_CFLAGS): Remove -I options.
432         * Makefile.in: Rebuild.
434 2012-09-18  Ian Lance Taylor  <iant@google.com>
436         * posix.c (O_BINARY): Define if not defined.
437         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
438         HAVE_FCNTL is defined.
439         * configure.ac: Test for the fcntl function.
440         * configure, config.h.in: Rebuild.
442 2012-09-18  Ian Lance Taylor  <iant@google.com>
444         * btest.c (test1, test2, test3, test4): Add the unused attribute.
446 2012-09-18  Ian Lance Taylor  <iant@google.com>
448         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
450 2012-09-18  Ian Lance Taylor  <iant@google.com>
452         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
453         * mmapio.c: Don't define _GNU_SOURCE.
454         * configure, config.h.in: Rebuild.
456 2012-09-18  Ian Lance Taylor  <iant@google.com>
458         * configure.ac: Check whether strnlen is declared.
459         * dwarf.c: Declare strnlen if not declared.
460         * configure, config.h.in: Rebuild.
462 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
464         * fileline.c: Include <stdlib.h>.
465         * mmap.c: Likewise.
467 2012-09-17  Ian Lance Taylor  <iant@google.com>
469         PR bootstrap/54611
470         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
471         parameter.
473 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
475         PR bootstrap/54611
476         * nounwind.c (backtrace_simple): Add state parameter.
478 2012-09-17  Ian Lance Taylor  <iant@google.com>
480         PR bootstrap/54609
481         * unknown.c (unknown_fileline): Add state parameter, remove
482         fileline_data parameter, name error_callback parameter.
483         (backtrace_initialize): Add state parameter.
485 2012-09-17  Ian Lance Taylor  <iant@google.com>
487         * Initial implementation.