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