]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/ChangeLog
c06194df3e48369673d79312b5ffaeca8f57f0da
[thirdparty/gcc.git] / libbacktrace / ChangeLog
1 2013-11-18 Jakub Jelinek <jakub@redhat.com>
2
3 * elf.c (SHN_UNDEF): Define.
4 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
5 with st_shndx == SHN_UNDEF. Add base_address to address fields.
6 (elf_add): Adjust caller.
7
8 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
9
10 2013-11-16 Ian Lance Taylor <iant@google.com>
11
12 * backtrace.h (backtrace_create_state): Correct comment about
13 threading.
14
15 2013-11-15 Ian Lance Taylor <iant@google.com>
16
17 * backtrace.h (backtrace_syminfo): Update comment and parameter
18 name to take any address, not just a PC value.
19 * elf.c (STT_OBJECT): Define.
20 (elf_nosyms): Rename parameter pc to addr.
21 (elf_symbol_search): Rename local variable pc to addr.
22 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
23 (elf_syminfo): Rename parameter pc to addr.
24 * btest.c (global): New global variable.
25 (test5): New test.
26 (main): Call test5.
27
28 2013-10-17 Ian Lance Taylor <iant@google.com>
29
30 * elf.c (elf_add): Don't get the wrong offsets if a debug section
31 is missing.
32
33 2013-10-15 David Malcolm <dmalcolm@redhat.com>
34
35 * configure.ac: Add --enable-host-shared, setting up
36 pre-existing PIC_FLAG variable within Makefile.am et al.
37 * configure: Regenerate.
38
39 2013-09-20 Alan Modra <amodra@gmail.com>
40
41 * configure: Regenerate.
42
43 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
44
45 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
46
47 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
48
49 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
50 dl_iterate_phdr callbacks.
51
52 2013-03-25 Ian Lance Taylor <iant@google.com>
53
54 * alloc.c: #include <sys/types.h>.
55 * mmap.c: Likewise.
56
57 2013-01-31 Ian Lance Taylor <iant@google.com>
58
59 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
60 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
61
62 2013-01-25 Jakub Jelinek <jakub@redhat.com>
63
64 PR other/56076
65 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
66 attribute was not seen.
67
68 2013-01-16 Ian Lance Taylor <iant@google.com>
69
70 * dwarf.c (struct unit): Add filename and abs_filename fields.
71 (build_address_map): Set new fields when reading unit.
72 (dwarf_lookup_pc): If we don't find an entry in the line table,
73 just return the main file name.
74
75 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
76
77 Update copyright years.
78
79 2013-01-01 Ian Lance Taylor <iant@google.com>
80
81 PR bootstrap/54834
82 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
83 $(MULTIBUILDTOP)/../../gcc/include.
84 * Makefile.in: Rebuild.
85
86 2013-01-01 Ian Lance Taylor <iant@google.com>
87
88 PR other/55536
89 * mmap.c (backtrace_alloc): Don't call sync functions if not
90 threaded.
91 (backtrace_free): Likewise.
92
93 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
94
95 * mmapio.c: Define MAP_FAILED if not defined.
96
97 2012-12-11 Jakub Jelinek <jakub@redhat.com>
98
99 PR bootstrap/54926
100 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
101 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
102 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
103 accepts it.
104 * Makefile.in: Regenerated.
105 * configure: Regenerated.
106
107 2012-12-07 Jakub Jelinek <jakub@redhat.com>
108
109 PR bootstrap/54926
110 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
111 * Makefile.in: Regenerated.
112
113 2012-11-20 Ian Lance Taylor <iant@google.com>
114
115 * dwarf.c (read_attribute): Always clear val.
116
117 2012-11-13 Ian Lance Taylor <iant@google.com>
118
119 PR other/55312
120 * configure.ac: Only add -Werror if building a target library.
121 * configure: Rebuild.
122
123 2012-11-12 Ian Lance Taylor <iant@google.com>
124 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125 Gerald Pfeifer <gerald@pfeifer.com>
126
127 * configure.ac: Check for getexecname.
128 * fileline.c: #include <errno.h>. Define getexecname if not
129 available.
130 (fileline_initialize): Try to find the executable in a few
131 different ways.
132 * print.c (error_callback): Only print the filename if it came
133 from the backtrace state.
134 * configure, config.h.in: Rebuild.
135
136 2012-10-29 Ian Lance Taylor <iant@google.com>
137
138 * mmap.c (backtrace_vector_release): Correct last patch: add
139 aligned, not size.
140
141 2012-10-29 Ian Lance Taylor <iant@google.com>
142
143 * mmap.c (backtrace_vector_release): Make sure freed block is
144 aligned on 8-byte boundary.
145
146 2012-10-26 Ian Lance Taylor <iant@google.com>
147
148 PR other/55087
149 * posix.c (backtrace_open): Add does_not_exist parameter.
150 * elf.c (phdr_callback): Do not warn if shared library could not
151 be opened.
152 * fileline.c (fileline_initialize): Update calls to
153 backtrace_open.
154 * internal.h (backtrace_open): Update declaration.
155
156 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
157
158 PR target/55061
159 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
160 * configure: Regenerate.
161
162 2012-10-24 Ian Lance Taylor <iant@google.com>
163
164 PR target/55061
165 * configure.ac: Check whether -funwind-tables option works.
166 * configure: Rebuild.
167
168 2012-10-11 Ian Lance Taylor <iant@google.com>
169
170 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
171 * configure: Rebuild.
172
173 2012-10-10 Ian Lance Taylor <iant@google.com>
174
175 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
176 lower case.
177
178 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
179
180 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
181
182 2012-10-09 Ian Lance Taylor <iant@google.com>
183
184 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
185 (backtrace_dwarf_add): Likewise.
186
187 2012-10-09 Ian Lance Taylor <iant@google.com>
188
189 Add support for tracing through shared libraries.
190 * configure.ac: Check for link.h and dl_iterate_phdr.
191 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
192 ELF macros before #defining them.
193 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
194 dl_iterate_phdr.
195 (struct elf_syminfo_data): Add next field.
196 (elf_initialize_syminfo): Initialize next field.
197 (elf_add_syminfo_data): New static function.
198 (elf_add): New static function, broken out of
199 backtrace_initialize. Call backtrace_dwarf_add instead of
200 backtrace_dwarf_initialize.
201 (struct phdr_data): Define.
202 (phdr_callback): New static function.
203 (backtrace_initialize): Call elf_add.
204 * dwarf.c (struct dwarf_data): Add next and base_address fields.
205 (add_unit_addr): Add base_address parameter. Change all callers.
206 (add_unit_ranges, build_address_map): Likewise.
207 (add_line): Add ddata parameter. Change all callers.
208 (read_line_program, add_function_range): Likewise.
209 (dwarf_lookup_pc): New static function, broken out of
210 dwarf_fileline.
211 (dwarf_fileline): Call dwarf_lookup_pc.
212 (build_dwarf_data): New static function.
213 (backtrace_dwarf_add): New function.
214 (backtrace_dwarf_initialize): Remove.
215 * internal.h (backtrace_dwarf_initialize): Don't declare.
216 (backtrace_dwarf_add): Declare.
217 * configure, config.h.in: Rebuild.
218
219 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
220
221 * btest.c (f23): Avoid uninitialized variable warning.
222
223 2012-10-04 Ian Lance Taylor <iant@google.com>
224
225 * dwarf.c: If the system header files do not declare strnlen,
226 provide our own version.
227
228 2012-10-03 Ian Lance Taylor <iant@google.com>
229
230 * dwarf.c (read_uleb128): Fix overflow test.
231 (read_sleb128): Likewise.
232 (build_address_map): Don't change unit_buf.start.
233
234 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
235
236 PR other/54761
237 * configure.ac (EXTRA_FLAGS): New.
238 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
239 * configure, Makefile.in: Regenerate.
240
241 2012-09-29 Ian Lance Taylor <iant@google.com>
242
243 PR other/54749
244 * fileline.c (fileline_initialize): Pass errnum as -1 when
245 reporting that we could not read executable information after a
246 previous failure.
247
248 2012-09-27 Ian Lance Taylor <iant@google.com>
249
250 PR bootstrap/54732
251 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
252 * Makefile.am: Add dependencies for all objects.
253 * configure, aclocal.m4, Makefile.in: Rebuild.
254
255 2012-09-27 Ian Lance Taylor <iant@google.com>
256
257 PR other/54726
258 * elf.c (backtrace_initialize): Set *fileln_fn, not
259 state->fileln_fn.
260
261 2012-09-19 Ian Lance Taylor <iant@google.com>
262
263 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
264 as a target library.
265 * configure: Rebuild.
266
267 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268 Ian Lance Taylor <iant@google.com>
269
270 * configure.ac (GCC_HEADER_STDINT): Invoke.
271 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
272 * btest.c: Don't include <stdint.h>.
273 * dwarf.c: Likewise.
274 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
275
276 2012-09-18 Ian Lance Taylor <iant@google.com>
277
278 PR bootstrap/54623
279 * Makefile.am (AM_CPPFLAGS): Define.
280 (AM_CFLAGS): Remove -I options.
281 * Makefile.in: Rebuild.
282
283 2012-09-18 Ian Lance Taylor <iant@google.com>
284
285 * posix.c (O_BINARY): Define if not defined.
286 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
287 HAVE_FCNTL is defined.
288 * configure.ac: Test for the fcntl function.
289 * configure, config.h.in: Rebuild.
290
291 2012-09-18 Ian Lance Taylor <iant@google.com>
292
293 * btest.c (test1, test2, test3, test4): Add the unused attribute.
294
295 2012-09-18 Ian Lance Taylor <iant@google.com>
296
297 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
298
299 2012-09-18 Ian Lance Taylor <iant@google.com>
300
301 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
302 * mmapio.c: Don't define _GNU_SOURCE.
303 * configure, config.h.in: Rebuild.
304
305 2012-09-18 Ian Lance Taylor <iant@google.com>
306
307 * configure.ac: Check whether strnlen is declared.
308 * dwarf.c: Declare strnlen if not declared.
309 * configure, config.h.in: Rebuild.
310
311 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
312
313 * fileline.c: Include <stdlib.h>.
314 * mmap.c: Likewise.
315
316 2012-09-17 Ian Lance Taylor <iant@google.com>
317
318 PR bootstrap/54611
319 * nounwind.c (backtrace_full): Rename from backtrace. Add state
320 parameter.
321
322 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
323
324 PR bootstrap/54611
325 * nounwind.c (backtrace_simple): Add state parameter.
326
327 2012-09-17 Ian Lance Taylor <iant@google.com>
328
329 PR bootstrap/54609
330 * unknown.c (unknown_fileline): Add state parameter, remove
331 fileline_data parameter, name error_callback parameter.
332 (backtrace_initialize): Add state parameter.
333
334 2012-09-17 Ian Lance Taylor <iant@google.com>
335
336 * Initial implementation.