* include/ext/array_allocator.h: Replace uses of
[official-gcc.git] / libbacktrace / ChangeLog
blobfc5871ad30dedb98c56549c1aec60d3f7d3552e1
1 2012-11-13  Ian Lance Taylor  <iant@google.com>
3         PR other/55312
4         * configure.ac: Only add -Werror if building a target library.
6 2012-11-12  Ian Lance Taylor  <iant@google.com>
7             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8             Gerald Pfeifer  <gerald@pfeifer.com>
10         * configure.ac: Check for getexecname.
11         * fileline.c: #include <errno.h>.  Define getexecname if not
12         available.
13         (fileline_initialize): Try to find the executable in a few
14         different ways.
15         * print.c (error_callback): Only print the filename if it came
16         from the backtrace state.
17         * configure, config.h.in: Rebuild.
19 2012-10-29  Ian Lance Taylor  <iant@google.com>
21         * mmap.c (backtrace_vector_release): Correct last patch: add
22         aligned, not size.
24 2012-10-29  Ian Lance Taylor  <iant@google.com>
26         * mmap.c (backtrace_vector_release): Make sure freed block is
27         aligned on 8-byte boundary.
29 2012-10-26  Ian Lance Taylor  <iant@google.com>
31         PR other/55087
32         * posix.c (backtrace_open): Add does_not_exist parameter.
33         * elf.c (phdr_callback): Do not warn if shared library could not
34         be opened.
35         * fileline.c (fileline_initialize): Update calls to
36         backtrace_open.
37         * internal.h (backtrace_open): Update declaration.
39 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
41         PR target/55061
42         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
43         * configure: Regenerate.
45 2012-10-24  Ian Lance Taylor  <iant@google.com>
47         PR target/55061
48         * configure.ac: Check whether -funwind-tables option works.
49         * configure: Rebuild.
51 2012-10-11  Ian Lance Taylor  <iant@google.com>
53         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
54         * configure: Rebuild.
56 2012-10-10  Ian Lance Taylor  <iant@google.com>
58         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
59         lower case.
61 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
63         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
65 2012-10-09  Ian Lance Taylor  <iant@google.com>
67         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
68         (backtrace_dwarf_add): Likewise.
70 2012-10-09  Ian Lance Taylor  <iant@google.com>
72         Add support for tracing through shared libraries.
73         * configure.ac: Check for link.h and dl_iterate_phdr.
74         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
75         ELF macros before #defining them.
76         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
77         dl_iterate_phdr.
78         (struct elf_syminfo_data): Add next field.
79         (elf_initialize_syminfo): Initialize next field.
80         (elf_add_syminfo_data): New static function.
81         (elf_add): New static function, broken out of
82         backtrace_initialize.  Call backtrace_dwarf_add instead of
83         backtrace_dwarf_initialize.
84         (struct phdr_data): Define.
85         (phdr_callback): New static function.
86         (backtrace_initialize): Call elf_add.
87         * dwarf.c (struct dwarf_data): Add next and base_address fields.
88         (add_unit_addr): Add base_address parameter.  Change all callers.
89         (add_unit_ranges, build_address_map): Likewise.
90         (add_line): Add ddata parameter.  Change all callers.
91         (read_line_program, add_function_range): Likewise.
92         (dwarf_lookup_pc): New static function, broken out of
93         dwarf_fileline.
94         (dwarf_fileline): Call dwarf_lookup_pc.
95         (build_dwarf_data): New static function.
96         (backtrace_dwarf_add): New function.
97         (backtrace_dwarf_initialize): Remove.
98         * internal.h (backtrace_dwarf_initialize): Don't declare.
99         (backtrace_dwarf_add): Declare.
100         * configure, config.h.in: Rebuild.
102 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
104         * btest.c (f23): Avoid uninitialized variable warning.
106 2012-10-04  Ian Lance Taylor  <iant@google.com>
108         * dwarf.c: If the system header files do not declare strnlen,
109         provide our own version.
111 2012-10-03  Ian Lance Taylor  <iant@google.com>
113         * dwarf.c (read_uleb128): Fix overflow test.
114         (read_sleb128): Likewise.
115         (build_address_map): Don't change unit_buf.start.
117 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
119         PR other/54761
120         * configure.ac (EXTRA_FLAGS): New.
121         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
122         * configure, Makefile.in: Regenerate.
124 2012-09-29  Ian Lance Taylor  <iant@google.com>
126         PR other/54749
127         * fileline.c (fileline_initialize): Pass errnum as -1 when
128         reporting that we could not read executable information after a
129         previous failure.
131 2012-09-27  Ian Lance Taylor  <iant@google.com>
133         PR bootstrap/54732
134         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
135         * Makefile.am: Add dependencies for all objects.
136         * configure, aclocal.m4, Makefile.in: Rebuild.
138 2012-09-27  Ian Lance Taylor  <iant@google.com>
140         PR other/54726
141         * elf.c (backtrace_initialize): Set *fileln_fn, not
142         state->fileln_fn.
144 2012-09-19  Ian Lance Taylor  <iant@google.com>
146         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
147         as a target library.
148         * configure: Rebuild.
150 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
151             Ian Lance Taylor  <iant@google.com>
153         * configure.ac (GCC_HEADER_STDINT): Invoke.
154         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
155         * btest.c: Don't include <stdint.h>.
156         * dwarf.c: Likewise.
157         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
159 2012-09-18  Ian Lance Taylor  <iant@google.com>
161         PR bootstrap/54623
162         * Makefile.am (AM_CPPFLAGS): Define.
163         (AM_CFLAGS): Remove -I options.
164         * Makefile.in: Rebuild.
166 2012-09-18  Ian Lance Taylor  <iant@google.com>
168         * posix.c (O_BINARY): Define if not defined.
169         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
170         HAVE_FCNTL is defined.
171         * configure.ac: Test for the fcntl function.
172         * configure, config.h.in: Rebuild.
174 2012-09-18  Ian Lance Taylor  <iant@google.com>
176         * btest.c (test1, test2, test3, test4): Add the unused attribute.
178 2012-09-18  Ian Lance Taylor  <iant@google.com>
180         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
182 2012-09-18  Ian Lance Taylor  <iant@google.com>
184         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
185         * mmapio.c: Don't define _GNU_SOURCE.
186         * configure, config.h.in: Rebuild.
188 2012-09-18  Ian Lance Taylor  <iant@google.com>
190         * configure.ac: Check whether strnlen is declared.
191         * dwarf.c: Declare strnlen if not declared.
192         * configure, config.h.in: Rebuild.
194 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
196         * fileline.c: Include <stdlib.h>.
197         * mmap.c: Likewise.
199 2012-09-17  Ian Lance Taylor  <iant@google.com>
201         PR bootstrap/54611
202         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
203         parameter.
205 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
207         PR bootstrap/54611
208         * nounwind.c (backtrace_simple): Add state parameter.
210 2012-09-17  Ian Lance Taylor  <iant@google.com>
212         PR bootstrap/54609
213         * unknown.c (unknown_fileline): Add state parameter, remove
214         fileline_data parameter, name error_callback parameter.
215         (backtrace_initialize): Add state parameter.
217 2012-09-17  Ian Lance Taylor  <iant@google.com>
219         * Initial implementation.