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