Daily bump.
[official-gcc.git] / libbacktrace / ChangeLog
blob9ebce200e37fa76917d17bd454da684bc79134dd
1 2018-01-31  Ian Lance Taylor  <iant@golang.org>
3         * elf.c (elf_add): Close descriptor if we use a debugfile.
4         * btest.c (check_open_files): New static function.
5         (main): Call check_open_files.
7 2018-01-25  Ian Lance Taylor  <iant@golang.org>
9         * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
10         desired CRC is zero.
11         (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
13 2018-01-25  Ian Lance Taylor  <iant@golang.org>
15         * pecoff.c (coff_add): Only release syms_view if it is valid.
17 2018-01-25  Ian Lance Taylor  <iant@golang.org>
19         * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
21 2018-01-24  Ian Lance Taylor  <iant@golang.org>
23         * pecoff.c (coff_add): Use coff_read4, not memcpy.
25 2018-01-24  Ian Lance Taylor  <iant@golang.org>
27         PR other/68239
28         * mmap.c (backtrace_free_locked): Don't put more than 16 entries
29         on the free list.
31 2018-01-19  Tony Reix  <tony.reix@atos.net>
33         * xcoff.c (xcoff_incl_compare): New function.
34         (xcoff_incl_search): New function.
35         (xcoff_process_linenos): Use bsearch to find include file.
36         (xcoff_initialize_fileline): Sort include file information.
38 2018-01-16  Ian Lance Taylor  <iant@golang.org>
40         * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
41         288.
42         (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
43         elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
44         (elf_zlib_default_table): Update.
45         (elf_zlib_default_dist_table): New static array.
46         (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
47         for block type 1.
48         * ztest.c (struct zlib_test): Add uncompressed_len.
49         (tests): Initialize uncompressed_len field.  Add new test case.
50         (test_samples): Use uncompressed_len field.
52 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
54         Update copyright years.
56 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
58         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
59         * aclocal.m4: Regenerate.
60         * Makefile.in: Likewise.
61         * configure: Likewise.
63 2017-10-06  Ian Lance Taylor  <iant@golang.org>
65         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
66         zlib uncompress function.
68 2017-10-05  Ian Lance Taylor  <iant@golang.org>
70         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
71         Read a four byte integer.
72         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
73         boundary before ever calling elf_zlib_fetch.
74         * ztest.c (test_large): Simplify print statements a bit.
76 2017-10-02  Ian Lance Taylor  <iant@golang.org>
78         * ztest.c: #include <errno.h>.
79         (TEST_TIMING): Don't define, don't test.
80         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
81         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
82         (ZLIB_CLOCK_GETTIME_ARG): Define.
83         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
84         * Makefile.am: Likewise.
85         * configure, Makefile.in: Rebuild.
87 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
89         PR other/67165
90         * Makefile.am: Append the content of clock_gettime_link to
91         ztest_LDADD.
92         * configure.ac: Test for the case that clock_gettime is in librt.
93         * Makefile.in: Regenerate.
94         * configure: Likewise.
96         PR other/67165
97         * configure.ac: Check for clock_gettime.
98         * config.h.in: Regenerate.
99         * configure: Likewise.
100         * ztest.c (average_time, test_large): Conditionalize test timing
101         on clock_gettime availability.
103 2017-09-29  Tony Reix  <tony.reix@atos.net>
105         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
106         (STYP_DWARF, SSUBTYP_DW*): Define.
107         (enum dwarf_section): Define.
108         (struct dwsect_info): Define.
109         (xcoff_add): Look for DWARF sections, pass them to
110         backtrace_dwarf_add.
112 2017-09-28  Ian Lance Taylor  <iant@golang.org>
114         PR other/67165
115         * elf.c (__builtin_prefetch): Define if not __GNUC__.
116         (unlikely): Define.
117         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
118         (b_elf_chdr): Define type.
119         (enum debug_section): Add ZDEBUG_xxx values.
120         (debug_section_names): Add names for new sections.
121         (struct debug_section_info): Add compressed field.
122         (elf_zlib_failed, elf_zlib_fetch): New static functions.
123         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
124         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
125         (HUFFMAN_SECONDARY_SHIFT): Define.
126         (ZDEBUG_TABLE_SIZE): Define.
127         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
128         (final_next_secondary): New static variable if
129         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
130         (elf_zlib_inflate_table): New static function.
131         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
132         function to produce fixed Huffman table.
133         (elf_zlib_default_table): New static variable.
134         (elf_zlib_inflate): New static function.
135         (elf_zlib_verify_checksum): Likewise.
136         (elf_zlib_inflate_and_verify): Likewise.
137         (elf_uncompress_zdebug): Likewise.
138         (elf_uncompress_chdr): Likewise.
139         (backtrace_uncompress_zdebug): New extern function.
140         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
141         sections, and uncompress them.
142         * internal.h (backtrace_compress_zdebug): Declare.
143         * ztest.c: New file.
144         * configure.ac: Check for -lz and check whether the linker
145         supports --compress-debug-sections.
146         * Makefile.am (ztest_SOURCES): New variable.
147         (ztest_CFLAGS, ztest_LDADD): New variables.
148         (check_PROGRAMS): Add ztest.
149         (ctestg_SOURCES): New variable.
150         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
151         (ctesta_SOURCES): New variable.
152         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
153         (check_PROGRAMS): Add ctestg and ctesta.
154         * configure, config.h.in, Makefile.in: Rebuild.
156 2017-09-22  Ian Lance Taylor  <iant@golang.org>
158         PR sanitizer/77631
159         * configure.ac: Check for lstat and readlink.
160         * elf.c (lstat, readlink): Provide dummy versions if real versions
161         are not available.
162         * configure, config.h.in: Rebuild.
164 2017-09-21  Ian Lance Taylor  <iant@google.com>
166         PR go/82284
167         * elf.c (backtrace_initialize): Set pd.exe_filename.
169 2017-09-20  Ian Lance Taylor  <iant@golang.org>
170             Denis Khalikov  <d.khalikov@partner.samsung.com>
172         PR sanitizer/77631
173         Support for external debug info.
174         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
175         (S_ISLNK): Define if not defined.
176         (xstrnlen): Define if strnlen is not available.
177         (b_elf_note): Define type.
178         (NT_GNU_BUILD_ID): Define macro.
179         (elf_crc32, elf_crc32_file): New static functions.
180         (elf_is_symlink, elf_readlink): New static functions.
181         (elf_open_debugfile_by_buildid): New static function.
182         (elf_try_debugfile): New static function.
183         (elf_find_debugfile_by_debuglink): New static function.
184         (elf_open_debugfile_by_debuglink): New static function.
185         (elf_add): Add filename and debuginfo parameters.  Adjust all
186         callers.  Look for external debug info notes, and try to fetch
187         debug info from external file.
188         (struct phdr_data): Add exe_filename field.
189         (phdr_callback): Pass filename to elf_add.
190         (backtrace_initialize): Add filename parameter.
191         * internal.h (backtrace_initialize): Add filename parameter.
192         * fileline.c (fileline_initialize): Pass filename to
193         backtrace_initialize.
194         * pecoff.c (fileline_initialize): Add unused filename parameter.
195         * unknown.c (fileline_initialize): Likewise.
196         * xcoff.c (fileline_initialize): Likewise.
197         * configure.ac: Check for objcopy --add-gnu-debuglink.
198         * Makefile.am (dtest): New test target.
199         * configure, Makefile.in: Rebuild.
201 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
203         PR other/81096
204         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
205         * Makefile.in: Regenerate.
207 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
209         PR other/81096
210         * libbacktrace/Makefile.in
211         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
213 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
215         PR bootstrap/81638
216         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
218 2017-07-28  Tony Reix  <tony.reix@atos.net>
220         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
222 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
224         * fileline.c (fileline_initialize): Print pid_t as long.
226 2017-07-26  Tony Reix  <tony.reix@atos.net>
228         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
229         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
230         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
231         * configure, config.h.in: Regenerate.
233 2017-07-21  Tony Reix  <tony.reix@atos.net>
235         * filetype.awk: Add AIX XCOFF type detection.
236         * configure.ac: Recognize xcoff format.
237         * Makefile.am (FORMAT_FILES): Add xcoff.c.
238         * fileline.c: Include <unistd.h>.
239         (fileline_initialize): Add case for AIX procfs.
240         * xcoff.c: New file.
241         * configure, Makefile.in: Rebuild.
243 2017-06-21  Richard Biener  <rguenther@suse.de>
245         * configure.ac: Add AC_SYS_LARGEFILE.
246         * config.h.in: Regenerate.
247         * configure: Likewise.
249 2017-06-11  Ian Lance Taylor  <iant@golang.org>
251         * elf.c (backtrace_initialize): Always set *fileline_fn.
252         * ttest.c: New file.
253         * btest.c: Move support functions into testlib.c.  Change calls to
254         check to pass file name.
255         * testlib.c: New file, copied from (part of) btest.c.
256         * testlib.h: New file, declarations for testlib.c.
257         * edtest.c: Use testlib.h and testlib.c.
258         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
259         * Makefile.am (btest_SOURCES): Add testlib.c.
260         (edtest_SOURCES): Likewise.
261         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
262         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
263         * configure, Makefile.in: Rebuild.
265 2017-05-19  Than McIntosh  <thanm@google.com>
267         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
268         (read_line_header): Don't allocate dirs if dirs_count == 0.
269         * edtest.c: New file.
270         * edtest2.c: New file.
271         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
272         (check_PROGRAMS): Add edtest.
273         (edtest2_build.c, gen_edtest2_build): New targets.
274         * Makefile.in: Rebuild.
276 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
278         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
279         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
281 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
283         Update copyright years.
285 2016-11-15  Matthias Klose  <doko@ubuntu.com>
287         * configure: Regenerate.
289 2016-09-11  Carlos Liam  <carlos@aarzee.me>
291         * all: Remove meaningless trailing whitespace.
293 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
295         PR target/71161
296         * elf.c (phdr_callback) [__i386__]: Add
297         __attribute__((__force_align_arg_pointer__)).
299 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
301         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
302         avoid possible crash.
303         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
304         missing debug info anymore.
306 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
308         * mmap.c (MAP_FAILED): Define if not defined.
310 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
312         Update copyright years.
314 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
316         * configure.ac: Specify that DJGPP do not have mmap
317         even when sys/mman.h exists.
318         * configure: Regenerate
320 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
322         PR libgfortran/68115
323         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
324         * configure: Regenerate.
325         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
326         to void.
328 2015-09-17  Ian Lance Taylor  <iant@google.com>
330         * posix.c (backtrace_open): Cast second argument of open() to int.
332 2015-09-11  Ian Lance Taylor  <iant@google.com>
334         * Makefile.am (backtrace.lo): Depend on internal.h.
335         (sort.lo, stest.lo): Add explicit dependencies.
336         * Makefile.in: Rebuild.
338 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
340         * backtrace.c: #include <sys/types.h>.
342 2015-09-08  Ian Lance Taylor  <iant@google.com>
344         PR other/67457
345         * backtrace.c: #include "internal.h".
346         (struct backtrace_data): Add can_alloc field.
347         (unwind): If can_alloc is false, don't try to get file/line
348         information.
349         (backtrace_full): Set can_alloc field in bdata.
350         * alloc.c (backtrace_alloc): Don't call error_callback if it is
351         NULL.
352         * mmap.c (backtrace_alloc): Likewise.
353         * internal.h: Update comments for backtrace_alloc and
354         backtrace_free.
356 2015-09-08  Ian Lance Taylor  <iant@google.com>
358         PR other/67457
359         * mmap.c (backtrace_alloc): Correct test for mmap failure.
361 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
363         * configure.ac: For spu-*-* targets, set have_fcntl to no.
364         * configure: Regenerate.
366 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
368         * configure.ac: Remove [disable-shared] argument to LT_INIT.
369         Remove setting PIC_FLAG when building as target library.
370         * configure: Regenerate.
372 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
374         * configure.ac: Only compile with -fPIC if the target
375         supports it.
376         * configure: Regenerate.
378 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
380         * configure.ac: Set have_mmap to no on spu-*-* targets.
381         * configure: Regenerate.
383 2015-08-13  Ian Lance Taylor  <iant@google.com>
385         * dwarf.c (read_function_entry): Add vec_inlined parameter.
386         Change all callers.
388 2015-06-11  Martin Sebor  <msebor@redhat.com>
390         PR sanitizer/65479
391         * dwarf.c (struct line): Add new field idx.
392         (line_compare): Use it.
393         (add_line): Set it.
394         (read_line_info): Reset it.
396 2015-05-29  Tristan Gingold  <gingold@adacore.com>
398         * pecoff.c: New file.
399         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
400         * Makefile.in: Regenerate.
401         * filetype.awk: Detect pecoff.
402         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
403         Add pecoff.
404         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
405         true.
406         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
407         * configure: Regenerate.
408         * pecoff.c: New file.
410 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
412         * Makefile.in: Regenerated with automake-1.11.6.
413         * aclocal.m4: Likewise.
414         * configure: Likewise.
416 2015-01-24  Matthias Klose  <doko@ubuntu.com>
418         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
419         * configure: Regenerate.
421 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
423         Update copyright years.
425 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
427         PR bootstrap/63784
428         * configure: Regenerated.
430 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
432         * ChangeLog.jit: New.
434 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
436         PR target/63610
437         * configure: Regenerate.
439 2014-10-23  Ian Lance Taylor  <iant@google.com>
441         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
442         Fix to return void *.
444 2014-05-08  Ian Lance Taylor  <iant@google.com>
446         * mmap.c (backtrace_free): If freeing a large aligned block of
447         memory, call munmap rather than holding onto it.
448         (backtrace_vector_grow): When growing a vector, double the number
449         of pages requested.  When releasing the old version of a grown
450         vector, pass the correct size to backtrace_free.
452 2014-03-07  Ian Lance Taylor  <iant@google.com>
454         * sort.c (backtrace_qsort): Use middle element as pivot.
456 2014-03-06  Ian Lance Taylor  <iant@google.com>
458         * sort.c: New file.
459         * stest.c: New file.
460         * internal.h (backtrace_qsort): Declare.
461         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
462         (read_line_info, read_function_entry): Likewise.
463         (read_function_info, build_dwarf_data): Likewise.
464         * elf.c (elf_initialize_syminfo): Likewise.
465         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
466         (stest_SOURCES, stest_LDADD): Define.
467         (check_PROGRAMS): Add stest.
469 2014-02-07  Misty De Meo  <misty@brew.sh>
471         PR target/58710
472         * configure.ac: Use AC_LINK_IFELSE in check for
473         _Unwind_GetIPInfo.
474         * configure: Regenerate.
476 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
478         Update copyright years
480 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
482         * elf.c (ET_DYN): Undefine and define again.
483         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
484         return early -1 without closing the descriptor.
485         (struct phdr_data): Add exe_descriptor.
486         (phdr_callback): If pd->exe_descriptor is not -1, for very first
487         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
488         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
489         call to elf_add.
490         (backtrace_initialize): Adjust call to elf_add.  If it returns
491         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
493 2013-12-05  Ian Lance Taylor  <iant@google.com>
495         * alloc.c (backtrace_vector_finish): Add error_callback and data
496         parameters.  Call backtrace_vector_release.  Return address base.
497         * mmap.c (backtrace_vector_finish): Add error_callback and data
498         parameters.  Return address base.
499         * dwarf.c (read_function_info): Get new address base from
500         backtrace_vector_finish.
501         * internal.h (backtrace_vector_finish): Update declaration.
503 2013-11-27  Ian Lance Taylor  <iant@google.com>
505         * dwarf.c (find_address_ranges): New static function, broken out
506         of build_address_map.
507         (build_address_map): Call it.
508         * btest.c (check): Check for missing filename or function, rather
509         than crashing.
510         (f3): Check that enough frames were returned.
512 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
514         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
515         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
516         last argument.
517         * btest.c (struct symdata): Add size field.
518         (callback_three): Add symsize argument.  Copy it to the data->size
519         field.
520         (f23): Set symdata.size to 0.
521         (test5): Likewise.  If sizeof (int) > 1, lookup address of
522         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
523         values.
525         * atomic.c: Include sys/types.h.
527 2013-11-18  Ian Lance Taylor  <iant@google.com>
529         * configure.ac: Check for support of __atomic extensions.
530         * internal.h: Declare or #define atomic functions for use in
531         backtrace code.
532         * atomic.c: New file.
533         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
534         (dwarf_fileline, backtrace_dwarf_add): Likewise.
535         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
536         (backtrace_initialize): Likewise.
537         * fileline.c (fileline_initialize): Likewise.
538         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
539         * configure, config.h.in, Makefile.in: Rebuild.
541 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
543         * elf.c (SHN_UNDEF): Define.
544         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
545         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
546         (elf_add): Adjust caller.
548         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
550 2013-11-16  Ian Lance Taylor  <iant@google.com>
552         * backtrace.h (backtrace_create_state): Correct comment about
553         threading.
555 2013-11-15  Ian Lance Taylor  <iant@google.com>
557         * backtrace.h (backtrace_syminfo): Update comment and parameter
558         name to take any address, not just a PC value.
559         * elf.c (STT_OBJECT): Define.
560         (elf_nosyms): Rename parameter pc to addr.
561         (elf_symbol_search): Rename local variable pc to addr.
562         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
563         (elf_syminfo): Rename parameter pc to addr.
564         * btest.c (global): New global variable.
565         (test5): New test.
566         (main): Call test5.
568 2013-10-17  Ian Lance Taylor  <iant@google.com>
570         * elf.c (elf_add): Don't get the wrong offsets if a debug section
571         is missing.
573 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
575         * configure.ac: Add --enable-host-shared, setting up
576         pre-existing PIC_FLAG variable within Makefile.am et al.
577         * configure: Regenerate.
579 2013-09-20  Alan Modra  <amodra@gmail.com>
581         * configure: Regenerate.
583 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
585         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
587 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
589         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
590         dl_iterate_phdr callbacks.
592 2013-03-25  Ian Lance Taylor  <iant@google.com>
594         * alloc.c: #include <sys/types.h>.
595         * mmap.c: Likewise.
597 2013-01-31  Ian Lance Taylor  <iant@google.com>
599         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
600         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
602 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
604         PR other/56076
605         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
606         attribute was not seen.
608 2013-01-16  Ian Lance Taylor  <iant@google.com>
610         * dwarf.c (struct unit): Add filename and abs_filename fields.
611         (build_address_map): Set new fields when reading unit.
612         (dwarf_lookup_pc): If we don't find an entry in the line table,
613         just return the main file name.
615 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
617         Update copyright years.
619 2013-01-01  Ian Lance Taylor  <iant@google.com>
621         PR bootstrap/54834
622         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
623         $(MULTIBUILDTOP)/../../gcc/include.
624         * Makefile.in: Rebuild.
626 2013-01-01  Ian Lance Taylor  <iant@google.com>
628         PR other/55536
629         * mmap.c (backtrace_alloc): Don't call sync functions if not
630         threaded.
631         (backtrace_free): Likewise.
633 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
635         * mmapio.c: Define MAP_FAILED if not defined.
637 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
639         PR bootstrap/54926
640         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
641         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
642         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
643         accepts it.
644         * Makefile.in: Regenerated.
645         * configure: Regenerated.
647 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
649         PR bootstrap/54926
650         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
651         * Makefile.in: Regenerated.
653 2012-11-20  Ian Lance Taylor  <iant@google.com>
655         * dwarf.c (read_attribute): Always clear val.
657 2012-11-13  Ian Lance Taylor  <iant@google.com>
659         PR other/55312
660         * configure.ac: Only add -Werror if building a target library.
661         * configure: Rebuild.
663 2012-11-12  Ian Lance Taylor  <iant@google.com>
664             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
665             Gerald Pfeifer  <gerald@pfeifer.com>
667         * configure.ac: Check for getexecname.
668         * fileline.c: #include <errno.h>.  Define getexecname if not
669         available.
670         (fileline_initialize): Try to find the executable in a few
671         different ways.
672         * print.c (error_callback): Only print the filename if it came
673         from the backtrace state.
674         * configure, config.h.in: Rebuild.
676 2012-10-29  Ian Lance Taylor  <iant@google.com>
678         * mmap.c (backtrace_vector_release): Correct last patch: add
679         aligned, not size.
681 2012-10-29  Ian Lance Taylor  <iant@google.com>
683         * mmap.c (backtrace_vector_release): Make sure freed block is
684         aligned on 8-byte boundary.
686 2012-10-26  Ian Lance Taylor  <iant@google.com>
688         PR other/55087
689         * posix.c (backtrace_open): Add does_not_exist parameter.
690         * elf.c (phdr_callback): Do not warn if shared library could not
691         be opened.
692         * fileline.c (fileline_initialize): Update calls to
693         backtrace_open.
694         * internal.h (backtrace_open): Update declaration.
696 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
698         PR target/55061
699         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
700         * configure: Regenerate.
702 2012-10-24  Ian Lance Taylor  <iant@google.com>
704         PR target/55061
705         * configure.ac: Check whether -funwind-tables option works.
706         * configure: Rebuild.
708 2012-10-11  Ian Lance Taylor  <iant@google.com>
710         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
711         * configure: Rebuild.
713 2012-10-10  Ian Lance Taylor  <iant@google.com>
715         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
716         lower case.
718 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
720         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
722 2012-10-09  Ian Lance Taylor  <iant@google.com>
724         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
725         (backtrace_dwarf_add): Likewise.
727 2012-10-09  Ian Lance Taylor  <iant@google.com>
729         Add support for tracing through shared libraries.
730         * configure.ac: Check for link.h and dl_iterate_phdr.
731         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
732         ELF macros before #defining them.
733         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
734         dl_iterate_phdr.
735         (struct elf_syminfo_data): Add next field.
736         (elf_initialize_syminfo): Initialize next field.
737         (elf_add_syminfo_data): New static function.
738         (elf_add): New static function, broken out of
739         backtrace_initialize.  Call backtrace_dwarf_add instead of
740         backtrace_dwarf_initialize.
741         (struct phdr_data): Define.
742         (phdr_callback): New static function.
743         (backtrace_initialize): Call elf_add.
744         * dwarf.c (struct dwarf_data): Add next and base_address fields.
745         (add_unit_addr): Add base_address parameter.  Change all callers.
746         (add_unit_ranges, build_address_map): Likewise.
747         (add_line): Add ddata parameter.  Change all callers.
748         (read_line_program, add_function_range): Likewise.
749         (dwarf_lookup_pc): New static function, broken out of
750         dwarf_fileline.
751         (dwarf_fileline): Call dwarf_lookup_pc.
752         (build_dwarf_data): New static function.
753         (backtrace_dwarf_add): New function.
754         (backtrace_dwarf_initialize): Remove.
755         * internal.h (backtrace_dwarf_initialize): Don't declare.
756         (backtrace_dwarf_add): Declare.
757         * configure, config.h.in: Rebuild.
759 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
761         * btest.c (f23): Avoid uninitialized variable warning.
763 2012-10-04  Ian Lance Taylor  <iant@google.com>
765         * dwarf.c: If the system header files do not declare strnlen,
766         provide our own version.
768 2012-10-03  Ian Lance Taylor  <iant@google.com>
770         * dwarf.c (read_uleb128): Fix overflow test.
771         (read_sleb128): Likewise.
772         (build_address_map): Don't change unit_buf.start.
774 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
776         PR other/54761
777         * configure.ac (EXTRA_FLAGS): New.
778         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
779         * configure, Makefile.in: Regenerate.
781 2012-09-29  Ian Lance Taylor  <iant@google.com>
783         PR other/54749
784         * fileline.c (fileline_initialize): Pass errnum as -1 when
785         reporting that we could not read executable information after a
786         previous failure.
788 2012-09-27  Ian Lance Taylor  <iant@google.com>
790         PR bootstrap/54732
791         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
792         * Makefile.am: Add dependencies for all objects.
793         * configure, aclocal.m4, Makefile.in: Rebuild.
795 2012-09-27  Ian Lance Taylor  <iant@google.com>
797         PR other/54726
798         * elf.c (backtrace_initialize): Set *fileln_fn, not
799         state->fileln_fn.
801 2012-09-19  Ian Lance Taylor  <iant@google.com>
803         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
804         as a target library.
805         * configure: Rebuild.
807 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
808             Ian Lance Taylor  <iant@google.com>
810         * configure.ac (GCC_HEADER_STDINT): Invoke.
811         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
812         * btest.c: Don't include <stdint.h>.
813         * dwarf.c: Likewise.
814         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
816 2012-09-18  Ian Lance Taylor  <iant@google.com>
818         PR bootstrap/54623
819         * Makefile.am (AM_CPPFLAGS): Define.
820         (AM_CFLAGS): Remove -I options.
821         * Makefile.in: Rebuild.
823 2012-09-18  Ian Lance Taylor  <iant@google.com>
825         * posix.c (O_BINARY): Define if not defined.
826         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
827         HAVE_FCNTL is defined.
828         * configure.ac: Test for the fcntl function.
829         * configure, config.h.in: Rebuild.
831 2012-09-18  Ian Lance Taylor  <iant@google.com>
833         * btest.c (test1, test2, test3, test4): Add the unused attribute.
835 2012-09-18  Ian Lance Taylor  <iant@google.com>
837         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
839 2012-09-18  Ian Lance Taylor  <iant@google.com>
841         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
842         * mmapio.c: Don't define _GNU_SOURCE.
843         * configure, config.h.in: Rebuild.
845 2012-09-18  Ian Lance Taylor  <iant@google.com>
847         * configure.ac: Check whether strnlen is declared.
848         * dwarf.c: Declare strnlen if not declared.
849         * configure, config.h.in: Rebuild.
851 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
853         * fileline.c: Include <stdlib.h>.
854         * mmap.c: Likewise.
856 2012-09-17  Ian Lance Taylor  <iant@google.com>
858         PR bootstrap/54611
859         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
860         parameter.
862 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
864         PR bootstrap/54611
865         * nounwind.c (backtrace_simple): Add state parameter.
867 2012-09-17  Ian Lance Taylor  <iant@google.com>
869         PR bootstrap/54609
870         * unknown.c (unknown_fileline): Add state parameter, remove
871         fileline_data parameter, name error_callback parameter.
872         (backtrace_initialize): Add state parameter.
874 2012-09-17  Ian Lance Taylor  <iant@google.com>
876         * Initial implementation.
878 Copyright (C) 2012-2018 Free Software Foundation, Inc.
880 Copying and distribution of this file, with or without modification,
881 are permitted in any medium without royalty provided the copyright
882 notice and this notice are preserved.