Daily bump.
[official-gcc.git] / libbacktrace / ChangeLog
blob90826b5b4d6bcb4062f475d7319be0b55216db45
1 2015-01-26  Matthias Klose  <doko@ubuntu.com>
3         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
4         * configure: Regenerate.
6 2014-10-30  Release Manager
8         * GCC 4.9.2 released.
10 2014-07-16  Release Manager
12         * GCC 4.9.1 released.
14 2014-05-08  Ian Lance Taylor  <iant@google.com>
16         Backport from mainline:
17         * mmap.c (backtrace_free): If freeing a large aligned block of
18         memory, call munmap rather than holding onto it.
19         (backtrace_vector_grow): When growing a vector, double the number
20         of pages requested.  When releasing the old version of a grown
21         vector, pass the correct size to backtrace_free.
23 2014-04-22  Release Manager
25         * GCC 4.9.0 released.
27 2014-03-07  Ian Lance Taylor  <iant@google.com>
29         * sort.c (backtrace_qsort): Use middle element as pivot.
31 2014-03-06  Ian Lance Taylor  <iant@google.com>
33         * sort.c: New file.
34         * stest.c: New file.
35         * internal.h (backtrace_qsort): Declare.
36         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
37         (read_line_info, read_function_entry): Likewise.
38         (read_function_info, build_dwarf_data): Likewise.
39         * elf.c (elf_initialize_syminfo): Likewise.
40         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
41         (stest_SOURCES, stest_LDADD): Define.
42         (check_PROGRAMS): Add stest.
44 2014-02-07  Misty De Meo  <misty@brew.sh>
46         PR target/58710
47         * configure.ac: Use AC_LINK_IFELSE in check for
48         _Unwind_GetIPInfo.
49         * configure: Regenerate.
51 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
53         Update copyright years
55 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
57         * elf.c (ET_DYN): Undefine and define again.
58         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
59         return early -1 without closing the descriptor.
60         (struct phdr_data): Add exe_descriptor.
61         (phdr_callback): If pd->exe_descriptor is not -1, for very first
62         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
63         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
64         call to elf_add.
65         (backtrace_initialize): Adjust call to elf_add.  If it returns
66         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
68 2013-12-05  Ian Lance Taylor  <iant@google.com>
70         * alloc.c (backtrace_vector_finish): Add error_callback and data
71         parameters.  Call backtrace_vector_release.  Return address base.
72         * mmap.c (backtrace_vector_finish): Add error_callback and data
73         parameters.  Return address base.
74         * dwarf.c (read_function_info): Get new address base from
75         backtrace_vector_finish.
76         * internal.h (backtrace_vector_finish): Update declaration.
78 2013-11-27  Ian Lance Taylor  <iant@google.com>
80         * dwarf.c (find_address_ranges): New static function, broken out
81         of build_address_map.
82         (build_address_map): Call it.
83         * btest.c (check): Check for missing filename or function, rather
84         than crashing.
85         (f3): Check that enough frames were returned.
87 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
89         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
90         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
91         last argument.
92         * btest.c (struct symdata): Add size field.
93         (callback_three): Add symsize argument.  Copy it to the data->size
94         field.
95         (f23): Set symdata.size to 0.
96         (test5): Likewise.  If sizeof (int) > 1, lookup address of
97         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
98         values.
100         * atomic.c: Include sys/types.h.
102 2013-11-18  Ian Lance Taylor  <iant@google.com>
104         * configure.ac: Check for support of __atomic extensions.
105         * internal.h: Declare or #define atomic functions for use in
106         backtrace code.
107         * atomic.c: New file.
108         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
109         (dwarf_fileline, backtrace_dwarf_add): Likewise.
110         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
111         (backtrace_initialize): Likewise.
112         * fileline.c (fileline_initialize): Likewise.
113         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
114         * configure, config.h.in, Makefile.in: Rebuild.
116 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
118         * elf.c (SHN_UNDEF): Define.
119         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
120         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
121         (elf_add): Adjust caller.
123         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
125 2013-11-16  Ian Lance Taylor  <iant@google.com>
127         * backtrace.h (backtrace_create_state): Correct comment about
128         threading.
130 2013-11-15  Ian Lance Taylor  <iant@google.com>
132         * backtrace.h (backtrace_syminfo): Update comment and parameter
133         name to take any address, not just a PC value.
134         * elf.c (STT_OBJECT): Define.
135         (elf_nosyms): Rename parameter pc to addr.
136         (elf_symbol_search): Rename local variable pc to addr.
137         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
138         (elf_syminfo): Rename parameter pc to addr.
139         * btest.c (global): New global variable.
140         (test5): New test.
141         (main): Call test5.
143 2013-10-17  Ian Lance Taylor  <iant@google.com>
145         * elf.c (elf_add): Don't get the wrong offsets if a debug section
146         is missing.
148 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
150         * configure.ac: Add --enable-host-shared, setting up
151         pre-existing PIC_FLAG variable within Makefile.am et al.
152         * configure: Regenerate.
154 2013-09-20  Alan Modra  <amodra@gmail.com>
156         * configure: Regenerate.
158 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
160         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
162 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
164         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
165         dl_iterate_phdr callbacks.
167 2013-03-25  Ian Lance Taylor  <iant@google.com>
169         * alloc.c: #include <sys/types.h>.
170         * mmap.c: Likewise.
172 2013-01-31  Ian Lance Taylor  <iant@google.com>
174         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
175         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
177 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
179         PR other/56076
180         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
181         attribute was not seen.
183 2013-01-16  Ian Lance Taylor  <iant@google.com>
185         * dwarf.c (struct unit): Add filename and abs_filename fields.
186         (build_address_map): Set new fields when reading unit.
187         (dwarf_lookup_pc): If we don't find an entry in the line table,
188         just return the main file name.
190 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
192         Update copyright years.
194 2013-01-01  Ian Lance Taylor  <iant@google.com>
196         PR bootstrap/54834
197         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
198         $(MULTIBUILDTOP)/../../gcc/include.
199         * Makefile.in: Rebuild.
201 2013-01-01  Ian Lance Taylor  <iant@google.com>
203         PR other/55536
204         * mmap.c (backtrace_alloc): Don't call sync functions if not
205         threaded.
206         (backtrace_free): Likewise.
208 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
210         * mmapio.c: Define MAP_FAILED if not defined.
212 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
214         PR bootstrap/54926
215         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
216         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
217         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
218         accepts it.
219         * Makefile.in: Regenerated.
220         * configure: Regenerated.
222 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
224         PR bootstrap/54926
225         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
226         * Makefile.in: Regenerated.
228 2012-11-20  Ian Lance Taylor  <iant@google.com>
230         * dwarf.c (read_attribute): Always clear val.
232 2012-11-13  Ian Lance Taylor  <iant@google.com>
234         PR other/55312
235         * configure.ac: Only add -Werror if building a target library.
236         * configure: Rebuild.
238 2012-11-12  Ian Lance Taylor  <iant@google.com>
239             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
240             Gerald Pfeifer  <gerald@pfeifer.com>
242         * configure.ac: Check for getexecname.
243         * fileline.c: #include <errno.h>.  Define getexecname if not
244         available.
245         (fileline_initialize): Try to find the executable in a few
246         different ways.
247         * print.c (error_callback): Only print the filename if it came
248         from the backtrace state.
249         * configure, config.h.in: Rebuild.
251 2012-10-29  Ian Lance Taylor  <iant@google.com>
253         * mmap.c (backtrace_vector_release): Correct last patch: add
254         aligned, not size.
256 2012-10-29  Ian Lance Taylor  <iant@google.com>
258         * mmap.c (backtrace_vector_release): Make sure freed block is
259         aligned on 8-byte boundary.
261 2012-10-26  Ian Lance Taylor  <iant@google.com>
263         PR other/55087
264         * posix.c (backtrace_open): Add does_not_exist parameter.
265         * elf.c (phdr_callback): Do not warn if shared library could not
266         be opened.
267         * fileline.c (fileline_initialize): Update calls to
268         backtrace_open.
269         * internal.h (backtrace_open): Update declaration.
271 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
273         PR target/55061
274         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
275         * configure: Regenerate.
277 2012-10-24  Ian Lance Taylor  <iant@google.com>
279         PR target/55061
280         * configure.ac: Check whether -funwind-tables option works.
281         * configure: Rebuild.
283 2012-10-11  Ian Lance Taylor  <iant@google.com>
285         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
286         * configure: Rebuild.
288 2012-10-10  Ian Lance Taylor  <iant@google.com>
290         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
291         lower case.
293 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
295         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
297 2012-10-09  Ian Lance Taylor  <iant@google.com>
299         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
300         (backtrace_dwarf_add): Likewise.
302 2012-10-09  Ian Lance Taylor  <iant@google.com>
304         Add support for tracing through shared libraries.
305         * configure.ac: Check for link.h and dl_iterate_phdr.
306         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
307         ELF macros before #defining them.
308         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
309         dl_iterate_phdr.
310         (struct elf_syminfo_data): Add next field.
311         (elf_initialize_syminfo): Initialize next field.
312         (elf_add_syminfo_data): New static function.
313         (elf_add): New static function, broken out of
314         backtrace_initialize.  Call backtrace_dwarf_add instead of
315         backtrace_dwarf_initialize.
316         (struct phdr_data): Define.
317         (phdr_callback): New static function.
318         (backtrace_initialize): Call elf_add.
319         * dwarf.c (struct dwarf_data): Add next and base_address fields.
320         (add_unit_addr): Add base_address parameter.  Change all callers.
321         (add_unit_ranges, build_address_map): Likewise.
322         (add_line): Add ddata parameter.  Change all callers.
323         (read_line_program, add_function_range): Likewise.
324         (dwarf_lookup_pc): New static function, broken out of
325         dwarf_fileline.
326         (dwarf_fileline): Call dwarf_lookup_pc.
327         (build_dwarf_data): New static function.
328         (backtrace_dwarf_add): New function.
329         (backtrace_dwarf_initialize): Remove.
330         * internal.h (backtrace_dwarf_initialize): Don't declare.
331         (backtrace_dwarf_add): Declare.
332         * configure, config.h.in: Rebuild.
334 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
336         * btest.c (f23): Avoid uninitialized variable warning.
338 2012-10-04  Ian Lance Taylor  <iant@google.com>
340         * dwarf.c: If the system header files do not declare strnlen,
341         provide our own version.
343 2012-10-03  Ian Lance Taylor  <iant@google.com>
345         * dwarf.c (read_uleb128): Fix overflow test.
346         (read_sleb128): Likewise.
347         (build_address_map): Don't change unit_buf.start.
349 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
351         PR other/54761
352         * configure.ac (EXTRA_FLAGS): New.
353         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
354         * configure, Makefile.in: Regenerate.
356 2012-09-29  Ian Lance Taylor  <iant@google.com>
358         PR other/54749
359         * fileline.c (fileline_initialize): Pass errnum as -1 when
360         reporting that we could not read executable information after a
361         previous failure.
363 2012-09-27  Ian Lance Taylor  <iant@google.com>
365         PR bootstrap/54732
366         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
367         * Makefile.am: Add dependencies for all objects.
368         * configure, aclocal.m4, Makefile.in: Rebuild.
370 2012-09-27  Ian Lance Taylor  <iant@google.com>
372         PR other/54726
373         * elf.c (backtrace_initialize): Set *fileln_fn, not
374         state->fileln_fn.
376 2012-09-19  Ian Lance Taylor  <iant@google.com>
378         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
379         as a target library.
380         * configure: Rebuild.
382 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
383             Ian Lance Taylor  <iant@google.com>
385         * configure.ac (GCC_HEADER_STDINT): Invoke.
386         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
387         * btest.c: Don't include <stdint.h>.
388         * dwarf.c: Likewise.
389         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
391 2012-09-18  Ian Lance Taylor  <iant@google.com>
393         PR bootstrap/54623
394         * Makefile.am (AM_CPPFLAGS): Define.
395         (AM_CFLAGS): Remove -I options.
396         * Makefile.in: Rebuild.
398 2012-09-18  Ian Lance Taylor  <iant@google.com>
400         * posix.c (O_BINARY): Define if not defined.
401         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
402         HAVE_FCNTL is defined.
403         * configure.ac: Test for the fcntl function.
404         * configure, config.h.in: Rebuild.
406 2012-09-18  Ian Lance Taylor  <iant@google.com>
408         * btest.c (test1, test2, test3, test4): Add the unused attribute.
410 2012-09-18  Ian Lance Taylor  <iant@google.com>
412         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
414 2012-09-18  Ian Lance Taylor  <iant@google.com>
416         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
417         * mmapio.c: Don't define _GNU_SOURCE.
418         * configure, config.h.in: Rebuild.
420 2012-09-18  Ian Lance Taylor  <iant@google.com>
422         * configure.ac: Check whether strnlen is declared.
423         * dwarf.c: Declare strnlen if not declared.
424         * configure, config.h.in: Rebuild.
426 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
428         * fileline.c: Include <stdlib.h>.
429         * mmap.c: Likewise.
431 2012-09-17  Ian Lance Taylor  <iant@google.com>
433         PR bootstrap/54611
434         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
435         parameter.
437 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
439         PR bootstrap/54611
440         * nounwind.c (backtrace_simple): Add state parameter.
442 2012-09-17  Ian Lance Taylor  <iant@google.com>
444         PR bootstrap/54609
445         * unknown.c (unknown_fileline): Add state parameter, remove
446         fileline_data parameter, name error_callback parameter.
447         (backtrace_initialize): Add state parameter.
449 2012-09-17  Ian Lance Taylor  <iant@google.com>
451         * Initial implementation.