2013-10-03 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / libbacktrace / ChangeLog
blob39e4086b59eb2f44b29bd3209fea91c98778d104
1 2013-09-20  Alan Modra  <amodra@gmail.com>
3         * configure: Regenerate.
5 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
7         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
9 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
11         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
12         dl_iterate_phdr callbacks.
14 2013-03-25  Ian Lance Taylor  <iant@google.com>
16         * alloc.c: #include <sys/types.h>.
17         * mmap.c: Likewise.
19 2013-01-31  Ian Lance Taylor  <iant@google.com>
21         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
22         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
24 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
26         PR other/56076
27         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
28         attribute was not seen.
30 2013-01-16  Ian Lance Taylor  <iant@google.com>
32         * dwarf.c (struct unit): Add filename and abs_filename fields.
33         (build_address_map): Set new fields when reading unit.
34         (dwarf_lookup_pc): If we don't find an entry in the line table,
35         just return the main file name.
37 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
39         Update copyright years.
41 2013-01-01  Ian Lance Taylor  <iant@google.com>
43         PR bootstrap/54834
44         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
45         $(MULTIBUILDTOP)/../../gcc/include.
46         * Makefile.in: Rebuild.
48 2013-01-01  Ian Lance Taylor  <iant@google.com>
50         PR other/55536
51         * mmap.c (backtrace_alloc): Don't call sync functions if not
52         threaded.
53         (backtrace_free): Likewise.
55 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
57         * mmapio.c: Define MAP_FAILED if not defined.
59 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
61         PR bootstrap/54926
62         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
63         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
64         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
65         accepts it.
66         * Makefile.in: Regenerated.
67         * configure: Regenerated.
69 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
71         PR bootstrap/54926
72         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
73         * Makefile.in: Regenerated.
75 2012-11-20  Ian Lance Taylor  <iant@google.com>
77         * dwarf.c (read_attribute): Always clear val.
79 2012-11-13  Ian Lance Taylor  <iant@google.com>
81         PR other/55312
82         * configure.ac: Only add -Werror if building a target library.
83         * configure: Rebuild.
85 2012-11-12  Ian Lance Taylor  <iant@google.com>
86             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
87             Gerald Pfeifer  <gerald@pfeifer.com>
89         * configure.ac: Check for getexecname.
90         * fileline.c: #include <errno.h>.  Define getexecname if not
91         available.
92         (fileline_initialize): Try to find the executable in a few
93         different ways.
94         * print.c (error_callback): Only print the filename if it came
95         from the backtrace state.
96         * configure, config.h.in: Rebuild.
98 2012-10-29  Ian Lance Taylor  <iant@google.com>
100         * mmap.c (backtrace_vector_release): Correct last patch: add
101         aligned, not size.
103 2012-10-29  Ian Lance Taylor  <iant@google.com>
105         * mmap.c (backtrace_vector_release): Make sure freed block is
106         aligned on 8-byte boundary.
108 2012-10-26  Ian Lance Taylor  <iant@google.com>
110         PR other/55087
111         * posix.c (backtrace_open): Add does_not_exist parameter.
112         * elf.c (phdr_callback): Do not warn if shared library could not
113         be opened.
114         * fileline.c (fileline_initialize): Update calls to
115         backtrace_open.
116         * internal.h (backtrace_open): Update declaration.
118 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
120         PR target/55061
121         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
122         * configure: Regenerate.
124 2012-10-24  Ian Lance Taylor  <iant@google.com>
126         PR target/55061
127         * configure.ac: Check whether -funwind-tables option works.
128         * configure: Rebuild.
130 2012-10-11  Ian Lance Taylor  <iant@google.com>
132         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
133         * configure: Rebuild.
135 2012-10-10  Ian Lance Taylor  <iant@google.com>
137         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
138         lower case.
140 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
142         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
144 2012-10-09  Ian Lance Taylor  <iant@google.com>
146         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
147         (backtrace_dwarf_add): Likewise.
149 2012-10-09  Ian Lance Taylor  <iant@google.com>
151         Add support for tracing through shared libraries.
152         * configure.ac: Check for link.h and dl_iterate_phdr.
153         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
154         ELF macros before #defining them.
155         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
156         dl_iterate_phdr.
157         (struct elf_syminfo_data): Add next field.
158         (elf_initialize_syminfo): Initialize next field.
159         (elf_add_syminfo_data): New static function.
160         (elf_add): New static function, broken out of
161         backtrace_initialize.  Call backtrace_dwarf_add instead of
162         backtrace_dwarf_initialize.
163         (struct phdr_data): Define.
164         (phdr_callback): New static function.
165         (backtrace_initialize): Call elf_add.
166         * dwarf.c (struct dwarf_data): Add next and base_address fields.
167         (add_unit_addr): Add base_address parameter.  Change all callers.
168         (add_unit_ranges, build_address_map): Likewise.
169         (add_line): Add ddata parameter.  Change all callers.
170         (read_line_program, add_function_range): Likewise.
171         (dwarf_lookup_pc): New static function, broken out of
172         dwarf_fileline.
173         (dwarf_fileline): Call dwarf_lookup_pc.
174         (build_dwarf_data): New static function.
175         (backtrace_dwarf_add): New function.
176         (backtrace_dwarf_initialize): Remove.
177         * internal.h (backtrace_dwarf_initialize): Don't declare.
178         (backtrace_dwarf_add): Declare.
179         * configure, config.h.in: Rebuild.
181 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
183         * btest.c (f23): Avoid uninitialized variable warning.
185 2012-10-04  Ian Lance Taylor  <iant@google.com>
187         * dwarf.c: If the system header files do not declare strnlen,
188         provide our own version.
190 2012-10-03  Ian Lance Taylor  <iant@google.com>
192         * dwarf.c (read_uleb128): Fix overflow test.
193         (read_sleb128): Likewise.
194         (build_address_map): Don't change unit_buf.start.
196 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
198         PR other/54761
199         * configure.ac (EXTRA_FLAGS): New.
200         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
201         * configure, Makefile.in: Regenerate.
203 2012-09-29  Ian Lance Taylor  <iant@google.com>
205         PR other/54749
206         * fileline.c (fileline_initialize): Pass errnum as -1 when
207         reporting that we could not read executable information after a
208         previous failure.
210 2012-09-27  Ian Lance Taylor  <iant@google.com>
212         PR bootstrap/54732
213         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
214         * Makefile.am: Add dependencies for all objects.
215         * configure, aclocal.m4, Makefile.in: Rebuild.
217 2012-09-27  Ian Lance Taylor  <iant@google.com>
219         PR other/54726
220         * elf.c (backtrace_initialize): Set *fileln_fn, not
221         state->fileln_fn.
223 2012-09-19  Ian Lance Taylor  <iant@google.com>
225         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
226         as a target library.
227         * configure: Rebuild.
229 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
230             Ian Lance Taylor  <iant@google.com>
232         * configure.ac (GCC_HEADER_STDINT): Invoke.
233         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
234         * btest.c: Don't include <stdint.h>.
235         * dwarf.c: Likewise.
236         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
238 2012-09-18  Ian Lance Taylor  <iant@google.com>
240         PR bootstrap/54623
241         * Makefile.am (AM_CPPFLAGS): Define.
242         (AM_CFLAGS): Remove -I options.
243         * Makefile.in: Rebuild.
245 2012-09-18  Ian Lance Taylor  <iant@google.com>
247         * posix.c (O_BINARY): Define if not defined.
248         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
249         HAVE_FCNTL is defined.
250         * configure.ac: Test for the fcntl function.
251         * configure, config.h.in: Rebuild.
253 2012-09-18  Ian Lance Taylor  <iant@google.com>
255         * btest.c (test1, test2, test3, test4): Add the unused attribute.
257 2012-09-18  Ian Lance Taylor  <iant@google.com>
259         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
261 2012-09-18  Ian Lance Taylor  <iant@google.com>
263         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
264         * mmapio.c: Don't define _GNU_SOURCE.
265         * configure, config.h.in: Rebuild.
267 2012-09-18  Ian Lance Taylor  <iant@google.com>
269         * configure.ac: Check whether strnlen is declared.
270         * dwarf.c: Declare strnlen if not declared.
271         * configure, config.h.in: Rebuild.
273 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
275         * fileline.c: Include <stdlib.h>.
276         * mmap.c: Likewise.
278 2012-09-17  Ian Lance Taylor  <iant@google.com>
280         PR bootstrap/54611
281         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
282         parameter.
284 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
286         PR bootstrap/54611
287         * nounwind.c (backtrace_simple): Add state parameter.
289 2012-09-17  Ian Lance Taylor  <iant@google.com>
291         PR bootstrap/54609
292         * unknown.c (unknown_fileline): Add state parameter, remove
293         fileline_data parameter, name error_callback parameter.
294         (backtrace_initialize): Add state parameter.
296 2012-09-17  Ian Lance Taylor  <iant@google.com>
298         * Initial implementation.