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