PR target/54601
[official-gcc.git] / libbacktrace / ChangeLog
blob07e83864dabdf0ea12f0d5b960e72fe058a6434f
1 2013-01-31  Ian Lance Taylor  <iant@google.com>
3         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
4         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
6 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
8         PR other/56076
9         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
10         attribute was not seen.
12 2013-01-16  Ian Lance Taylor  <iant@google.com>
14         * dwarf.c (struct unit): Add filename and abs_filename fields.
15         (build_address_map): Set new fields when reading unit.
16         (dwarf_lookup_pc): If we don't find an entry in the line table,
17         just return the main file name.
19 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
21         Update copyright years.
23 2013-01-01  Ian Lance Taylor  <iant@google.com>
25         PR bootstrap/54834
26         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
27         $(MULTIBUILDTOP)/../../gcc/include.
28         * Makefile.in: Rebuild.
30 2013-01-01  Ian Lance Taylor  <iant@google.com>
32         PR other/55536
33         * mmap.c (backtrace_alloc): Don't call sync functions if not
34         threaded.
35         (backtrace_free): Likewise.
37 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
39         * mmapio.c: Define MAP_FAILED if not defined.
41 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
43         PR bootstrap/54926
44         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
45         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
46         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
47         accepts it.
48         * Makefile.in: Regenerated.
49         * configure: Regenerated.
51 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
53         PR bootstrap/54926
54         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
55         * Makefile.in: Regenerated.
57 2012-11-20  Ian Lance Taylor  <iant@google.com>
59         * dwarf.c (read_attribute): Always clear val.
61 2012-11-13  Ian Lance Taylor  <iant@google.com>
63         PR other/55312
64         * configure.ac: Only add -Werror if building a target library.
65         * configure: Rebuild.
67 2012-11-12  Ian Lance Taylor  <iant@google.com>
68             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
69             Gerald Pfeifer  <gerald@pfeifer.com>
71         * configure.ac: Check for getexecname.
72         * fileline.c: #include <errno.h>.  Define getexecname if not
73         available.
74         (fileline_initialize): Try to find the executable in a few
75         different ways.
76         * print.c (error_callback): Only print the filename if it came
77         from the backtrace state.
78         * configure, config.h.in: Rebuild.
80 2012-10-29  Ian Lance Taylor  <iant@google.com>
82         * mmap.c (backtrace_vector_release): Correct last patch: add
83         aligned, not size.
85 2012-10-29  Ian Lance Taylor  <iant@google.com>
87         * mmap.c (backtrace_vector_release): Make sure freed block is
88         aligned on 8-byte boundary.
90 2012-10-26  Ian Lance Taylor  <iant@google.com>
92         PR other/55087
93         * posix.c (backtrace_open): Add does_not_exist parameter.
94         * elf.c (phdr_callback): Do not warn if shared library could not
95         be opened.
96         * fileline.c (fileline_initialize): Update calls to
97         backtrace_open.
98         * internal.h (backtrace_open): Update declaration.
100 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
102         PR target/55061
103         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
104         * configure: Regenerate.
106 2012-10-24  Ian Lance Taylor  <iant@google.com>
108         PR target/55061
109         * configure.ac: Check whether -funwind-tables option works.
110         * configure: Rebuild.
112 2012-10-11  Ian Lance Taylor  <iant@google.com>
114         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
115         * configure: Rebuild.
117 2012-10-10  Ian Lance Taylor  <iant@google.com>
119         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
120         lower case.
122 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
124         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
126 2012-10-09  Ian Lance Taylor  <iant@google.com>
128         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
129         (backtrace_dwarf_add): Likewise.
131 2012-10-09  Ian Lance Taylor  <iant@google.com>
133         Add support for tracing through shared libraries.
134         * configure.ac: Check for link.h and dl_iterate_phdr.
135         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
136         ELF macros before #defining them.
137         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
138         dl_iterate_phdr.
139         (struct elf_syminfo_data): Add next field.
140         (elf_initialize_syminfo): Initialize next field.
141         (elf_add_syminfo_data): New static function.
142         (elf_add): New static function, broken out of
143         backtrace_initialize.  Call backtrace_dwarf_add instead of
144         backtrace_dwarf_initialize.
145         (struct phdr_data): Define.
146         (phdr_callback): New static function.
147         (backtrace_initialize): Call elf_add.
148         * dwarf.c (struct dwarf_data): Add next and base_address fields.
149         (add_unit_addr): Add base_address parameter.  Change all callers.
150         (add_unit_ranges, build_address_map): Likewise.
151         (add_line): Add ddata parameter.  Change all callers.
152         (read_line_program, add_function_range): Likewise.
153         (dwarf_lookup_pc): New static function, broken out of
154         dwarf_fileline.
155         (dwarf_fileline): Call dwarf_lookup_pc.
156         (build_dwarf_data): New static function.
157         (backtrace_dwarf_add): New function.
158         (backtrace_dwarf_initialize): Remove.
159         * internal.h (backtrace_dwarf_initialize): Don't declare.
160         (backtrace_dwarf_add): Declare.
161         * configure, config.h.in: Rebuild.
163 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
165         * btest.c (f23): Avoid uninitialized variable warning.
167 2012-10-04  Ian Lance Taylor  <iant@google.com>
169         * dwarf.c: If the system header files do not declare strnlen,
170         provide our own version.
172 2012-10-03  Ian Lance Taylor  <iant@google.com>
174         * dwarf.c (read_uleb128): Fix overflow test.
175         (read_sleb128): Likewise.
176         (build_address_map): Don't change unit_buf.start.
178 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
180         PR other/54761
181         * configure.ac (EXTRA_FLAGS): New.
182         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
183         * configure, Makefile.in: Regenerate.
185 2012-09-29  Ian Lance Taylor  <iant@google.com>
187         PR other/54749
188         * fileline.c (fileline_initialize): Pass errnum as -1 when
189         reporting that we could not read executable information after a
190         previous failure.
192 2012-09-27  Ian Lance Taylor  <iant@google.com>
194         PR bootstrap/54732
195         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
196         * Makefile.am: Add dependencies for all objects.
197         * configure, aclocal.m4, Makefile.in: Rebuild.
199 2012-09-27  Ian Lance Taylor  <iant@google.com>
201         PR other/54726
202         * elf.c (backtrace_initialize): Set *fileln_fn, not
203         state->fileln_fn.
205 2012-09-19  Ian Lance Taylor  <iant@google.com>
207         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
208         as a target library.
209         * configure: Rebuild.
211 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
212             Ian Lance Taylor  <iant@google.com>
214         * configure.ac (GCC_HEADER_STDINT): Invoke.
215         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
216         * btest.c: Don't include <stdint.h>.
217         * dwarf.c: Likewise.
218         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
220 2012-09-18  Ian Lance Taylor  <iant@google.com>
222         PR bootstrap/54623
223         * Makefile.am (AM_CPPFLAGS): Define.
224         (AM_CFLAGS): Remove -I options.
225         * Makefile.in: Rebuild.
227 2012-09-18  Ian Lance Taylor  <iant@google.com>
229         * posix.c (O_BINARY): Define if not defined.
230         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
231         HAVE_FCNTL is defined.
232         * configure.ac: Test for the fcntl function.
233         * configure, config.h.in: Rebuild.
235 2012-09-18  Ian Lance Taylor  <iant@google.com>
237         * btest.c (test1, test2, test3, test4): Add the unused attribute.
239 2012-09-18  Ian Lance Taylor  <iant@google.com>
241         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
243 2012-09-18  Ian Lance Taylor  <iant@google.com>
245         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
246         * mmapio.c: Don't define _GNU_SOURCE.
247         * configure, config.h.in: Rebuild.
249 2012-09-18  Ian Lance Taylor  <iant@google.com>
251         * configure.ac: Check whether strnlen is declared.
252         * dwarf.c: Declare strnlen if not declared.
253         * configure, config.h.in: Rebuild.
255 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
257         * fileline.c: Include <stdlib.h>.
258         * mmap.c: Likewise.
260 2012-09-17  Ian Lance Taylor  <iant@google.com>
262         PR bootstrap/54611
263         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
264         parameter.
266 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
268         PR bootstrap/54611
269         * nounwind.c (backtrace_simple): Add state parameter.
271 2012-09-17  Ian Lance Taylor  <iant@google.com>
273         PR bootstrap/54609
274         * unknown.c (unknown_fileline): Add state parameter, remove
275         fileline_data parameter, name error_callback parameter.
276         (backtrace_initialize): Add state parameter.
278 2012-09-17  Ian Lance Taylor  <iant@google.com>
280         * Initial implementation.