2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libbacktrace / ChangeLog
blob1fcca776759e51cc623faeb06dd1756e0cc89731
1 2018-01-19  Tony Reix  <tony.reix@atos.net>
3         * xcoff.c (xcoff_incl_compare): New function.
4         (xcoff_incl_search): New function.
5         (xcoff_process_linenos): Use bsearch to find include file.
6         (xcoff_initialize_fileline): Sort include file information.
8 2018-01-16  Ian Lance Taylor  <iant@golang.org>
10         * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
11         288.
12         (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
13         elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
14         (elf_zlib_default_table): Update.
15         (elf_zlib_default_dist_table): New static array.
16         (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
17         for block type 1.
18         * ztest.c (struct zlib_test): Add uncompressed_len.
19         (tests): Initialize uncompressed_len field.  Add new test case.
20         (test_samples): Use uncompressed_len field.
22 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
24         Update copyright years.
26 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
28         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
29         * aclocal.m4: Regenerate.
30         * Makefile.in: Likewise.
31         * configure: Likewise.
33 2017-10-06  Ian Lance Taylor  <iant@golang.org>
35         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
36         zlib uncompress function.
38 2017-10-05  Ian Lance Taylor  <iant@golang.org>
40         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
41         Read a four byte integer.
42         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
43         boundary before ever calling elf_zlib_fetch.
44         * ztest.c (test_large): Simplify print statements a bit.
46 2017-10-02  Ian Lance Taylor  <iant@golang.org>
48         * ztest.c: #include <errno.h>.
49         (TEST_TIMING): Don't define, don't test.
50         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
51         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
52         (ZLIB_CLOCK_GETTIME_ARG): Define.
53         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
54         * Makefile.am: Likewise.
55         * configure, Makefile.in: Rebuild.
57 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
59         PR other/67165
60         * Makefile.am: Append the content of clock_gettime_link to
61         ztest_LDADD.
62         * configure.ac: Test for the case that clock_gettime is in librt.
63         * Makefile.in: Regenerate.
64         * configure: Likewise.
66         PR other/67165
67         * configure.ac: Check for clock_gettime.
68         * config.h.in: Regenerate.
69         * configure: Likewise.
70         * ztest.c (average_time, test_large): Conditionalize test timing
71         on clock_gettime availability.
73 2017-09-29  Tony Reix  <tony.reix@atos.net>
75         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
76         (STYP_DWARF, SSUBTYP_DW*): Define.
77         (enum dwarf_section): Define.
78         (struct dwsect_info): Define.
79         (xcoff_add): Look for DWARF sections, pass them to
80         backtrace_dwarf_add.
82 2017-09-28  Ian Lance Taylor  <iant@golang.org>
84         PR other/67165
85         * elf.c (__builtin_prefetch): Define if not __GNUC__.
86         (unlikely): Define.
87         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
88         (b_elf_chdr): Define type.
89         (enum debug_section): Add ZDEBUG_xxx values.
90         (debug_section_names): Add names for new sections.
91         (struct debug_section_info): Add compressed field.
92         (elf_zlib_failed, elf_zlib_fetch): New static functions.
93         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
94         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
95         (HUFFMAN_SECONDARY_SHIFT): Define.
96         (ZDEBUG_TABLE_SIZE): Define.
97         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
98         (final_next_secondary): New static variable if
99         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
100         (elf_zlib_inflate_table): New static function.
101         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
102         function to produce fixed Huffman table.
103         (elf_zlib_default_table): New static variable.
104         (elf_zlib_inflate): New static function.
105         (elf_zlib_verify_checksum): Likewise.
106         (elf_zlib_inflate_and_verify): Likewise.
107         (elf_uncompress_zdebug): Likewise.
108         (elf_uncompress_chdr): Likewise.
109         (backtrace_uncompress_zdebug): New extern function.
110         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
111         sections, and uncompress them.
112         * internal.h (backtrace_compress_zdebug): Declare.
113         * ztest.c: New file.
114         * configure.ac: Check for -lz and check whether the linker
115         supports --compress-debug-sections.
116         * Makefile.am (ztest_SOURCES): New variable.
117         (ztest_CFLAGS, ztest_LDADD): New variables.
118         (check_PROGRAMS): Add ztest.
119         (ctestg_SOURCES): New variable.
120         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
121         (ctesta_SOURCES): New variable.
122         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
123         (check_PROGRAMS): Add ctestg and ctesta.
124         * configure, config.h.in, Makefile.in: Rebuild.
126 2017-09-22  Ian Lance Taylor  <iant@golang.org>
128         PR sanitizer/77631
129         * configure.ac: Check for lstat and readlink.
130         * elf.c (lstat, readlink): Provide dummy versions if real versions
131         are not available.
132         * configure, config.h.in: Rebuild.
134 2017-09-21  Ian Lance Taylor  <iant@google.com>
136         PR go/82284
137         * elf.c (backtrace_initialize): Set pd.exe_filename.
139 2017-09-20  Ian Lance Taylor  <iant@golang.org>
140             Denis Khalikov  <d.khalikov@partner.samsung.com>
142         PR sanitizer/77631
143         Support for external debug info.
144         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
145         (S_ISLNK): Define if not defined.
146         (xstrnlen): Define if strnlen is not available.
147         (b_elf_note): Define type.
148         (NT_GNU_BUILD_ID): Define macro.
149         (elf_crc32, elf_crc32_file): New static functions.
150         (elf_is_symlink, elf_readlink): New static functions.
151         (elf_open_debugfile_by_buildid): New static function.
152         (elf_try_debugfile): New static function.
153         (elf_find_debugfile_by_debuglink): New static function.
154         (elf_open_debugfile_by_debuglink): New static function.
155         (elf_add): Add filename and debuginfo parameters.  Adjust all
156         callers.  Look for external debug info notes, and try to fetch
157         debug info from external file.
158         (struct phdr_data): Add exe_filename field.
159         (phdr_callback): Pass filename to elf_add.
160         (backtrace_initialize): Add filename parameter.
161         * internal.h (backtrace_initialize): Add filename parameter.
162         * fileline.c (fileline_initialize): Pass filename to
163         backtrace_initialize.
164         * pecoff.c (fileline_initialize): Add unused filename parameter.
165         * unknown.c (fileline_initialize): Likewise.
166         * xcoff.c (fileline_initialize): Likewise.
167         * configure.ac: Check for objcopy --add-gnu-debuglink.
168         * Makefile.am (dtest): New test target.
169         * configure, Makefile.in: Rebuild.
171 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
173         PR other/81096
174         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
175         * Makefile.in: Regenerate.
177 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
179         PR other/81096
180         * libbacktrace/Makefile.in
181         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
183 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
185         PR bootstrap/81638
186         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
188 2017-07-28  Tony Reix  <tony.reix@atos.net>
190         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
192 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
194         * fileline.c (fileline_initialize): Print pid_t as long.
196 2017-07-26  Tony Reix  <tony.reix@atos.net>
198         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
199         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
200         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
201         * configure, config.h.in: Regenerate.
203 2017-07-21  Tony Reix  <tony.reix@atos.net>
205         * filetype.awk: Add AIX XCOFF type detection.
206         * configure.ac: Recognize xcoff format.
207         * Makefile.am (FORMAT_FILES): Add xcoff.c.
208         * fileline.c: Include <unistd.h>.
209         (fileline_initialize): Add case for AIX procfs.
210         * xcoff.c: New file.
211         * configure, Makefile.in: Rebuild.
213 2017-06-21  Richard Biener  <rguenther@suse.de>
215         * configure.ac: Add AC_SYS_LARGEFILE.
216         * config.h.in: Regenerate.
217         * configure: Likewise.
219 2017-06-11  Ian Lance Taylor  <iant@golang.org>
221         * elf.c (backtrace_initialize): Always set *fileline_fn.
222         * ttest.c: New file.
223         * btest.c: Move support functions into testlib.c.  Change calls to
224         check to pass file name.
225         * testlib.c: New file, copied from (part of) btest.c.
226         * testlib.h: New file, declarations for testlib.c.
227         * edtest.c: Use testlib.h and testlib.c.
228         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
229         * Makefile.am (btest_SOURCES): Add testlib.c.
230         (edtest_SOURCES): Likewise.
231         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
232         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
233         * configure, Makefile.in: Rebuild.
235 2017-05-19  Than McIntosh  <thanm@google.com>
237         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
238         (read_line_header): Don't allocate dirs if dirs_count == 0.
239         * edtest.c: New file.
240         * edtest2.c: New file.
241         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
242         (check_PROGRAMS): Add edtest.
243         (edtest2_build.c, gen_edtest2_build): New targets.
244         * Makefile.in: Rebuild.
246 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
248         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
249         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
251 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
253         Update copyright years.
255 2016-11-15  Matthias Klose  <doko@ubuntu.com>
257         * configure: Regenerate.
259 2016-09-11  Carlos Liam  <carlos@aarzee.me>
261         * all: Remove meaningless trailing whitespace.
263 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
265         PR target/71161
266         * elf.c (phdr_callback) [__i386__]: Add
267         __attribute__((__force_align_arg_pointer__)).
269 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
271         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
272         avoid possible crash.
273         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
274         missing debug info anymore.
276 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
278         * mmap.c (MAP_FAILED): Define if not defined.
280 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
282         Update copyright years.
284 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
286         * configure.ac: Specify that DJGPP do not have mmap
287         even when sys/mman.h exists.
288         * configure: Regenerate
290 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
292         PR libgfortran/68115
293         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
294         * configure: Regenerate.
295         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
296         to void.
298 2015-09-17  Ian Lance Taylor  <iant@google.com>
300         * posix.c (backtrace_open): Cast second argument of open() to int.
302 2015-09-11  Ian Lance Taylor  <iant@google.com>
304         * Makefile.am (backtrace.lo): Depend on internal.h.
305         (sort.lo, stest.lo): Add explicit dependencies.
306         * Makefile.in: Rebuild.
308 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
310         * backtrace.c: #include <sys/types.h>.
312 2015-09-08  Ian Lance Taylor  <iant@google.com>
314         PR other/67457
315         * backtrace.c: #include "internal.h".
316         (struct backtrace_data): Add can_alloc field.
317         (unwind): If can_alloc is false, don't try to get file/line
318         information.
319         (backtrace_full): Set can_alloc field in bdata.
320         * alloc.c (backtrace_alloc): Don't call error_callback if it is
321         NULL.
322         * mmap.c (backtrace_alloc): Likewise.
323         * internal.h: Update comments for backtrace_alloc and
324         backtrace_free.
326 2015-09-08  Ian Lance Taylor  <iant@google.com>
328         PR other/67457
329         * mmap.c (backtrace_alloc): Correct test for mmap failure.
331 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
333         * configure.ac: For spu-*-* targets, set have_fcntl to no.
334         * configure: Regenerate.
336 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
338         * configure.ac: Remove [disable-shared] argument to LT_INIT.
339         Remove setting PIC_FLAG when building as target library.
340         * configure: Regenerate.
342 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
344         * configure.ac: Only compile with -fPIC if the target
345         supports it.
346         * configure: Regenerate.
348 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
350         * configure.ac: Set have_mmap to no on spu-*-* targets.
351         * configure: Regenerate.
353 2015-08-13  Ian Lance Taylor  <iant@google.com>
355         * dwarf.c (read_function_entry): Add vec_inlined parameter.
356         Change all callers.
358 2015-06-11  Martin Sebor  <msebor@redhat.com>
360         PR sanitizer/65479
361         * dwarf.c (struct line): Add new field idx.
362         (line_compare): Use it.
363         (add_line): Set it.
364         (read_line_info): Reset it.
366 2015-05-29  Tristan Gingold  <gingold@adacore.com>
368         * pecoff.c: New file.
369         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
370         * Makefile.in: Regenerate.
371         * filetype.awk: Detect pecoff.
372         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
373         Add pecoff.
374         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
375         true.
376         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
377         * configure: Regenerate.
378         * pecoff.c: New file.
380 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
382         * Makefile.in: Regenerated with automake-1.11.6.
383         * aclocal.m4: Likewise.
384         * configure: Likewise.
386 2015-01-24  Matthias Klose  <doko@ubuntu.com>
388         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
389         * configure: Regenerate.
391 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
393         Update copyright years.
395 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
397         PR bootstrap/63784
398         * configure: Regenerated.
400 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
402         * ChangeLog.jit: New.
404 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
406         PR target/63610
407         * configure: Regenerate.
409 2014-10-23  Ian Lance Taylor  <iant@google.com>
411         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
412         Fix to return void *.
414 2014-05-08  Ian Lance Taylor  <iant@google.com>
416         * mmap.c (backtrace_free): If freeing a large aligned block of
417         memory, call munmap rather than holding onto it.
418         (backtrace_vector_grow): When growing a vector, double the number
419         of pages requested.  When releasing the old version of a grown
420         vector, pass the correct size to backtrace_free.
422 2014-03-07  Ian Lance Taylor  <iant@google.com>
424         * sort.c (backtrace_qsort): Use middle element as pivot.
426 2014-03-06  Ian Lance Taylor  <iant@google.com>
428         * sort.c: New file.
429         * stest.c: New file.
430         * internal.h (backtrace_qsort): Declare.
431         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
432         (read_line_info, read_function_entry): Likewise.
433         (read_function_info, build_dwarf_data): Likewise.
434         * elf.c (elf_initialize_syminfo): Likewise.
435         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
436         (stest_SOURCES, stest_LDADD): Define.
437         (check_PROGRAMS): Add stest.
439 2014-02-07  Misty De Meo  <misty@brew.sh>
441         PR target/58710
442         * configure.ac: Use AC_LINK_IFELSE in check for
443         _Unwind_GetIPInfo.
444         * configure: Regenerate.
446 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
448         Update copyright years
450 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
452         * elf.c (ET_DYN): Undefine and define again.
453         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
454         return early -1 without closing the descriptor.
455         (struct phdr_data): Add exe_descriptor.
456         (phdr_callback): If pd->exe_descriptor is not -1, for very first
457         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
458         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
459         call to elf_add.
460         (backtrace_initialize): Adjust call to elf_add.  If it returns
461         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
463 2013-12-05  Ian Lance Taylor  <iant@google.com>
465         * alloc.c (backtrace_vector_finish): Add error_callback and data
466         parameters.  Call backtrace_vector_release.  Return address base.
467         * mmap.c (backtrace_vector_finish): Add error_callback and data
468         parameters.  Return address base.
469         * dwarf.c (read_function_info): Get new address base from
470         backtrace_vector_finish.
471         * internal.h (backtrace_vector_finish): Update declaration.
473 2013-11-27  Ian Lance Taylor  <iant@google.com>
475         * dwarf.c (find_address_ranges): New static function, broken out
476         of build_address_map.
477         (build_address_map): Call it.
478         * btest.c (check): Check for missing filename or function, rather
479         than crashing.
480         (f3): Check that enough frames were returned.
482 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
484         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
485         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
486         last argument.
487         * btest.c (struct symdata): Add size field.
488         (callback_three): Add symsize argument.  Copy it to the data->size
489         field.
490         (f23): Set symdata.size to 0.
491         (test5): Likewise.  If sizeof (int) > 1, lookup address of
492         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
493         values.
495         * atomic.c: Include sys/types.h.
497 2013-11-18  Ian Lance Taylor  <iant@google.com>
499         * configure.ac: Check for support of __atomic extensions.
500         * internal.h: Declare or #define atomic functions for use in
501         backtrace code.
502         * atomic.c: New file.
503         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
504         (dwarf_fileline, backtrace_dwarf_add): Likewise.
505         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
506         (backtrace_initialize): Likewise.
507         * fileline.c (fileline_initialize): Likewise.
508         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
509         * configure, config.h.in, Makefile.in: Rebuild.
511 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
513         * elf.c (SHN_UNDEF): Define.
514         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
515         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
516         (elf_add): Adjust caller.
518         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
520 2013-11-16  Ian Lance Taylor  <iant@google.com>
522         * backtrace.h (backtrace_create_state): Correct comment about
523         threading.
525 2013-11-15  Ian Lance Taylor  <iant@google.com>
527         * backtrace.h (backtrace_syminfo): Update comment and parameter
528         name to take any address, not just a PC value.
529         * elf.c (STT_OBJECT): Define.
530         (elf_nosyms): Rename parameter pc to addr.
531         (elf_symbol_search): Rename local variable pc to addr.
532         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
533         (elf_syminfo): Rename parameter pc to addr.
534         * btest.c (global): New global variable.
535         (test5): New test.
536         (main): Call test5.
538 2013-10-17  Ian Lance Taylor  <iant@google.com>
540         * elf.c (elf_add): Don't get the wrong offsets if a debug section
541         is missing.
543 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
545         * configure.ac: Add --enable-host-shared, setting up
546         pre-existing PIC_FLAG variable within Makefile.am et al.
547         * configure: Regenerate.
549 2013-09-20  Alan Modra  <amodra@gmail.com>
551         * configure: Regenerate.
553 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
555         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
557 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
559         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
560         dl_iterate_phdr callbacks.
562 2013-03-25  Ian Lance Taylor  <iant@google.com>
564         * alloc.c: #include <sys/types.h>.
565         * mmap.c: Likewise.
567 2013-01-31  Ian Lance Taylor  <iant@google.com>
569         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
570         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
572 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
574         PR other/56076
575         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
576         attribute was not seen.
578 2013-01-16  Ian Lance Taylor  <iant@google.com>
580         * dwarf.c (struct unit): Add filename and abs_filename fields.
581         (build_address_map): Set new fields when reading unit.
582         (dwarf_lookup_pc): If we don't find an entry in the line table,
583         just return the main file name.
585 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
587         Update copyright years.
589 2013-01-01  Ian Lance Taylor  <iant@google.com>
591         PR bootstrap/54834
592         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
593         $(MULTIBUILDTOP)/../../gcc/include.
594         * Makefile.in: Rebuild.
596 2013-01-01  Ian Lance Taylor  <iant@google.com>
598         PR other/55536
599         * mmap.c (backtrace_alloc): Don't call sync functions if not
600         threaded.
601         (backtrace_free): Likewise.
603 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
605         * mmapio.c: Define MAP_FAILED if not defined.
607 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
609         PR bootstrap/54926
610         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
611         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
612         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
613         accepts it.
614         * Makefile.in: Regenerated.
615         * configure: Regenerated.
617 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
619         PR bootstrap/54926
620         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
621         * Makefile.in: Regenerated.
623 2012-11-20  Ian Lance Taylor  <iant@google.com>
625         * dwarf.c (read_attribute): Always clear val.
627 2012-11-13  Ian Lance Taylor  <iant@google.com>
629         PR other/55312
630         * configure.ac: Only add -Werror if building a target library.
631         * configure: Rebuild.
633 2012-11-12  Ian Lance Taylor  <iant@google.com>
634             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
635             Gerald Pfeifer  <gerald@pfeifer.com>
637         * configure.ac: Check for getexecname.
638         * fileline.c: #include <errno.h>.  Define getexecname if not
639         available.
640         (fileline_initialize): Try to find the executable in a few
641         different ways.
642         * print.c (error_callback): Only print the filename if it came
643         from the backtrace state.
644         * configure, config.h.in: Rebuild.
646 2012-10-29  Ian Lance Taylor  <iant@google.com>
648         * mmap.c (backtrace_vector_release): Correct last patch: add
649         aligned, not size.
651 2012-10-29  Ian Lance Taylor  <iant@google.com>
653         * mmap.c (backtrace_vector_release): Make sure freed block is
654         aligned on 8-byte boundary.
656 2012-10-26  Ian Lance Taylor  <iant@google.com>
658         PR other/55087
659         * posix.c (backtrace_open): Add does_not_exist parameter.
660         * elf.c (phdr_callback): Do not warn if shared library could not
661         be opened.
662         * fileline.c (fileline_initialize): Update calls to
663         backtrace_open.
664         * internal.h (backtrace_open): Update declaration.
666 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
668         PR target/55061
669         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
670         * configure: Regenerate.
672 2012-10-24  Ian Lance Taylor  <iant@google.com>
674         PR target/55061
675         * configure.ac: Check whether -funwind-tables option works.
676         * configure: Rebuild.
678 2012-10-11  Ian Lance Taylor  <iant@google.com>
680         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
681         * configure: Rebuild.
683 2012-10-10  Ian Lance Taylor  <iant@google.com>
685         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
686         lower case.
688 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
690         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
692 2012-10-09  Ian Lance Taylor  <iant@google.com>
694         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
695         (backtrace_dwarf_add): Likewise.
697 2012-10-09  Ian Lance Taylor  <iant@google.com>
699         Add support for tracing through shared libraries.
700         * configure.ac: Check for link.h and dl_iterate_phdr.
701         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
702         ELF macros before #defining them.
703         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
704         dl_iterate_phdr.
705         (struct elf_syminfo_data): Add next field.
706         (elf_initialize_syminfo): Initialize next field.
707         (elf_add_syminfo_data): New static function.
708         (elf_add): New static function, broken out of
709         backtrace_initialize.  Call backtrace_dwarf_add instead of
710         backtrace_dwarf_initialize.
711         (struct phdr_data): Define.
712         (phdr_callback): New static function.
713         (backtrace_initialize): Call elf_add.
714         * dwarf.c (struct dwarf_data): Add next and base_address fields.
715         (add_unit_addr): Add base_address parameter.  Change all callers.
716         (add_unit_ranges, build_address_map): Likewise.
717         (add_line): Add ddata parameter.  Change all callers.
718         (read_line_program, add_function_range): Likewise.
719         (dwarf_lookup_pc): New static function, broken out of
720         dwarf_fileline.
721         (dwarf_fileline): Call dwarf_lookup_pc.
722         (build_dwarf_data): New static function.
723         (backtrace_dwarf_add): New function.
724         (backtrace_dwarf_initialize): Remove.
725         * internal.h (backtrace_dwarf_initialize): Don't declare.
726         (backtrace_dwarf_add): Declare.
727         * configure, config.h.in: Rebuild.
729 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
731         * btest.c (f23): Avoid uninitialized variable warning.
733 2012-10-04  Ian Lance Taylor  <iant@google.com>
735         * dwarf.c: If the system header files do not declare strnlen,
736         provide our own version.
738 2012-10-03  Ian Lance Taylor  <iant@google.com>
740         * dwarf.c (read_uleb128): Fix overflow test.
741         (read_sleb128): Likewise.
742         (build_address_map): Don't change unit_buf.start.
744 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
746         PR other/54761
747         * configure.ac (EXTRA_FLAGS): New.
748         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
749         * configure, Makefile.in: Regenerate.
751 2012-09-29  Ian Lance Taylor  <iant@google.com>
753         PR other/54749
754         * fileline.c (fileline_initialize): Pass errnum as -1 when
755         reporting that we could not read executable information after a
756         previous failure.
758 2012-09-27  Ian Lance Taylor  <iant@google.com>
760         PR bootstrap/54732
761         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
762         * Makefile.am: Add dependencies for all objects.
763         * configure, aclocal.m4, Makefile.in: Rebuild.
765 2012-09-27  Ian Lance Taylor  <iant@google.com>
767         PR other/54726
768         * elf.c (backtrace_initialize): Set *fileln_fn, not
769         state->fileln_fn.
771 2012-09-19  Ian Lance Taylor  <iant@google.com>
773         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
774         as a target library.
775         * configure: Rebuild.
777 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
778             Ian Lance Taylor  <iant@google.com>
780         * configure.ac (GCC_HEADER_STDINT): Invoke.
781         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
782         * btest.c: Don't include <stdint.h>.
783         * dwarf.c: Likewise.
784         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
786 2012-09-18  Ian Lance Taylor  <iant@google.com>
788         PR bootstrap/54623
789         * Makefile.am (AM_CPPFLAGS): Define.
790         (AM_CFLAGS): Remove -I options.
791         * Makefile.in: Rebuild.
793 2012-09-18  Ian Lance Taylor  <iant@google.com>
795         * posix.c (O_BINARY): Define if not defined.
796         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
797         HAVE_FCNTL is defined.
798         * configure.ac: Test for the fcntl function.
799         * configure, config.h.in: Rebuild.
801 2012-09-18  Ian Lance Taylor  <iant@google.com>
803         * btest.c (test1, test2, test3, test4): Add the unused attribute.
805 2012-09-18  Ian Lance Taylor  <iant@google.com>
807         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
809 2012-09-18  Ian Lance Taylor  <iant@google.com>
811         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
812         * mmapio.c: Don't define _GNU_SOURCE.
813         * configure, config.h.in: Rebuild.
815 2012-09-18  Ian Lance Taylor  <iant@google.com>
817         * configure.ac: Check whether strnlen is declared.
818         * dwarf.c: Declare strnlen if not declared.
819         * configure, config.h.in: Rebuild.
821 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
823         * fileline.c: Include <stdlib.h>.
824         * mmap.c: Likewise.
826 2012-09-17  Ian Lance Taylor  <iant@google.com>
828         PR bootstrap/54611
829         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
830         parameter.
832 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
834         PR bootstrap/54611
835         * nounwind.c (backtrace_simple): Add state parameter.
837 2012-09-17  Ian Lance Taylor  <iant@google.com>
839         PR bootstrap/54609
840         * unknown.c (unknown_fileline): Add state parameter, remove
841         fileline_data parameter, name error_callback parameter.
842         (backtrace_initialize): Add state parameter.
844 2012-09-17  Ian Lance Taylor  <iant@google.com>
846         * Initial implementation.
848 Copyright (C) 2012-2018 Free Software Foundation, Inc.
850 Copying and distribution of this file, with or without modification,
851 are permitted in any medium without royalty provided the copyright
852 notice and this notice are preserved.