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