Make gimple_build_vector take a tree_vector_builder
[official-gcc.git] / libbacktrace / ChangeLog
blob35af7e5c318c5b0896540741102b160b13d5c9c3
1 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
3         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
4         * aclocal.m4: Regenerate.
5         * Makefile.in: Likewise.
6         * configure: Likewise.
8 2017-10-06  Ian Lance Taylor  <iant@golang.org>
10         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
11         zlib uncompress function.
13 2017-10-05  Ian Lance Taylor  <iant@golang.org>
15         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
16         Read a four byte integer.
17         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
18         boundary before ever calling elf_zlib_fetch.
19         * ztest.c (test_large): Simplify print statements a bit.
21 2017-10-02  Ian Lance Taylor  <iant@golang.org>
23         * ztest.c: #include <errno.h>.
24         (TEST_TIMING): Don't define, don't test.
25         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
26         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
27         (ZLIB_CLOCK_GETTIME_ARG): Define.
28         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
29         * Makefile.am: Likewise.
30         * configure, Makefile.in: Rebuild.
32 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
34         PR other/67165
35         * Makefile.am: Append the content of clock_gettime_link to
36         ztest_LDADD.
37         * configure.ac: Test for the case that clock_gettime is in librt.
38         * Makefile.in: Regenerate.
39         * configure: Likewise.
41         PR other/67165
42         * configure.ac: Check for clock_gettime.
43         * config.h.in: Regenerate.
44         * configure: Likewise.
45         * ztest.c (average_time, test_large): Conditionalize test timing
46         on clock_gettime availability.
48 2017-09-29  Tony Reix  <tony.reix@atos.net>
50         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
51         (STYP_DWARF, SSUBTYP_DW*): Define.
52         (enum dwarf_section): Define.
53         (struct dwsect_info): Define.
54         (xcoff_add): Look for DWARF sections, pass them to
55         backtrace_dwarf_add.
57 2017-09-28  Ian Lance Taylor  <iant@golang.org>
59         PR other/67165
60         * elf.c (__builtin_prefetch): Define if not __GNUC__.
61         (unlikely): Define.
62         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
63         (b_elf_chdr): Define type.
64         (enum debug_section): Add ZDEBUG_xxx values.
65         (debug_section_names): Add names for new sections.
66         (struct debug_section_info): Add compressed field.
67         (elf_zlib_failed, elf_zlib_fetch): New static functions.
68         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
69         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
70         (HUFFMAN_SECONDARY_SHIFT): Define.
71         (ZDEBUG_TABLE_SIZE): Define.
72         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
73         (final_next_secondary): New static variable if
74         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
75         (elf_zlib_inflate_table): New static function.
76         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
77         function to produce fixed Huffman table.
78         (elf_zlib_default_table): New static variable.
79         (elf_zlib_inflate): New static function.
80         (elf_zlib_verify_checksum): Likewise.
81         (elf_zlib_inflate_and_verify): Likewise.
82         (elf_uncompress_zdebug): Likewise.
83         (elf_uncompress_chdr): Likewise.
84         (backtrace_uncompress_zdebug): New extern function.
85         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
86         sections, and uncompress them.
87         * internal.h (backtrace_compress_zdebug): Declare.
88         * ztest.c: New file.
89         * configure.ac: Check for -lz and check whether the linker
90         supports --compress-debug-sections.
91         * Makefile.am (ztest_SOURCES): New variable.
92         (ztest_CFLAGS, ztest_LDADD): New variables.
93         (check_PROGRAMS): Add ztest.
94         (ctestg_SOURCES): New variable.
95         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
96         (ctesta_SOURCES): New variable.
97         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
98         (check_PROGRAMS): Add ctestg and ctesta.
99         * configure, config.h.in, Makefile.in: Rebuild.
101 2017-09-22  Ian Lance Taylor  <iant@golang.org>
103         PR sanitizer/77631
104         * configure.ac: Check for lstat and readlink.
105         * elf.c (lstat, readlink): Provide dummy versions if real versions
106         are not available.
107         * configure, config.h.in: Rebuild.
109 2017-09-21  Ian Lance Taylor  <iant@google.com>
111         PR go/82284
112         * elf.c (backtrace_initialize): Set pd.exe_filename.
114 2017-09-20  Ian Lance Taylor  <iant@golang.org>
115             Denis Khalikov  <d.khalikov@partner.samsung.com>
117         PR sanitizer/77631
118         Support for external debug info.
119         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
120         (S_ISLNK): Define if not defined.
121         (xstrnlen): Define if strnlen is not available.
122         (b_elf_note): Define type.
123         (NT_GNU_BUILD_ID): Define macro.
124         (elf_crc32, elf_crc32_file): New static functions.
125         (elf_is_symlink, elf_readlink): New static functions.
126         (elf_open_debugfile_by_buildid): New static function.
127         (elf_try_debugfile): New static function.
128         (elf_find_debugfile_by_debuglink): New static function.
129         (elf_open_debugfile_by_debuglink): New static function.
130         (elf_add): Add filename and debuginfo parameters.  Adjust all
131         callers.  Look for external debug info notes, and try to fetch
132         debug info from external file.
133         (struct phdr_data): Add exe_filename field.
134         (phdr_callback): Pass filename to elf_add.
135         (backtrace_initialize): Add filename parameter.
136         * internal.h (backtrace_initialize): Add filename parameter.
137         * fileline.c (fileline_initialize): Pass filename to
138         backtrace_initialize.
139         * pecoff.c (fileline_initialize): Add unused filename parameter.
140         * unknown.c (fileline_initialize): Likewise.
141         * xcoff.c (fileline_initialize): Likewise.
142         * configure.ac: Check for objcopy --add-gnu-debuglink.
143         * Makefile.am (dtest): New test target.
144         * configure, Makefile.in: Rebuild.
146 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
148         PR other/81096
149         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
150         * Makefile.in: Regenerate.
152 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
154         PR other/81096
155         * libbacktrace/Makefile.in
156         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
158 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
160         PR bootstrap/81638
161         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
163 2017-07-28  Tony Reix  <tony.reix@atos.net>
165         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
167 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
169         * fileline.c (fileline_initialize): Print pid_t as long.
171 2017-07-26  Tony Reix  <tony.reix@atos.net>
173         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
174         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
175         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
176         * configure, config.h.in: Regenerate.
178 2017-07-21  Tony Reix  <tony.reix@atos.net>
180         * filetype.awk: Add AIX XCOFF type detection.
181         * configure.ac: Recognize xcoff format.
182         * Makefile.am (FORMAT_FILES): Add xcoff.c.
183         * fileline.c: Include <unistd.h>.
184         (fileline_initialize): Add case for AIX procfs.
185         * xcoff.c: New file.
186         * configure, Makefile.in: Rebuild.
188 2017-06-21  Richard Biener  <rguenther@suse.de>
190         * configure.ac: Add AC_SYS_LARGEFILE.
191         * config.h.in: Regenerate.
192         * configure: Likewise.
194 2017-06-11  Ian Lance Taylor  <iant@golang.org>
196         * elf.c (backtrace_initialize): Always set *fileline_fn.
197         * ttest.c: New file.
198         * btest.c: Move support functions into testlib.c.  Change calls to
199         check to pass file name.
200         * testlib.c: New file, copied from (part of) btest.c.
201         * testlib.h: New file, declarations for testlib.c.
202         * edtest.c: Use testlib.h and testlib.c.
203         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
204         * Makefile.am (btest_SOURCES): Add testlib.c.
205         (edtest_SOURCES): Likewise.
206         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
207         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
208         * configure, Makefile.in: Rebuild.
210 2017-05-19  Than McIntosh  <thanm@google.com>
212         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
213         (read_line_header): Don't allocate dirs if dirs_count == 0.
214         * edtest.c: New file.
215         * edtest2.c: New file.
216         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
217         (check_PROGRAMS): Add edtest.
218         (edtest2_build.c, gen_edtest2_build): New targets.
219         * Makefile.in: Rebuild.
221 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
223         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
224         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
226 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
228         Update copyright years.
230 2016-11-15  Matthias Klose  <doko@ubuntu.com>
232         * configure: Regenerate.
234 2016-09-11  Carlos Liam  <carlos@aarzee.me>
236         * all: Remove meaningless trailing whitespace.
238 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
240         PR target/71161
241         * elf.c (phdr_callback) [__i386__]: Add
242         __attribute__((__force_align_arg_pointer__)).
244 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
246         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
247         avoid possible crash.
248         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
249         missing debug info anymore.
251 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
253         * mmap.c (MAP_FAILED): Define if not defined.
255 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
257         Update copyright years.
259 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
261         * configure.ac: Specify that DJGPP do not have mmap
262         even when sys/mman.h exists.
263         * configure: Regenerate
265 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
267         PR libgfortran/68115
268         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
269         * configure: Regenerate.
270         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
271         to void.
273 2015-09-17  Ian Lance Taylor  <iant@google.com>
275         * posix.c (backtrace_open): Cast second argument of open() to int.
277 2015-09-11  Ian Lance Taylor  <iant@google.com>
279         * Makefile.am (backtrace.lo): Depend on internal.h.
280         (sort.lo, stest.lo): Add explicit dependencies.
281         * Makefile.in: Rebuild.
283 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
285         * backtrace.c: #include <sys/types.h>.
287 2015-09-08  Ian Lance Taylor  <iant@google.com>
289         PR other/67457
290         * backtrace.c: #include "internal.h".
291         (struct backtrace_data): Add can_alloc field.
292         (unwind): If can_alloc is false, don't try to get file/line
293         information.
294         (backtrace_full): Set can_alloc field in bdata.
295         * alloc.c (backtrace_alloc): Don't call error_callback if it is
296         NULL.
297         * mmap.c (backtrace_alloc): Likewise.
298         * internal.h: Update comments for backtrace_alloc and
299         backtrace_free.
301 2015-09-08  Ian Lance Taylor  <iant@google.com>
303         PR other/67457
304         * mmap.c (backtrace_alloc): Correct test for mmap failure.
306 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
308         * configure.ac: For spu-*-* targets, set have_fcntl to no.
309         * configure: Regenerate.
311 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
313         * configure.ac: Remove [disable-shared] argument to LT_INIT.
314         Remove setting PIC_FLAG when building as target library.
315         * configure: Regenerate.
317 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
319         * configure.ac: Only compile with -fPIC if the target
320         supports it.
321         * configure: Regenerate.
323 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
325         * configure.ac: Set have_mmap to no on spu-*-* targets.
326         * configure: Regenerate.
328 2015-08-13  Ian Lance Taylor  <iant@google.com>
330         * dwarf.c (read_function_entry): Add vec_inlined parameter.
331         Change all callers.
333 2015-06-11  Martin Sebor  <msebor@redhat.com>
335         PR sanitizer/65479
336         * dwarf.c (struct line): Add new field idx.
337         (line_compare): Use it.
338         (add_line): Set it.
339         (read_line_info): Reset it.
341 2015-05-29  Tristan Gingold  <gingold@adacore.com>
343         * pecoff.c: New file.
344         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
345         * Makefile.in: Regenerate.
346         * filetype.awk: Detect pecoff.
347         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
348         Add pecoff.
349         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
350         true.
351         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
352         * configure: Regenerate.
353         * pecoff.c: New file.
355 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
357         * Makefile.in: Regenerated with automake-1.11.6.
358         * aclocal.m4: Likewise.
359         * configure: Likewise.
361 2015-01-24  Matthias Klose  <doko@ubuntu.com>
363         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
364         * configure: Regenerate.
366 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
368         Update copyright years.
370 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
372         PR bootstrap/63784
373         * configure: Regenerated.
375 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
377         * ChangeLog.jit: New.
379 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
381         PR target/63610
382         * configure: Regenerate.
384 2014-10-23  Ian Lance Taylor  <iant@google.com>
386         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
387         Fix to return void *.
389 2014-05-08  Ian Lance Taylor  <iant@google.com>
391         * mmap.c (backtrace_free): If freeing a large aligned block of
392         memory, call munmap rather than holding onto it.
393         (backtrace_vector_grow): When growing a vector, double the number
394         of pages requested.  When releasing the old version of a grown
395         vector, pass the correct size to backtrace_free.
397 2014-03-07  Ian Lance Taylor  <iant@google.com>
399         * sort.c (backtrace_qsort): Use middle element as pivot.
401 2014-03-06  Ian Lance Taylor  <iant@google.com>
403         * sort.c: New file.
404         * stest.c: New file.
405         * internal.h (backtrace_qsort): Declare.
406         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
407         (read_line_info, read_function_entry): Likewise.
408         (read_function_info, build_dwarf_data): Likewise.
409         * elf.c (elf_initialize_syminfo): Likewise.
410         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
411         (stest_SOURCES, stest_LDADD): Define.
412         (check_PROGRAMS): Add stest.
414 2014-02-07  Misty De Meo  <misty@brew.sh>
416         PR target/58710
417         * configure.ac: Use AC_LINK_IFELSE in check for
418         _Unwind_GetIPInfo.
419         * configure: Regenerate.
421 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
423         Update copyright years
425 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
427         * elf.c (ET_DYN): Undefine and define again.
428         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
429         return early -1 without closing the descriptor.
430         (struct phdr_data): Add exe_descriptor.
431         (phdr_callback): If pd->exe_descriptor is not -1, for very first
432         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
433         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
434         call to elf_add.
435         (backtrace_initialize): Adjust call to elf_add.  If it returns
436         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
438 2013-12-05  Ian Lance Taylor  <iant@google.com>
440         * alloc.c (backtrace_vector_finish): Add error_callback and data
441         parameters.  Call backtrace_vector_release.  Return address base.
442         * mmap.c (backtrace_vector_finish): Add error_callback and data
443         parameters.  Return address base.
444         * dwarf.c (read_function_info): Get new address base from
445         backtrace_vector_finish.
446         * internal.h (backtrace_vector_finish): Update declaration.
448 2013-11-27  Ian Lance Taylor  <iant@google.com>
450         * dwarf.c (find_address_ranges): New static function, broken out
451         of build_address_map.
452         (build_address_map): Call it.
453         * btest.c (check): Check for missing filename or function, rather
454         than crashing.
455         (f3): Check that enough frames were returned.
457 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
459         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
460         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
461         last argument.
462         * btest.c (struct symdata): Add size field.
463         (callback_three): Add symsize argument.  Copy it to the data->size
464         field.
465         (f23): Set symdata.size to 0.
466         (test5): Likewise.  If sizeof (int) > 1, lookup address of
467         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
468         values.
470         * atomic.c: Include sys/types.h.
472 2013-11-18  Ian Lance Taylor  <iant@google.com>
474         * configure.ac: Check for support of __atomic extensions.
475         * internal.h: Declare or #define atomic functions for use in
476         backtrace code.
477         * atomic.c: New file.
478         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
479         (dwarf_fileline, backtrace_dwarf_add): Likewise.
480         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
481         (backtrace_initialize): Likewise.
482         * fileline.c (fileline_initialize): Likewise.
483         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
484         * configure, config.h.in, Makefile.in: Rebuild.
486 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
488         * elf.c (SHN_UNDEF): Define.
489         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
490         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
491         (elf_add): Adjust caller.
493         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
495 2013-11-16  Ian Lance Taylor  <iant@google.com>
497         * backtrace.h (backtrace_create_state): Correct comment about
498         threading.
500 2013-11-15  Ian Lance Taylor  <iant@google.com>
502         * backtrace.h (backtrace_syminfo): Update comment and parameter
503         name to take any address, not just a PC value.
504         * elf.c (STT_OBJECT): Define.
505         (elf_nosyms): Rename parameter pc to addr.
506         (elf_symbol_search): Rename local variable pc to addr.
507         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
508         (elf_syminfo): Rename parameter pc to addr.
509         * btest.c (global): New global variable.
510         (test5): New test.
511         (main): Call test5.
513 2013-10-17  Ian Lance Taylor  <iant@google.com>
515         * elf.c (elf_add): Don't get the wrong offsets if a debug section
516         is missing.
518 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
520         * configure.ac: Add --enable-host-shared, setting up
521         pre-existing PIC_FLAG variable within Makefile.am et al.
522         * configure: Regenerate.
524 2013-09-20  Alan Modra  <amodra@gmail.com>
526         * configure: Regenerate.
528 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
530         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
532 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
534         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
535         dl_iterate_phdr callbacks.
537 2013-03-25  Ian Lance Taylor  <iant@google.com>
539         * alloc.c: #include <sys/types.h>.
540         * mmap.c: Likewise.
542 2013-01-31  Ian Lance Taylor  <iant@google.com>
544         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
545         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
547 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
549         PR other/56076
550         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
551         attribute was not seen.
553 2013-01-16  Ian Lance Taylor  <iant@google.com>
555         * dwarf.c (struct unit): Add filename and abs_filename fields.
556         (build_address_map): Set new fields when reading unit.
557         (dwarf_lookup_pc): If we don't find an entry in the line table,
558         just return the main file name.
560 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
562         Update copyright years.
564 2013-01-01  Ian Lance Taylor  <iant@google.com>
566         PR bootstrap/54834
567         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
568         $(MULTIBUILDTOP)/../../gcc/include.
569         * Makefile.in: Rebuild.
571 2013-01-01  Ian Lance Taylor  <iant@google.com>
573         PR other/55536
574         * mmap.c (backtrace_alloc): Don't call sync functions if not
575         threaded.
576         (backtrace_free): Likewise.
578 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
580         * mmapio.c: Define MAP_FAILED if not defined.
582 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
584         PR bootstrap/54926
585         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
586         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
587         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
588         accepts it.
589         * Makefile.in: Regenerated.
590         * configure: Regenerated.
592 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
594         PR bootstrap/54926
595         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
596         * Makefile.in: Regenerated.
598 2012-11-20  Ian Lance Taylor  <iant@google.com>
600         * dwarf.c (read_attribute): Always clear val.
602 2012-11-13  Ian Lance Taylor  <iant@google.com>
604         PR other/55312
605         * configure.ac: Only add -Werror if building a target library.
606         * configure: Rebuild.
608 2012-11-12  Ian Lance Taylor  <iant@google.com>
609             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
610             Gerald Pfeifer  <gerald@pfeifer.com>
612         * configure.ac: Check for getexecname.
613         * fileline.c: #include <errno.h>.  Define getexecname if not
614         available.
615         (fileline_initialize): Try to find the executable in a few
616         different ways.
617         * print.c (error_callback): Only print the filename if it came
618         from the backtrace state.
619         * configure, config.h.in: Rebuild.
621 2012-10-29  Ian Lance Taylor  <iant@google.com>
623         * mmap.c (backtrace_vector_release): Correct last patch: add
624         aligned, not size.
626 2012-10-29  Ian Lance Taylor  <iant@google.com>
628         * mmap.c (backtrace_vector_release): Make sure freed block is
629         aligned on 8-byte boundary.
631 2012-10-26  Ian Lance Taylor  <iant@google.com>
633         PR other/55087
634         * posix.c (backtrace_open): Add does_not_exist parameter.
635         * elf.c (phdr_callback): Do not warn if shared library could not
636         be opened.
637         * fileline.c (fileline_initialize): Update calls to
638         backtrace_open.
639         * internal.h (backtrace_open): Update declaration.
641 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
643         PR target/55061
644         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
645         * configure: Regenerate.
647 2012-10-24  Ian Lance Taylor  <iant@google.com>
649         PR target/55061
650         * configure.ac: Check whether -funwind-tables option works.
651         * configure: Rebuild.
653 2012-10-11  Ian Lance Taylor  <iant@google.com>
655         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
656         * configure: Rebuild.
658 2012-10-10  Ian Lance Taylor  <iant@google.com>
660         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
661         lower case.
663 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
665         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
667 2012-10-09  Ian Lance Taylor  <iant@google.com>
669         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
670         (backtrace_dwarf_add): Likewise.
672 2012-10-09  Ian Lance Taylor  <iant@google.com>
674         Add support for tracing through shared libraries.
675         * configure.ac: Check for link.h and dl_iterate_phdr.
676         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
677         ELF macros before #defining them.
678         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
679         dl_iterate_phdr.
680         (struct elf_syminfo_data): Add next field.
681         (elf_initialize_syminfo): Initialize next field.
682         (elf_add_syminfo_data): New static function.
683         (elf_add): New static function, broken out of
684         backtrace_initialize.  Call backtrace_dwarf_add instead of
685         backtrace_dwarf_initialize.
686         (struct phdr_data): Define.
687         (phdr_callback): New static function.
688         (backtrace_initialize): Call elf_add.
689         * dwarf.c (struct dwarf_data): Add next and base_address fields.
690         (add_unit_addr): Add base_address parameter.  Change all callers.
691         (add_unit_ranges, build_address_map): Likewise.
692         (add_line): Add ddata parameter.  Change all callers.
693         (read_line_program, add_function_range): Likewise.
694         (dwarf_lookup_pc): New static function, broken out of
695         dwarf_fileline.
696         (dwarf_fileline): Call dwarf_lookup_pc.
697         (build_dwarf_data): New static function.
698         (backtrace_dwarf_add): New function.
699         (backtrace_dwarf_initialize): Remove.
700         * internal.h (backtrace_dwarf_initialize): Don't declare.
701         (backtrace_dwarf_add): Declare.
702         * configure, config.h.in: Rebuild.
704 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
706         * btest.c (f23): Avoid uninitialized variable warning.
708 2012-10-04  Ian Lance Taylor  <iant@google.com>
710         * dwarf.c: If the system header files do not declare strnlen,
711         provide our own version.
713 2012-10-03  Ian Lance Taylor  <iant@google.com>
715         * dwarf.c (read_uleb128): Fix overflow test.
716         (read_sleb128): Likewise.
717         (build_address_map): Don't change unit_buf.start.
719 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
721         PR other/54761
722         * configure.ac (EXTRA_FLAGS): New.
723         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
724         * configure, Makefile.in: Regenerate.
726 2012-09-29  Ian Lance Taylor  <iant@google.com>
728         PR other/54749
729         * fileline.c (fileline_initialize): Pass errnum as -1 when
730         reporting that we could not read executable information after a
731         previous failure.
733 2012-09-27  Ian Lance Taylor  <iant@google.com>
735         PR bootstrap/54732
736         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
737         * Makefile.am: Add dependencies for all objects.
738         * configure, aclocal.m4, Makefile.in: Rebuild.
740 2012-09-27  Ian Lance Taylor  <iant@google.com>
742         PR other/54726
743         * elf.c (backtrace_initialize): Set *fileln_fn, not
744         state->fileln_fn.
746 2012-09-19  Ian Lance Taylor  <iant@google.com>
748         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
749         as a target library.
750         * configure: Rebuild.
752 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
753             Ian Lance Taylor  <iant@google.com>
755         * configure.ac (GCC_HEADER_STDINT): Invoke.
756         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
757         * btest.c: Don't include <stdint.h>.
758         * dwarf.c: Likewise.
759         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
761 2012-09-18  Ian Lance Taylor  <iant@google.com>
763         PR bootstrap/54623
764         * Makefile.am (AM_CPPFLAGS): Define.
765         (AM_CFLAGS): Remove -I options.
766         * Makefile.in: Rebuild.
768 2012-09-18  Ian Lance Taylor  <iant@google.com>
770         * posix.c (O_BINARY): Define if not defined.
771         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
772         HAVE_FCNTL is defined.
773         * configure.ac: Test for the fcntl function.
774         * configure, config.h.in: Rebuild.
776 2012-09-18  Ian Lance Taylor  <iant@google.com>
778         * btest.c (test1, test2, test3, test4): Add the unused attribute.
780 2012-09-18  Ian Lance Taylor  <iant@google.com>
782         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
784 2012-09-18  Ian Lance Taylor  <iant@google.com>
786         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
787         * mmapio.c: Don't define _GNU_SOURCE.
788         * configure, config.h.in: Rebuild.
790 2012-09-18  Ian Lance Taylor  <iant@google.com>
792         * configure.ac: Check whether strnlen is declared.
793         * dwarf.c: Declare strnlen if not declared.
794         * configure, config.h.in: Rebuild.
796 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
798         * fileline.c: Include <stdlib.h>.
799         * mmap.c: Likewise.
801 2012-09-17  Ian Lance Taylor  <iant@google.com>
803         PR bootstrap/54611
804         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
805         parameter.
807 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
809         PR bootstrap/54611
810         * nounwind.c (backtrace_simple): Add state parameter.
812 2012-09-17  Ian Lance Taylor  <iant@google.com>
814         PR bootstrap/54609
815         * unknown.c (unknown_fileline): Add state parameter, remove
816         fileline_data parameter, name error_callback parameter.
817         (backtrace_initialize): Add state parameter.
819 2012-09-17  Ian Lance Taylor  <iant@google.com>
821         * Initial implementation.
823 Copyright (C) 2012-2017 Free Software Foundation, Inc.
825 Copying and distribution of this file, with or without modification,
826 are permitted in any medium without royalty provided the copyright
827 notice and this notice are preserved.