]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
* gcc.target/i386/bmi2-bzhi-2.c: Change to runtime test.
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
cc2bfdc7 12016-02-06 John David Anglin <danglin@gcc.gnu.org>
2
3 * mmap.c (MAP_FAILED): Define if not defined.
4
f1717362 52016-01-04 Jakub Jelinek <jakub@redhat.com>
6
7 Update copyright years.
8
b767924b 92015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
10
11 * configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists
12 * configure: Regenerate
13
ab861c80 142015-12-09 John David Anglin <danglin@gcc.gnu.org>
15
16 PR 68115/libfortran
17 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
18 * configure: Regenerate.
19 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
20 to void.
21
d93fbda6 222015-09-17 Ian Lance Taylor <iant@google.com>
23
24 * posix.c (backtrace_open): Cast second argument of open() to int.
25
b7f8771c 262015-09-11 Ian Lance Taylor <iant@google.com>
27
28 * Makefile.am (backtrace.lo): Depend on internal.h.
29 (sort.lo, stest.lo): Add explicit dependencies.
30 * Makefile.in: Rebuild.
31
576ea143 322015-09-09 Hans-Peter Nilsson <hp@axis.com>
33
34 * backtrace.c: #include <sys/types.h>.
35
61ee636a 362015-09-08 Ian Lance Taylor <iant@google.com>
37
38 PR other/67457
39 * backtrace.c: #include "internal.h".
40 (struct backtrace_data): Add can_alloc field.
41 (unwind): If can_alloc is false, don't try to get file/line
42 information.
43 (backtrace_full): Set can_alloc field in bdata.
44 * alloc.c (backtrace_alloc): Don't call error_callback if it is
45 NULL.
46 * mmap.c (backtrace_alloc): Likewise.
47 * internal.h: Update comments for backtrace_alloc and
48 backtrace_free.
49
37bab844 502015-09-08 Ian Lance Taylor <iant@google.com>
51
52 PR other/67457
53 * mmap.c (backtrace_alloc): Correct test for mmap failure.
54
b2d409ee 552015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
56
57 * configure.ac: For spu-*-* targets, set have_fcntl to no.
58 * configure: Regenerate.
59
d0724418 602015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
61
62 * configure.ac: Remove [disable-shared] argument to LT_INIT.
63 Remove setting PIC_FLAG when building as target library.
64 * configure: Regenerate.
65
697bc369 662015-08-26 Hans-Peter Nilsson <hp@axis.com>
67
68 * configure.ac: Only compile with -fPIC if the target
69 supports it.
70 * configure: Regenerate.
71
de04a87e 722015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
73
74 * configure.ac: Set have_mmap to no on spu-*-* targets.
75 * configure: Regenerate.
76
8ae2112f 772015-08-13 Ian Lance Taylor <iant@google.com>
78
79 * dwarf.c (read_function_entry): Add vec_inlined parameter.
80 Change all callers.
81
6112970b 822015-06-11 Martin Sebor <msebor@redhat.com>
83
84 PR sanitizer/65479
85 * dwarf.c (struct line): Add new field idx.
86 (line_compare): Use it.
87 (add_line): Set it.
88 (read_line_info): Reset it.
89
48ee217e 902015-05-29 Tristan Gingold <gingold@adacore.com>
91
92 * pecoff.c: New file.
93 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
94 * Makefile.in: Regenerate.
95 * filetype.awk: Detect pecoff.
96 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
97 Add pecoff.
98 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
99 true.
100 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
101 * configure: Regenerate.
102 * pecoff.c: New file.
103
2af09e95 1042015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
105
106 * Makefile.in: Regenerated with automake-1.11.6.
107 * aclocal.m4: Likewise.
108 * configure: Likewise.
109
a8b04833 1102015-01-24 Matthias Klose <doko@ubuntu.com>
111
112 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
113 * configure: Regenerate.
114
d353bf18 1152015-01-05 Jakub Jelinek <jakub@redhat.com>
116
117 Update copyright years.
118
4e8a08d4 1192014-11-21 H.J. Lu <hongjiu.lu@intel.com>
120
121 PR bootstrap/63784
122 * configure: Regenerated.
123
863e76f9 1242014-11-11 David Malcolm <dmalcolm@redhat.com>
125
126 * ChangeLog.jit: New.
127
7c407808 1282014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
129
130 PR target/63610
131 * configure: Regenerate.
132
f62ce0c7 1332014-10-23 Ian Lance Taylor <iant@google.com>
134
135 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
136 Fix to return void *.
137
af436d54 1382014-05-08 Ian Lance Taylor <iant@google.com>
139
140 * mmap.c (backtrace_free): If freeing a large aligned block of
141 memory, call munmap rather than holding onto it.
142 (backtrace_vector_grow): When growing a vector, double the number
143 of pages requested. When releasing the old version of a grown
144 vector, pass the correct size to backtrace_free.
145
30510c70 1462014-03-07 Ian Lance Taylor <iant@google.com>
147
148 * sort.c (backtrace_qsort): Use middle element as pivot.
149
1329f160 1502014-03-06 Ian Lance Taylor <iant@google.com>
151
152 * sort.c: New file.
153 * stest.c: New file.
154 * internal.h (backtrace_qsort): Declare.
155 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
156 (read_line_info, read_function_entry): Likewise.
157 (read_function_info, build_dwarf_data): Likewise.
158 * elf.c (elf_initialize_syminfo): Likewise.
159 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
160 (stest_SOURCES, stest_LDADD): Define.
161 (check_PROGRAMS): Add stest.
162
2ee407b0 1632014-02-07 Misty De Meo <misty@brew.sh>
164
165 PR target/58710
166 * configure.ac: Use AC_LINK_IFELSE in check for
167 _Unwind_GetIPInfo.
168 * configure: Regenerate.
169
225b76bf 1702014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
171
172 Update copyright years
173
84ade58d 1742013-12-06 Jakub Jelinek <jakub@redhat.com>
175
176 * elf.c (ET_DYN): Undefine and define again.
177 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
178 return early -1 without closing the descriptor.
179 (struct phdr_data): Add exe_descriptor.
180 (phdr_callback): If pd->exe_descriptor is not -1, for very first
181 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
182 otherwise backtrace_close the exe_descriptor if not -1. Adjust
183 call to elf_add.
184 (backtrace_initialize): Adjust call to elf_add. If it returns
185 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
186
583d5f6b 1872013-12-05 Ian Lance Taylor <iant@google.com>
188
189 * alloc.c (backtrace_vector_finish): Add error_callback and data
190 parameters. Call backtrace_vector_release. Return address base.
191 * mmap.c (backtrace_vector_finish): Add error_callback and data
192 parameters. Return address base.
193 * dwarf.c (read_function_info): Get new address base from
194 backtrace_vector_finish.
195 * internal.h (backtrace_vector_finish): Update declaration.
196
881a0840 1972013-11-27 Ian Lance Taylor <iant@google.com>
198
199 * dwarf.c (find_address_ranges): New static function, broken out
200 of build_address_map.
201 (build_address_map): Call it.
202 * btest.c (check): Check for missing filename or function, rather
203 than crashing.
204 (f3): Check that enough frames were returned.
205
8aae250d 2062013-11-19 Jakub Jelinek <jakub@redhat.com>
207
32ccb438 208 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
209 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
210 last argument.
211 * btest.c (struct symdata): Add size field.
212 (callback_three): Add symsize argument. Copy it to the data->size
213 field.
214 (f23): Set symdata.size to 0.
215 (test5): Likewise. If sizeof (int) > 1, lookup address of
216 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
217 values.
218
8aae250d 219 * atomic.c: Include sys/types.h.
220
bcafb4a8 2212013-11-18 Ian Lance Taylor <iant@google.com>
222
223 * configure.ac: Check for support of __atomic extensions.
224 * internal.h: Declare or #define atomic functions for use in
225 backtrace code.
226 * atomic.c: New file.
227 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
228 (dwarf_fileline, backtrace_dwarf_add): Likewise.
229 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
230 (backtrace_initialize): Likewise.
231 * fileline.c (fileline_initialize): Likewise.
232 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
233 * configure, config.h.in, Makefile.in: Rebuild.
234
bcddbfd5 2352013-11-18 Jakub Jelinek <jakub@redhat.com>
236
02dc92c7 237 * elf.c (SHN_UNDEF): Define.
238 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
239 with st_shndx == SHN_UNDEF. Add base_address to address fields.
240 (elf_add): Adjust caller.
241
bcddbfd5 242 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
243
b1a2c599 2442013-11-16 Ian Lance Taylor <iant@google.com>
245
246 * backtrace.h (backtrace_create_state): Correct comment about
247 threading.
248
d4cc0c47 2492013-11-15 Ian Lance Taylor <iant@google.com>
250
251 * backtrace.h (backtrace_syminfo): Update comment and parameter
252 name to take any address, not just a PC value.
253 * elf.c (STT_OBJECT): Define.
254 (elf_nosyms): Rename parameter pc to addr.
255 (elf_symbol_search): Rename local variable pc to addr.
256 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
257 (elf_syminfo): Rename parameter pc to addr.
258 * btest.c (global): New global variable.
259 (test5): New test.
260 (main): Call test5.
261
f9d655c9 2622013-10-17 Ian Lance Taylor <iant@google.com>
263
264 * elf.c (elf_add): Don't get the wrong offsets if a debug section
265 is missing.
266
2bd17377 2672013-10-15 David Malcolm <dmalcolm@redhat.com>
268
269 * configure.ac: Add --enable-host-shared, setting up
270 pre-existing PIC_FLAG variable within Makefile.am et al.
271 * configure: Regenerate.
272
9613c003 2732013-09-20 Alan Modra <amodra@gmail.com>
274
275 * configure: Regenerate.
276
64514244 2772013-07-23 Alexander Monakov <amonakov@ispras.ru>
278
279 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
280
5d62aeb5 2812013-07-23 Alexander Monakov <amonakov@ispras.ru>
282
283 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
284 dl_iterate_phdr callbacks.
285
db79a293 2862013-03-25 Ian Lance Taylor <iant@google.com>
287
288 * alloc.c: #include <sys/types.h>.
289 * mmap.c: Likewise.
290
c187f805 2912013-01-31 Ian Lance Taylor <iant@google.com>
292
293 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
294 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
295
c4e0613e 2962013-01-25 Jakub Jelinek <jakub@redhat.com>
297
298 PR other/56076
299 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
300 attribute was not seen.
301
feded019 3022013-01-16 Ian Lance Taylor <iant@google.com>
303
304 * dwarf.c (struct unit): Add filename and abs_filename fields.
305 (build_address_map): Set new fields when reading unit.
306 (dwarf_lookup_pc): If we don't find an entry in the line table,
307 just return the main file name.
308
bb88d427 3092013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
310
311 Update copyright years.
312
0fe62490 3132013-01-01 Ian Lance Taylor <iant@google.com>
314
315 PR bootstrap/54834
316 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
317 $(MULTIBUILDTOP)/../../gcc/include.
318 * Makefile.in: Rebuild.
319
a666b85b 3202013-01-01 Ian Lance Taylor <iant@google.com>
321
322 PR other/55536
323 * mmap.c (backtrace_alloc): Don't call sync functions if not
324 threaded.
325 (backtrace_free): Likewise.
326
99c67164 3272012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
328
329 * mmapio.c: Define MAP_FAILED if not defined.
330
a7ebc02e 3312012-12-11 Jakub Jelinek <jakub@redhat.com>
332
333 PR bootstrap/54926
334 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
335 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
336 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
337 accepts it.
338 * Makefile.in: Regenerated.
339 * configure: Regenerated.
340
ebfe0e60 3412012-12-07 Jakub Jelinek <jakub@redhat.com>
342
343 PR bootstrap/54926
344 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
345 * Makefile.in: Regenerated.
346
d80b0ad4 3472012-11-20 Ian Lance Taylor <iant@google.com>
348
349 * dwarf.c (read_attribute): Always clear val.
350
47b4f489 3512012-11-13 Ian Lance Taylor <iant@google.com>
352
353 PR other/55312
354 * configure.ac: Only add -Werror if building a target library.
a666b85b 355 * configure: Rebuild.
47b4f489 356
686b3772 3572012-11-12 Ian Lance Taylor <iant@google.com>
358 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
359 Gerald Pfeifer <gerald@pfeifer.com>
360
361 * configure.ac: Check for getexecname.
362 * fileline.c: #include <errno.h>. Define getexecname if not
363 available.
364 (fileline_initialize): Try to find the executable in a few
365 different ways.
366 * print.c (error_callback): Only print the filename if it came
367 from the backtrace state.
368 * configure, config.h.in: Rebuild.
369
bccc33a3 3702012-10-29 Ian Lance Taylor <iant@google.com>
371
372 * mmap.c (backtrace_vector_release): Correct last patch: add
373 aligned, not size.
374
8bca4f13 3752012-10-29 Ian Lance Taylor <iant@google.com>
376
377 * mmap.c (backtrace_vector_release): Make sure freed block is
378 aligned on 8-byte boundary.
379
b60ebf03 3802012-10-26 Ian Lance Taylor <iant@google.com>
381
382 PR other/55087
383 * posix.c (backtrace_open): Add does_not_exist parameter.
384 * elf.c (phdr_callback): Do not warn if shared library could not
385 be opened.
386 * fileline.c (fileline_initialize): Update calls to
387 backtrace_open.
388 * internal.h (backtrace_open): Update declaration.
389
a4a5a77a 3902012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
391
392 PR target/55061
393 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
394 * configure: Regenerate.
395
ff2fe13c 3962012-10-24 Ian Lance Taylor <iant@google.com>
397
398 PR target/55061
399 * configure.ac: Check whether -funwind-tables option works.
400 * configure: Rebuild.
401
90de4704 4022012-10-11 Ian Lance Taylor <iant@google.com>
403
404 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
405 * configure: Rebuild.
406
f54077a5 4072012-10-10 Ian Lance Taylor <iant@google.com>
408
409 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
410 lower case.
411
fa45cf12 4122012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
413
414 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
415
bbcd37bc 4162012-10-09 Ian Lance Taylor <iant@google.com>
417
418 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
419 (backtrace_dwarf_add): Likewise.
420
1bfb5d87 4212012-10-09 Ian Lance Taylor <iant@google.com>
422
423 Add support for tracing through shared libraries.
424 * configure.ac: Check for link.h and dl_iterate_phdr.
425 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
426 ELF macros before #defining them.
427 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
428 dl_iterate_phdr.
429 (struct elf_syminfo_data): Add next field.
430 (elf_initialize_syminfo): Initialize next field.
431 (elf_add_syminfo_data): New static function.
432 (elf_add): New static function, broken out of
433 backtrace_initialize. Call backtrace_dwarf_add instead of
434 backtrace_dwarf_initialize.
435 (struct phdr_data): Define.
436 (phdr_callback): New static function.
437 (backtrace_initialize): Call elf_add.
438 * dwarf.c (struct dwarf_data): Add next and base_address fields.
439 (add_unit_addr): Add base_address parameter. Change all callers.
440 (add_unit_ranges, build_address_map): Likewise.
441 (add_line): Add ddata parameter. Change all callers.
442 (read_line_program, add_function_range): Likewise.
443 (dwarf_lookup_pc): New static function, broken out of
444 dwarf_fileline.
445 (dwarf_fileline): Call dwarf_lookup_pc.
446 (build_dwarf_data): New static function.
447 (backtrace_dwarf_add): New function.
448 (backtrace_dwarf_initialize): Remove.
449 * internal.h (backtrace_dwarf_initialize): Don't declare.
450 (backtrace_dwarf_add): Declare.
451 * configure, config.h.in: Rebuild.
452
fd88e799 4532012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
454
455 * btest.c (f23): Avoid uninitialized variable warning.
1bfb5d87 456
c08b21b7 4572012-10-04 Ian Lance Taylor <iant@google.com>
458
459 * dwarf.c: If the system header files do not declare strnlen,
460 provide our own version.
461
68dd5473 4622012-10-03 Ian Lance Taylor <iant@google.com>
463
464 * dwarf.c (read_uleb128): Fix overflow test.
465 (read_sleb128): Likewise.
466 (build_address_map): Don't change unit_buf.start.
467
536b8dd3 4682012-10-02 Uros Bizjak <ubizjak@gmail.com>
469
86385074 470 PR other/54761
471 * configure.ac (EXTRA_FLAGS): New.
536b8dd3 472 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
86385074 473 * configure, Makefile.in: Regenerate.
536b8dd3 474
babed505 4752012-09-29 Ian Lance Taylor <iant@google.com>
476
477 PR other/54749
478 * fileline.c (fileline_initialize): Pass errnum as -1 when
479 reporting that we could not read executable information after a
480 previous failure.
481
451b8929 4822012-09-27 Ian Lance Taylor <iant@google.com>
483
484 PR bootstrap/54732
485 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
486 * Makefile.am: Add dependencies for all objects.
487 * configure, aclocal.m4, Makefile.in: Rebuild.
488
12073816 4892012-09-27 Ian Lance Taylor <iant@google.com>
490
491 PR other/54726
492 * elf.c (backtrace_initialize): Set *fileln_fn, not
493 state->fileln_fn.
494
837eabff 4952012-09-19 Ian Lance Taylor <iant@google.com>
496
497 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
498 as a target library.
499 * configure: Rebuild.
500
b945b61c 5012012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502 Ian Lance Taylor <iant@google.com>
503
504 * configure.ac (GCC_HEADER_STDINT): Invoke.
505 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
506 * btest.c: Don't include <stdint.h>.
507 * dwarf.c: Likewise.
508 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
509
e9830854 5102012-09-18 Ian Lance Taylor <iant@google.com>
511
512 PR bootstrap/54623
513 * Makefile.am (AM_CPPFLAGS): Define.
514 (AM_CFLAGS): Remove -I options.
515 * Makefile.in: Rebuild.
516
7341e544 5172012-09-18 Ian Lance Taylor <iant@google.com>
518
519 * posix.c (O_BINARY): Define if not defined.
520 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
521 HAVE_FCNTL is defined.
522 * configure.ac: Test for the fcntl function.
523 * configure, config.h.in: Rebuild.
524
d48b4b14 5252012-09-18 Ian Lance Taylor <iant@google.com>
526
527 * btest.c (test1, test2, test3, test4): Add the unused attribute.
528
249b4e85 5292012-09-18 Ian Lance Taylor <iant@google.com>
530
531 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
532
30bd8e8b 5332012-09-18 Ian Lance Taylor <iant@google.com>
534
535 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
536 * mmapio.c: Don't define _GNU_SOURCE.
537 * configure, config.h.in: Rebuild.
538
5f7c240f 5392012-09-18 Ian Lance Taylor <iant@google.com>
540
541 * configure.ac: Check whether strnlen is declared.
542 * dwarf.c: Declare strnlen if not declared.
543 * configure, config.h.in: Rebuild.
544
08a2d161 5452012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
546
547 * fileline.c: Include <stdlib.h>.
548 * mmap.c: Likewise.
549
49414838 5502012-09-17 Ian Lance Taylor <iant@google.com>
551
552 PR bootstrap/54611
553 * nounwind.c (backtrace_full): Rename from backtrace. Add state
554 parameter.
555
39a0a26e 5562012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
557
558 PR bootstrap/54611
559 * nounwind.c (backtrace_simple): Add state parameter.
560
03d628c3 5612012-09-17 Ian Lance Taylor <iant@google.com>
562
563 PR bootstrap/54609
564 * unknown.c (unknown_fileline): Add state parameter, remove
565 fileline_data parameter, name error_callback parameter.
566 (backtrace_initialize): Add state parameter.
567
ecd3459e 5682012-09-17 Ian Lance Taylor <iant@google.com>
569
570 * Initial implementation.
f1717362 571\f
572Copyright (C) 2012-2016 Free Software Foundation, Inc.
573
574Copying and distribution of this file, with or without modification,
575are permitted in any medium without royalty provided the copyright
576notice and this notice are preserved.