]> git.lizzy.rs Git - rust.git/blob - src/libbacktrace/ChangeLog
Auto merge of #29325 - alexcrichton:revert-trait-accessibility, r=nrc
[rust.git] / src / libbacktrace / ChangeLog
1 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2
3         * configure.ac: Set have_mmap to no on spu-*-* targets.
4         * configure: Regenerate.
5
6 2015-08-13  Ian Lance Taylor  <iant@google.com>
7
8         * dwarf.c (read_function_entry): Add vec_inlined parameter.
9         Change all callers.
10
11 2015-06-11  Martin Sebor  <msebor@redhat.com>
12
13         PR sanitizer/65479
14         * dwarf.c (struct line): Add new field idx.
15         (line_compare): Use it.
16         (add_line): Set it.
17         (read_line_info): Reset it.
18
19 2015-05-29  Tristan Gingold  <gingold@adacore.com>
20
21         * pecoff.c: New file.
22         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
23         * Makefile.in: Regenerate.
24         * filetype.awk: Detect pecoff.
25         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
26         Add pecoff.
27         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
28         true.
29         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
30         * configure: Regenerate.
31         * pecoff.c: New file.
32
33 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
34
35         * Makefile.in: Regenerated with automake-1.11.6.
36         * aclocal.m4: Likewise.
37         * configure: Likewise.
38
39 2015-01-24  Matthias Klose  <doko@ubuntu.com>
40
41         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
42         * configure: Regenerate.
43
44 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
45
46         Update copyright years.
47
48 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
49
50         PR bootstrap/63784
51         * configure: Regenerated.
52
53 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
54
55         * ChangeLog.jit: New.
56
57 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
58
59         PR target/63610
60         * configure: Regenerate.
61
62 2014-10-23  Ian Lance Taylor  <iant@google.com>
63
64         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
65         Fix to return void *.
66
67 2014-05-08  Ian Lance Taylor  <iant@google.com>
68
69         * mmap.c (backtrace_free): If freeing a large aligned block of
70         memory, call munmap rather than holding onto it.
71         (backtrace_vector_grow): When growing a vector, double the number
72         of pages requested.  When releasing the old version of a grown
73         vector, pass the correct size to backtrace_free.
74
75 2014-03-07  Ian Lance Taylor  <iant@google.com>
76
77         * sort.c (backtrace_qsort): Use middle element as pivot.
78
79 2014-03-06  Ian Lance Taylor  <iant@google.com>
80
81         * sort.c: New file.
82         * stest.c: New file.
83         * internal.h (backtrace_qsort): Declare.
84         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
85         (read_line_info, read_function_entry): Likewise.
86         (read_function_info, build_dwarf_data): Likewise.
87         * elf.c (elf_initialize_syminfo): Likewise.
88         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
89         (stest_SOURCES, stest_LDADD): Define.
90         (check_PROGRAMS): Add stest.
91
92 2014-02-07  Misty De Meo  <misty@brew.sh>
93
94         PR target/58710
95         * configure.ac: Use AC_LINK_IFELSE in check for
96         _Unwind_GetIPInfo.
97         * configure: Regenerate.
98
99 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
100
101         Update copyright years
102
103 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
104
105         * elf.c (ET_DYN): Undefine and define again.
106         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
107         return early -1 without closing the descriptor.
108         (struct phdr_data): Add exe_descriptor.
109         (phdr_callback): If pd->exe_descriptor is not -1, for very first
110         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
111         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
112         call to elf_add.
113         (backtrace_initialize): Adjust call to elf_add.  If it returns
114         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
115
116 2013-12-05  Ian Lance Taylor  <iant@google.com>
117
118         * alloc.c (backtrace_vector_finish): Add error_callback and data
119         parameters.  Call backtrace_vector_release.  Return address base.
120         * mmap.c (backtrace_vector_finish): Add error_callback and data
121         parameters.  Return address base.
122         * dwarf.c (read_function_info): Get new address base from
123         backtrace_vector_finish.
124         * internal.h (backtrace_vector_finish): Update declaration.
125
126 2013-11-27  Ian Lance Taylor  <iant@google.com>
127
128         * dwarf.c (find_address_ranges): New static function, broken out
129         of build_address_map.
130         (build_address_map): Call it.
131         * btest.c (check): Check for missing filename or function, rather
132         than crashing.
133         (f3): Check that enough frames were returned.
134
135 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
136
137         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
138         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
139         last argument.
140         * btest.c (struct symdata): Add size field.
141         (callback_three): Add symsize argument.  Copy it to the data->size
142         field.
143         (f23): Set symdata.size to 0.
144         (test5): Likewise.  If sizeof (int) > 1, lookup address of
145         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
146         values.
147
148         * atomic.c: Include sys/types.h.
149
150 2013-11-18  Ian Lance Taylor  <iant@google.com>
151
152         * configure.ac: Check for support of __atomic extensions.
153         * internal.h: Declare or #define atomic functions for use in
154         backtrace code.
155         * atomic.c: New file.
156         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
157         (dwarf_fileline, backtrace_dwarf_add): Likewise.
158         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
159         (backtrace_initialize): Likewise.
160         * fileline.c (fileline_initialize): Likewise.
161         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
162         * configure, config.h.in, Makefile.in: Rebuild.
163
164 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
165
166         * elf.c (SHN_UNDEF): Define.
167         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
168         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
169         (elf_add): Adjust caller.
170
171         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
172
173 2013-11-16  Ian Lance Taylor  <iant@google.com>
174
175         * backtrace.h (backtrace_create_state): Correct comment about
176         threading.
177
178 2013-11-15  Ian Lance Taylor  <iant@google.com>
179
180         * backtrace.h (backtrace_syminfo): Update comment and parameter
181         name to take any address, not just a PC value.
182         * elf.c (STT_OBJECT): Define.
183         (elf_nosyms): Rename parameter pc to addr.
184         (elf_symbol_search): Rename local variable pc to addr.
185         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
186         (elf_syminfo): Rename parameter pc to addr.
187         * btest.c (global): New global variable.
188         (test5): New test.
189         (main): Call test5.
190
191 2013-10-17  Ian Lance Taylor  <iant@google.com>
192
193         * elf.c (elf_add): Don't get the wrong offsets if a debug section
194         is missing.
195
196 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
197
198         * configure.ac: Add --enable-host-shared, setting up
199         pre-existing PIC_FLAG variable within Makefile.am et al.
200         * configure: Regenerate.
201
202 2013-09-20  Alan Modra  <amodra@gmail.com>
203
204         * configure: Regenerate.
205
206 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
207
208         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
209
210 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
211
212         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
213         dl_iterate_phdr callbacks.
214
215 2013-03-25  Ian Lance Taylor  <iant@google.com>
216
217         * alloc.c: #include <sys/types.h>.
218         * mmap.c: Likewise.
219
220 2013-01-31  Ian Lance Taylor  <iant@google.com>
221
222         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
223         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
224
225 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
226
227         PR other/56076
228         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
229         attribute was not seen.
230
231 2013-01-16  Ian Lance Taylor  <iant@google.com>
232
233         * dwarf.c (struct unit): Add filename and abs_filename fields.
234         (build_address_map): Set new fields when reading unit.
235         (dwarf_lookup_pc): If we don't find an entry in the line table,
236         just return the main file name.
237
238 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
239
240         Update copyright years.
241
242 2013-01-01  Ian Lance Taylor  <iant@google.com>
243
244         PR bootstrap/54834
245         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
246         $(MULTIBUILDTOP)/../../gcc/include.
247         * Makefile.in: Rebuild.
248
249 2013-01-01  Ian Lance Taylor  <iant@google.com>
250
251         PR other/55536
252         * mmap.c (backtrace_alloc): Don't call sync functions if not
253         threaded.
254         (backtrace_free): Likewise.
255
256 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
257
258         * mmapio.c: Define MAP_FAILED if not defined.
259
260 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
261
262         PR bootstrap/54926
263         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
264         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
265         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
266         accepts it.
267         * Makefile.in: Regenerated.
268         * configure: Regenerated.
269
270 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
271
272         PR bootstrap/54926
273         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
274         * Makefile.in: Regenerated.
275
276 2012-11-20  Ian Lance Taylor  <iant@google.com>
277
278         * dwarf.c (read_attribute): Always clear val.
279
280 2012-11-13  Ian Lance Taylor  <iant@google.com>
281
282         PR other/55312
283         * configure.ac: Only add -Werror if building a target library.
284         * configure: Rebuild.
285
286 2012-11-12  Ian Lance Taylor  <iant@google.com>
287             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
288             Gerald Pfeifer  <gerald@pfeifer.com>
289
290         * configure.ac: Check for getexecname.
291         * fileline.c: #include <errno.h>.  Define getexecname if not
292         available.
293         (fileline_initialize): Try to find the executable in a few
294         different ways.
295         * print.c (error_callback): Only print the filename if it came
296         from the backtrace state.
297         * configure, config.h.in: Rebuild.
298
299 2012-10-29  Ian Lance Taylor  <iant@google.com>
300
301         * mmap.c (backtrace_vector_release): Correct last patch: add
302         aligned, not size.
303
304 2012-10-29  Ian Lance Taylor  <iant@google.com>
305
306         * mmap.c (backtrace_vector_release): Make sure freed block is
307         aligned on 8-byte boundary.
308
309 2012-10-26  Ian Lance Taylor  <iant@google.com>
310
311         PR other/55087
312         * posix.c (backtrace_open): Add does_not_exist parameter.
313         * elf.c (phdr_callback): Do not warn if shared library could not
314         be opened.
315         * fileline.c (fileline_initialize): Update calls to
316         backtrace_open.
317         * internal.h (backtrace_open): Update declaration.
318
319 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
320
321         PR target/55061
322         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
323         * configure: Regenerate.
324
325 2012-10-24  Ian Lance Taylor  <iant@google.com>
326
327         PR target/55061
328         * configure.ac: Check whether -funwind-tables option works.
329         * configure: Rebuild.
330
331 2012-10-11  Ian Lance Taylor  <iant@google.com>
332
333         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
334         * configure: Rebuild.
335
336 2012-10-10  Ian Lance Taylor  <iant@google.com>
337
338         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
339         lower case.
340
341 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
342
343         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
344
345 2012-10-09  Ian Lance Taylor  <iant@google.com>
346
347         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
348         (backtrace_dwarf_add): Likewise.
349
350 2012-10-09  Ian Lance Taylor  <iant@google.com>
351
352         Add support for tracing through shared libraries.
353         * configure.ac: Check for link.h and dl_iterate_phdr.
354         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
355         ELF macros before #defining them.
356         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
357         dl_iterate_phdr.
358         (struct elf_syminfo_data): Add next field.
359         (elf_initialize_syminfo): Initialize next field.
360         (elf_add_syminfo_data): New static function.
361         (elf_add): New static function, broken out of
362         backtrace_initialize.  Call backtrace_dwarf_add instead of
363         backtrace_dwarf_initialize.
364         (struct phdr_data): Define.
365         (phdr_callback): New static function.
366         (backtrace_initialize): Call elf_add.
367         * dwarf.c (struct dwarf_data): Add next and base_address fields.
368         (add_unit_addr): Add base_address parameter.  Change all callers.
369         (add_unit_ranges, build_address_map): Likewise.
370         (add_line): Add ddata parameter.  Change all callers.
371         (read_line_program, add_function_range): Likewise.
372         (dwarf_lookup_pc): New static function, broken out of
373         dwarf_fileline.
374         (dwarf_fileline): Call dwarf_lookup_pc.
375         (build_dwarf_data): New static function.
376         (backtrace_dwarf_add): New function.
377         (backtrace_dwarf_initialize): Remove.
378         * internal.h (backtrace_dwarf_initialize): Don't declare.
379         (backtrace_dwarf_add): Declare.
380         * configure, config.h.in: Rebuild.
381
382 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
383
384         * btest.c (f23): Avoid uninitialized variable warning.
385
386 2012-10-04  Ian Lance Taylor  <iant@google.com>
387
388         * dwarf.c: If the system header files do not declare strnlen,
389         provide our own version.
390
391 2012-10-03  Ian Lance Taylor  <iant@google.com>
392
393         * dwarf.c (read_uleb128): Fix overflow test.
394         (read_sleb128): Likewise.
395         (build_address_map): Don't change unit_buf.start.
396
397 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
398
399         PR other/54761
400         * configure.ac (EXTRA_FLAGS): New.
401         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
402         * configure, Makefile.in: Regenerate.
403
404 2012-09-29  Ian Lance Taylor  <iant@google.com>
405
406         PR other/54749
407         * fileline.c (fileline_initialize): Pass errnum as -1 when
408         reporting that we could not read executable information after a
409         previous failure.
410
411 2012-09-27  Ian Lance Taylor  <iant@google.com>
412
413         PR bootstrap/54732
414         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
415         * Makefile.am: Add dependencies for all objects.
416         * configure, aclocal.m4, Makefile.in: Rebuild.
417
418 2012-09-27  Ian Lance Taylor  <iant@google.com>
419
420         PR other/54726
421         * elf.c (backtrace_initialize): Set *fileln_fn, not
422         state->fileln_fn.
423
424 2012-09-19  Ian Lance Taylor  <iant@google.com>
425
426         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
427         as a target library.
428         * configure: Rebuild.
429
430 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
431             Ian Lance Taylor  <iant@google.com>
432
433         * configure.ac (GCC_HEADER_STDINT): Invoke.
434         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
435         * btest.c: Don't include <stdint.h>.
436         * dwarf.c: Likewise.
437         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
438
439 2012-09-18  Ian Lance Taylor  <iant@google.com>
440
441         PR bootstrap/54623
442         * Makefile.am (AM_CPPFLAGS): Define.
443         (AM_CFLAGS): Remove -I options.
444         * Makefile.in: Rebuild.
445
446 2012-09-18  Ian Lance Taylor  <iant@google.com>
447
448         * posix.c (O_BINARY): Define if not defined.
449         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
450         HAVE_FCNTL is defined.
451         * configure.ac: Test for the fcntl function.
452         * configure, config.h.in: Rebuild.
453
454 2012-09-18  Ian Lance Taylor  <iant@google.com>
455
456         * btest.c (test1, test2, test3, test4): Add the unused attribute.
457
458 2012-09-18  Ian Lance Taylor  <iant@google.com>
459
460         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
461
462 2012-09-18  Ian Lance Taylor  <iant@google.com>
463
464         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
465         * mmapio.c: Don't define _GNU_SOURCE.
466         * configure, config.h.in: Rebuild.
467
468 2012-09-18  Ian Lance Taylor  <iant@google.com>
469
470         * configure.ac: Check whether strnlen is declared.
471         * dwarf.c: Declare strnlen if not declared.
472         * configure, config.h.in: Rebuild.
473
474 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
475
476         * fileline.c: Include <stdlib.h>.
477         * mmap.c: Likewise.
478
479 2012-09-17  Ian Lance Taylor  <iant@google.com>
480
481         PR bootstrap/54611
482         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
483         parameter.
484
485 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
486
487         PR bootstrap/54611
488         * nounwind.c (backtrace_simple): Add state parameter.
489
490 2012-09-17  Ian Lance Taylor  <iant@google.com>
491
492         PR bootstrap/54609
493         * unknown.c (unknown_fileline): Add state parameter, remove
494         fileline_data parameter, name error_callback parameter.
495         (backtrace_initialize): Add state parameter.
496
497 2012-09-17  Ian Lance Taylor  <iant@google.com>
498
499         * Initial implementation.