PR c++/67184 (again)
[official-gcc.git] / libbacktrace / ChangeLog
blobe601eac76a985f598726686449ed1d8c529e9319
1 2019-05-24  Clement Chigot  <clement.chigot@atos.net>
3         * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
4         test_elf_64.
5         * Makefile.in: Regenerate.
7 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9         * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
10         handling.
11         * configure: Regenerate.
13 2019-03-11  Ian Lance Taylor  <iant@golang.org>
15         PR libbacktrace/89669
16         * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
17         HAVE_ELF.
18         * Makefile.in: Regenerate.
20 2019-02-26  Tom de Vries  <tdevries@suse.de>
22         * btest.c (test5): Allow global.* as minimal symbol name for global.
24 2019-02-26  Tom de Vries  <tdevries@suse.de>
26         * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
27         * Makefile.in: Regenerate.
29 2019-02-12  Tom de Vries  <tdevries@suse.de>
31         PR libbacktrace/81983
32         * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
34 2019-02-10  Tom de Vries  <tdevries@suse.de>
36         * Makefile.am (BUILDTESTS): Add btest_lto.
37         * Makefile.in: Regenerate.
38         * btest.c (test1, f2, f3, test3, f22, f23): Declare with
39         __attribute__((noclone)).
41 2019-02-08  Tom de Vries  <tdevries@suse.de>
43         * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
44         * print.c (backtrace_print): Same.
45         * simple.c (backtrace_simple): Same.
47 2019-02-08  Tom de Vries  <tdevries@suse.de>
49         PR libbacktrace/78063
50         * dwarf.c (build_address_map): Keep all parsed units.
51         (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
53 2019-01-31  Tom de Vries  <tdevries@suse.de>
55         PR libbacktrace/89136
56         * elf.c (elf_add): Read build-id if with_buildid_data.  Fix
57         'debugaltlink_name_len =+ 1'.
59 2019-01-29  Tom de Vries  <tdevries@suse.de>
61         * install-debuginfo-for-buildid.sh.in: New script.
62         * Makefile.am (check_PROGRAMS): Add b2test and b3test.
63         (TESTS): Add b2test_buildid and b3test_dwz_buildid.
64         * Makefile.in: Regenerate.
65         * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
66         (READELF): Set with AC_CHECK_PROG.
67         (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
68         * configure: Regenerate.
69         * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
70         (elf_open_debugfile_by_buildid): ... here.
72 2019-01-29  Tom de Vries  <tdevries@suse.de>
74         * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
75         allocfail.
76         (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
77         (check_PROGRAMS): Add BUILDTESTS.
78         * Makefile.in: Regenerate.
80 2019-01-28  Tom de Vries  <tdevries@suse.de>
82         * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
83         Use $< to access prerequisite.
84         * Makefile.in: Regenerate.
86 2019-01-25  Nathan Sidwell  <nathan@acm.org>
88         * elf.c (elf_add): Pass "" filename to recursive call with
89         separated debug.
91 2019-01-25  Tom de Vries  <tdevries@suse.de>
93         * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
94         filename == "".
95         * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
96         * Makefile.in: Regenerate.
98 2019-01-25  Tom de Vries  <tdevries@suse.de>
100         * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
101         (TESTS): Rename dtest to btest_gnudebuglink.
102         * Makefile.in: Regenerate.
104 2019-01-23  Tom de Vries  <tdevries@suse.de>
106         * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
107         (units_search, find_unit): Use size_t for offset.
108         (build_address_map): Use size_t for unit_offset.
110 2019-01-20  Gerald Pfeifer  <gerald@pfeifer.com>
112         * allocfail.c (main): Increase portability of printf statement.
114 2019-01-18  Ian Lance Taylor  <iant@golang.org>
116         PR libbacktrace/88890
117         * mmapio.c (backtrace_get_view): Change size parameter to
118         uint64_t.  Check that value fits in size_t.
119         * read.c (backtrace_get_view): Likewise.
120         * internal.h (backtrace_get_view): Update declaration.
121         * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
123 2019-01-17  Tom de Vries  <tdevries@suse.de>
125         PR libbacktrace/82857
126         * configure.ac (DWZ): Set with AC_CHECK_PROG.
127         (HAVE_DWZ): Set with AM_CONDITIONAL.
128         * configure: Regenerate.
129         * Makefile.am (TESTS): Add btest_dwz.
130         * Makefile.in: Regenerate.
132 2019-01-17  Tom de Vries  <tdevries@suse.de>
134         PR libbacktrace/82857
135         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
136         (read_attribute): Handle DW_FORM_GNU_ref_alt using
137         ATTR_VAL_REF_ALT_INFO.
138         (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
140 2019-01-17  Tom de Vries  <tdevries@suse.de>
142         * dwarf.c (struct unit): Add low_offset and high_offset fields.
143         (struct unit_vector): New type.
144         (struct dwarf_data): Add units and units_counts fields.
145         (find_unit): New function.
146         (find_address_ranges): Add and handle unit_tag parameter.
147         (build_address_map): Add and handle units_vec parameter.
148         (build_dwarf_data): Pass units_vec to build_address_map.  Store resulting
149         units vector.
151 2019-01-17  Tom de Vries  <tdevries@suse.de>
153         PR libbacktrace/82857
154         * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
155         using altlink.
157 2019-01-17  Tom de Vries  <tdevries@suse.de>
159         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
160         (read_attribute): Add altlink parameter.  Handle missing altlink for
161         DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
162         (find_address_ranges, build_address_map, build_dwarf_data): Add and
163         handle altlink parameter.
164         (read_referenced_name, read_function_entry): Add argument to
165         read_attribute call.
167 2019-01-17  Tom de Vries  <tdevries@suse.de>
169         * dwarf.c (struct dwarf_data): Add altlink field.
170         (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
171         * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
172         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
173         * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
174         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
175         * xcoff.c (xcoff_add): Same.
177 2019-01-17  Tom de Vries  <tdevries@suse.de>
179         * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
180         * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
181         * elf.c (elf_add): Add and handle fileline_entry parameter.  Add
182         argument to backtrace_dwarf_add call.
183         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
184         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
185         * xcoff.c (xcoff_add): Same.
187 2019-01-17  Tom de Vries  <tdevries@suse.de>
189         * elf.c (elf_add): Add and handle with_buildid_data and
190         with_buildid_size parameters.  Handle .gnu_debugaltlink section.
191         (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
193 2019-01-16  Tom de Vries  <tdevries@suse.de>
195         * dwarf.c (read_referenced_name_from_attr): New function.  Factor out
196         of ...
197         (read_referenced_name): ... here, and ...
198         (read_function_entry): ... here.
200 2019-01-16  Tom de Vries  <tdevries@suse.de>
202         * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
203         name.
204         (read_function_entry): Same.  Don't allow name found via
205         DW_AT_abstract_origin or case DW_AT_specification to override linkage
206         name.
208 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
210         PR other/16615
212         * backtrace.h: Mechanically replace "can not" with "cannot".
214 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
216         Update copyright years.
218 2018-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
220         * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
221         in sed pattern.
222         * Makefile.in: Regenerate.
224 2018-12-28  Tom de Vries  <tdevries@suse.de>
226         * dwarf.c (build_address_map): Reuse unused units.
228 2018-12-28  Tom de Vries  <tdevries@suse.de>
230         * dwarf.c (build_address_map): Simplify by removing local variable
231         abbrevs.
233 2018-12-28  Ian Lance Taylor  <iant@golang.org>
234             Tom de Vries  <tdevries@suse.de>
236         PR libbacktrace/88063
237         * dwarf.c (free_unit_addrs_vector): Remove.
238         (build_address_map): Keep track of allocated units in vector.  Free
239         allocated units and corresponding abbrevs upon failure.  Remove now
240         redundant call to free_unit_addrs_vector.  Free addrs vector upon
241         failure.  Free allocated unit vector.
243 2018-12-28  Tom de Vries  <tdevries@suse.de>
245         * dwarf.c (build_address_map): Free addrs vector upon failure.
247 2018-12-14  Tom de Vries  <tdevries@suse.de>
249         PR testsuite/88491
250         * allocfail.sh: Remove "set -o pipefail".
252 2018-12-12  Tom de Vries  <tdevries@suse.de>
254         * Makefile.am (TESTS): Add allocfail.sh.
255         (check_PROGRAMS): Add allocfail.
256         * Makefile.in: Regenerate.
257         * instrumented_alloc.c: New file.  Redefine malloc and realloc.
258         Include alloc.c.
259         * allocfail.c: New file.
260         * allocfail.sh: New file.
262 2018-11-30  Tom de Vries  <tdevries@suse.de>
264         * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
265         test_xcoff_64, test_pecoff and test_unknown.
266         * Makefile.in: Regenerate.
267         * test_format.c: New file.
269 2018-11-30  Tom de Vries  <tdevries@suse.de>
271         * Makefile.am : Add _with_alloc version for each test in
272         check_PROGRAMS.
273         * Makefile.in: Regenerate.
275 2018-11-30  Tom de Vries  <tdevries@suse.de>
277         * internal.h (backtrace_vector_free): New static inline fuction,
278         factored out of ...
279         * dwarf.c (read_line_info): ... here.
281 2018-11-28  Tom de Vries  <tdevries@suse.de>
283         * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
284         failure.
286 2018-11-27  Tom de Vries  <tdevries@suse.de>
288         * mmap.c (backtrace_vector_release): Same.
289         * unittest.c (test1): Add check.
291 2018-11-27  Tom de Vries  <tdevries@suse.de>
293         * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
294         instead of realloc.
295         * Makefile.am (check_PROGRAMS): Add unittest.
296         * Makefile.in: Regenerate.
297         * unittest.c: New file.
299 2018-11-22  Tom de Vries  <tdevries@suse.de>
301         * dwarf.c (read_initial_length): Factor out of ...
302         (build_address_map, read_line_info): ... here.
304 2018-11-21  Tom de Vries  <tdevries@suse.de>
306         * dwarf.c (read_string): Factor out of ...
307         (read_attribute, read_line_header, read_line_program): ... here.
309 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
311         PR bootstrap/82856
312         * Makefile.am: Include multilib.am.
313         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
314         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
316 2018-10-05  Ian Lance Taylor  <iant@golang.org>
318         PR libbacktrace/87529
319         * backtrace.h: Document that backtrace_create_state should be
320         called only once.
322 2018-08-05 Iain Buclaw  <ibuclaw@gdcproject.org>
324         * configure.ac: Move define of HAVE_ZLIB into check for -lz.
325         * Makefile.in: Regenerate.
326         * config.h.in: Likewise.
327         * configure: Likewise.
329 2018-08-01  Tony Reix  <tony.reix@atos.net>
331         * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
332         (struct xcoff_func, struct xcoff_func_vector): New structs.
333         (xcoff_syminfo): Drop leading dot from symbol name.
334         (xcoff_line_compare, xcoff_line_search): Remove.
335         (xcoff_func_compare, xcoff_func_search): New static functions.
336         (xcoff_lookup_pc): Search function table.
337         (xcoff_add_line, xcoff_process_linenos): Remove.
338         (xcoff_initialize_fileline): Build function table.
340 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
342         PR other/86198
343         * elf.c (elf_add): Increase ".note.gnu.build-id" section size
344         checking up to 36 bytes.
346 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
348         * configure: Regenerated.
350 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
352         * configure: Regenerated.
354 2018-04-17  Ian Lance Taylor  <iant@golang.org>
356         * backtrace.c: Revert last two changes.  Don't call mmap
357         directly.
359 2018-04-17  Ian Lance Taylor  <iant@golang.org>
361         * backtrace.c: Include backtrace-supported.h before checking
362         BACKTRACE_USES_MALLOC.
364 2018-04-17  Ian Lance Taylor  <iant@golang.org>
366         * backtrace.c (backtrace_full): When testing whether we can
367         allocate memory, call mmap directly, and munmap the memory.
369 2018-04-04  Jakub Jelinek  <jakub@redhat.com>
371         PR other/85161
372         * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
373         big endian, only use 32-bit loads if endianity macros are predefined
374         and indicate big or little endian.
376 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
378         PR target/84148
379         * configure: Regenerate.
381 2018-02-15  Jakub Jelinek  <jakub@redhat.com>
383         PR other/82368
384         * elf.c (SHT_PROGBITS): Undefine and define.
386 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
388         PR other/82368
389         * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
390         (struct elf_ppc64_opd_data): New type.
391         (elf_initialize_syminfo): Add opd argument, handle symbols
392         pointing into the PowerPC64 ELFv1 .opd section.
393         (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
394         to structure with .opd data to elf_initialize_syminfo.
396 2018-01-31  Ian Lance Taylor  <iant@golang.org>
398         * elf.c (elf_add): Close descriptor if we use a debugfile.
399         * btest.c (check_open_files): New static function.
400         (main): Call check_open_files.
402 2018-01-25  Ian Lance Taylor  <iant@golang.org>
404         * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
405         desired CRC is zero.
406         (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
408 2018-01-25  Ian Lance Taylor  <iant@golang.org>
410         * pecoff.c (coff_add): Only release syms_view if it is valid.
412 2018-01-25  Ian Lance Taylor  <iant@golang.org>
414         * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
416 2018-01-24  Ian Lance Taylor  <iant@golang.org>
418         * pecoff.c (coff_add): Use coff_read4, not memcpy.
420 2018-01-24  Ian Lance Taylor  <iant@golang.org>
422         PR other/68239
423         * mmap.c (backtrace_free_locked): Don't put more than 16 entries
424         on the free list.
426 2018-01-19  Tony Reix  <tony.reix@atos.net>
428         * xcoff.c (xcoff_incl_compare): New function.
429         (xcoff_incl_search): New function.
430         (xcoff_process_linenos): Use bsearch to find include file.
431         (xcoff_initialize_fileline): Sort include file information.
433 2018-01-16  Ian Lance Taylor  <iant@golang.org>
435         * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
436         288.
437         (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
438         elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
439         (elf_zlib_default_table): Update.
440         (elf_zlib_default_dist_table): New static array.
441         (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
442         for block type 1.
443         * ztest.c (struct zlib_test): Add uncompressed_len.
444         (tests): Initialize uncompressed_len field.  Add new test case.
445         (test_samples): Use uncompressed_len field.
447 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
449         Update copyright years.
451 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
453         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
454         * aclocal.m4: Regenerate.
455         * Makefile.in: Likewise.
456         * configure: Likewise.
458 2017-10-06  Ian Lance Taylor  <iant@golang.org>
460         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
461         zlib uncompress function.
463 2017-10-05  Ian Lance Taylor  <iant@golang.org>
465         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
466         Read a four byte integer.
467         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
468         boundary before ever calling elf_zlib_fetch.
469         * ztest.c (test_large): Simplify print statements a bit.
471 2017-10-02  Ian Lance Taylor  <iant@golang.org>
473         * ztest.c: #include <errno.h>.
474         (TEST_TIMING): Don't define, don't test.
475         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
476         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
477         (ZLIB_CLOCK_GETTIME_ARG): Define.
478         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
479         * Makefile.am: Likewise.
480         * configure, Makefile.in: Rebuild.
482 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
484         PR other/67165
485         * Makefile.am: Append the content of clock_gettime_link to
486         ztest_LDADD.
487         * configure.ac: Test for the case that clock_gettime is in librt.
488         * Makefile.in: Regenerate.
489         * configure: Likewise.
491         PR other/67165
492         * configure.ac: Check for clock_gettime.
493         * config.h.in: Regenerate.
494         * configure: Likewise.
495         * ztest.c (average_time, test_large): Conditionalize test timing
496         on clock_gettime availability.
498 2017-09-29  Tony Reix  <tony.reix@atos.net>
500         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
501         (STYP_DWARF, SSUBTYP_DW*): Define.
502         (enum dwarf_section): Define.
503         (struct dwsect_info): Define.
504         (xcoff_add): Look for DWARF sections, pass them to
505         backtrace_dwarf_add.
507 2017-09-28  Ian Lance Taylor  <iant@golang.org>
509         PR other/67165
510         * elf.c (__builtin_prefetch): Define if not __GNUC__.
511         (unlikely): Define.
512         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
513         (b_elf_chdr): Define type.
514         (enum debug_section): Add ZDEBUG_xxx values.
515         (debug_section_names): Add names for new sections.
516         (struct debug_section_info): Add compressed field.
517         (elf_zlib_failed, elf_zlib_fetch): New static functions.
518         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
519         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
520         (HUFFMAN_SECONDARY_SHIFT): Define.
521         (ZDEBUG_TABLE_SIZE): Define.
522         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
523         (final_next_secondary): New static variable if
524         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
525         (elf_zlib_inflate_table): New static function.
526         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
527         function to produce fixed Huffman table.
528         (elf_zlib_default_table): New static variable.
529         (elf_zlib_inflate): New static function.
530         (elf_zlib_verify_checksum): Likewise.
531         (elf_zlib_inflate_and_verify): Likewise.
532         (elf_uncompress_zdebug): Likewise.
533         (elf_uncompress_chdr): Likewise.
534         (backtrace_uncompress_zdebug): New extern function.
535         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
536         sections, and uncompress them.
537         * internal.h (backtrace_compress_zdebug): Declare.
538         * ztest.c: New file.
539         * configure.ac: Check for -lz and check whether the linker
540         supports --compress-debug-sections.
541         * Makefile.am (ztest_SOURCES): New variable.
542         (ztest_CFLAGS, ztest_LDADD): New variables.
543         (check_PROGRAMS): Add ztest.
544         (ctestg_SOURCES): New variable.
545         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
546         (ctesta_SOURCES): New variable.
547         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
548         (check_PROGRAMS): Add ctestg and ctesta.
549         * configure, config.h.in, Makefile.in: Rebuild.
551 2017-09-22  Ian Lance Taylor  <iant@golang.org>
553         PR sanitizer/77631
554         * configure.ac: Check for lstat and readlink.
555         * elf.c (lstat, readlink): Provide dummy versions if real versions
556         are not available.
557         * configure, config.h.in: Rebuild.
559 2017-09-21  Ian Lance Taylor  <iant@google.com>
561         PR go/82284
562         * elf.c (backtrace_initialize): Set pd.exe_filename.
564 2017-09-20  Ian Lance Taylor  <iant@golang.org>
565             Denis Khalikov  <d.khalikov@partner.samsung.com>
567         PR sanitizer/77631
568         Support for external debug info.
569         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
570         (S_ISLNK): Define if not defined.
571         (xstrnlen): Define if strnlen is not available.
572         (b_elf_note): Define type.
573         (NT_GNU_BUILD_ID): Define macro.
574         (elf_crc32, elf_crc32_file): New static functions.
575         (elf_is_symlink, elf_readlink): New static functions.
576         (elf_open_debugfile_by_buildid): New static function.
577         (elf_try_debugfile): New static function.
578         (elf_find_debugfile_by_debuglink): New static function.
579         (elf_open_debugfile_by_debuglink): New static function.
580         (elf_add): Add filename and debuginfo parameters.  Adjust all
581         callers.  Look for external debug info notes, and try to fetch
582         debug info from external file.
583         (struct phdr_data): Add exe_filename field.
584         (phdr_callback): Pass filename to elf_add.
585         (backtrace_initialize): Add filename parameter.
586         * internal.h (backtrace_initialize): Add filename parameter.
587         * fileline.c (fileline_initialize): Pass filename to
588         backtrace_initialize.
589         * pecoff.c (fileline_initialize): Add unused filename parameter.
590         * unknown.c (fileline_initialize): Likewise.
591         * xcoff.c (fileline_initialize): Likewise.
592         * configure.ac: Check for objcopy --add-gnu-debuglink.
593         * Makefile.am (dtest): New test target.
594         * configure, Makefile.in: Rebuild.
596 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
598         PR other/81096
599         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
600         * Makefile.in: Regenerate.
602 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
604         PR other/81096
605         * libbacktrace/Makefile.in
606         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
608 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
610         PR bootstrap/81638
611         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
613 2017-07-28  Tony Reix  <tony.reix@atos.net>
615         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
617 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
619         * fileline.c (fileline_initialize): Print pid_t as long.
621 2017-07-26  Tony Reix  <tony.reix@atos.net>
623         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
624         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
625         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
626         * configure, config.h.in: Regenerate.
628 2017-07-21  Tony Reix  <tony.reix@atos.net>
630         * filetype.awk: Add AIX XCOFF type detection.
631         * configure.ac: Recognize xcoff format.
632         * Makefile.am (FORMAT_FILES): Add xcoff.c.
633         * fileline.c: Include <unistd.h>.
634         (fileline_initialize): Add case for AIX procfs.
635         * xcoff.c: New file.
636         * configure, Makefile.in: Rebuild.
638 2017-06-21  Richard Biener  <rguenther@suse.de>
640         * configure.ac: Add AC_SYS_LARGEFILE.
641         * config.h.in: Regenerate.
642         * configure: Likewise.
644 2017-06-11  Ian Lance Taylor  <iant@golang.org>
646         * elf.c (backtrace_initialize): Always set *fileline_fn.
647         * ttest.c: New file.
648         * btest.c: Move support functions into testlib.c.  Change calls to
649         check to pass file name.
650         * testlib.c: New file, copied from (part of) btest.c.
651         * testlib.h: New file, declarations for testlib.c.
652         * edtest.c: Use testlib.h and testlib.c.
653         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
654         * Makefile.am (btest_SOURCES): Add testlib.c.
655         (edtest_SOURCES): Likewise.
656         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
657         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
658         * configure, Makefile.in: Rebuild.
660 2017-05-19  Than McIntosh  <thanm@google.com>
662         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
663         (read_line_header): Don't allocate dirs if dirs_count == 0.
664         * edtest.c: New file.
665         * edtest2.c: New file.
666         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
667         (check_PROGRAMS): Add edtest.
668         (edtest2_build.c, gen_edtest2_build): New targets.
669         * Makefile.in: Rebuild.
671 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
673         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
674         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
676 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
678         Update copyright years.
680 2016-11-15  Matthias Klose  <doko@ubuntu.com>
682         * configure: Regenerate.
684 2016-09-11  Carlos Liam  <carlos@aarzee.me>
686         * all: Remove meaningless trailing whitespace.
688 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
690         PR target/71161
691         * elf.c (phdr_callback) [__i386__]: Add
692         __attribute__((__force_align_arg_pointer__)).
694 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
696         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
697         avoid possible crash.
698         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
699         missing debug info anymore.
701 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
703         * mmap.c (MAP_FAILED): Define if not defined.
705 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
707         Update copyright years.
709 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
711         * configure.ac: Specify that DJGPP do not have mmap
712         even when sys/mman.h exists.
713         * configure: Regenerate
715 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
717         PR libgfortran/68115
718         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
719         * configure: Regenerate.
720         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
721         to void.
723 2015-09-17  Ian Lance Taylor  <iant@google.com>
725         * posix.c (backtrace_open): Cast second argument of open() to int.
727 2015-09-11  Ian Lance Taylor  <iant@google.com>
729         * Makefile.am (backtrace.lo): Depend on internal.h.
730         (sort.lo, stest.lo): Add explicit dependencies.
731         * Makefile.in: Rebuild.
733 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
735         * backtrace.c: #include <sys/types.h>.
737 2015-09-08  Ian Lance Taylor  <iant@google.com>
739         PR other/67457
740         * backtrace.c: #include "internal.h".
741         (struct backtrace_data): Add can_alloc field.
742         (unwind): If can_alloc is false, don't try to get file/line
743         information.
744         (backtrace_full): Set can_alloc field in bdata.
745         * alloc.c (backtrace_alloc): Don't call error_callback if it is
746         NULL.
747         * mmap.c (backtrace_alloc): Likewise.
748         * internal.h: Update comments for backtrace_alloc and
749         backtrace_free.
751 2015-09-08  Ian Lance Taylor  <iant@google.com>
753         PR other/67457
754         * mmap.c (backtrace_alloc): Correct test for mmap failure.
756 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
758         * configure.ac: For spu-*-* targets, set have_fcntl to no.
759         * configure: Regenerate.
761 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
763         * configure.ac: Remove [disable-shared] argument to LT_INIT.
764         Remove setting PIC_FLAG when building as target library.
765         * configure: Regenerate.
767 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
769         * configure.ac: Only compile with -fPIC if the target
770         supports it.
771         * configure: Regenerate.
773 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
775         * configure.ac: Set have_mmap to no on spu-*-* targets.
776         * configure: Regenerate.
778 2015-08-13  Ian Lance Taylor  <iant@google.com>
780         * dwarf.c (read_function_entry): Add vec_inlined parameter.
781         Change all callers.
783 2015-06-11  Martin Sebor  <msebor@redhat.com>
785         PR sanitizer/65479
786         * dwarf.c (struct line): Add new field idx.
787         (line_compare): Use it.
788         (add_line): Set it.
789         (read_line_info): Reset it.
791 2015-05-29  Tristan Gingold  <gingold@adacore.com>
793         * pecoff.c: New file.
794         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
795         * Makefile.in: Regenerate.
796         * filetype.awk: Detect pecoff.
797         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
798         Add pecoff.
799         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
800         true.
801         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
802         * configure: Regenerate.
803         * pecoff.c: New file.
805 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
807         * Makefile.in: Regenerated with automake-1.11.6.
808         * aclocal.m4: Likewise.
809         * configure: Likewise.
811 2015-01-24  Matthias Klose  <doko@ubuntu.com>
813         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
814         * configure: Regenerate.
816 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
818         Update copyright years.
820 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
822         PR bootstrap/63784
823         * configure: Regenerated.
825 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
827         * ChangeLog.jit: New.
829 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
831         PR target/63610
832         * configure: Regenerate.
834 2014-10-23  Ian Lance Taylor  <iant@google.com>
836         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
837         Fix to return void *.
839 2014-05-08  Ian Lance Taylor  <iant@google.com>
841         * mmap.c (backtrace_free): If freeing a large aligned block of
842         memory, call munmap rather than holding onto it.
843         (backtrace_vector_grow): When growing a vector, double the number
844         of pages requested.  When releasing the old version of a grown
845         vector, pass the correct size to backtrace_free.
847 2014-03-07  Ian Lance Taylor  <iant@google.com>
849         * sort.c (backtrace_qsort): Use middle element as pivot.
851 2014-03-06  Ian Lance Taylor  <iant@google.com>
853         * sort.c: New file.
854         * stest.c: New file.
855         * internal.h (backtrace_qsort): Declare.
856         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
857         (read_line_info, read_function_entry): Likewise.
858         (read_function_info, build_dwarf_data): Likewise.
859         * elf.c (elf_initialize_syminfo): Likewise.
860         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
861         (stest_SOURCES, stest_LDADD): Define.
862         (check_PROGRAMS): Add stest.
864 2014-02-07  Misty De Meo  <misty@brew.sh>
866         PR target/58710
867         * configure.ac: Use AC_LINK_IFELSE in check for
868         _Unwind_GetIPInfo.
869         * configure: Regenerate.
871 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
873         Update copyright years
875 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
877         * elf.c (ET_DYN): Undefine and define again.
878         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
879         return early -1 without closing the descriptor.
880         (struct phdr_data): Add exe_descriptor.
881         (phdr_callback): If pd->exe_descriptor is not -1, for very first
882         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
883         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
884         call to elf_add.
885         (backtrace_initialize): Adjust call to elf_add.  If it returns
886         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
888 2013-12-05  Ian Lance Taylor  <iant@google.com>
890         * alloc.c (backtrace_vector_finish): Add error_callback and data
891         parameters.  Call backtrace_vector_release.  Return address base.
892         * mmap.c (backtrace_vector_finish): Add error_callback and data
893         parameters.  Return address base.
894         * dwarf.c (read_function_info): Get new address base from
895         backtrace_vector_finish.
896         * internal.h (backtrace_vector_finish): Update declaration.
898 2013-11-27  Ian Lance Taylor  <iant@google.com>
900         * dwarf.c (find_address_ranges): New static function, broken out
901         of build_address_map.
902         (build_address_map): Call it.
903         * btest.c (check): Check for missing filename or function, rather
904         than crashing.
905         (f3): Check that enough frames were returned.
907 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
909         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
910         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
911         last argument.
912         * btest.c (struct symdata): Add size field.
913         (callback_three): Add symsize argument.  Copy it to the data->size
914         field.
915         (f23): Set symdata.size to 0.
916         (test5): Likewise.  If sizeof (int) > 1, lookup address of
917         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
918         values.
920         * atomic.c: Include sys/types.h.
922 2013-11-18  Ian Lance Taylor  <iant@google.com>
924         * configure.ac: Check for support of __atomic extensions.
925         * internal.h: Declare or #define atomic functions for use in
926         backtrace code.
927         * atomic.c: New file.
928         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
929         (dwarf_fileline, backtrace_dwarf_add): Likewise.
930         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
931         (backtrace_initialize): Likewise.
932         * fileline.c (fileline_initialize): Likewise.
933         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
934         * configure, config.h.in, Makefile.in: Rebuild.
936 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
938         * elf.c (SHN_UNDEF): Define.
939         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
940         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
941         (elf_add): Adjust caller.
943         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
945 2013-11-16  Ian Lance Taylor  <iant@google.com>
947         * backtrace.h (backtrace_create_state): Correct comment about
948         threading.
950 2013-11-15  Ian Lance Taylor  <iant@google.com>
952         * backtrace.h (backtrace_syminfo): Update comment and parameter
953         name to take any address, not just a PC value.
954         * elf.c (STT_OBJECT): Define.
955         (elf_nosyms): Rename parameter pc to addr.
956         (elf_symbol_search): Rename local variable pc to addr.
957         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
958         (elf_syminfo): Rename parameter pc to addr.
959         * btest.c (global): New global variable.
960         (test5): New test.
961         (main): Call test5.
963 2013-10-17  Ian Lance Taylor  <iant@google.com>
965         * elf.c (elf_add): Don't get the wrong offsets if a debug section
966         is missing.
968 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
970         * configure.ac: Add --enable-host-shared, setting up
971         pre-existing PIC_FLAG variable within Makefile.am et al.
972         * configure: Regenerate.
974 2013-09-20  Alan Modra  <amodra@gmail.com>
976         * configure: Regenerate.
978 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
980         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
982 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
984         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
985         dl_iterate_phdr callbacks.
987 2013-03-25  Ian Lance Taylor  <iant@google.com>
989         * alloc.c: #include <sys/types.h>.
990         * mmap.c: Likewise.
992 2013-01-31  Ian Lance Taylor  <iant@google.com>
994         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
995         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
997 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
999         PR other/56076
1000         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1001         attribute was not seen.
1003 2013-01-16  Ian Lance Taylor  <iant@google.com>
1005         * dwarf.c (struct unit): Add filename and abs_filename fields.
1006         (build_address_map): Set new fields when reading unit.
1007         (dwarf_lookup_pc): If we don't find an entry in the line table,
1008         just return the main file name.
1010 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1012         Update copyright years.
1014 2013-01-01  Ian Lance Taylor  <iant@google.com>
1016         PR bootstrap/54834
1017         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1018         $(MULTIBUILDTOP)/../../gcc/include.
1019         * Makefile.in: Rebuild.
1021 2013-01-01  Ian Lance Taylor  <iant@google.com>
1023         PR other/55536
1024         * mmap.c (backtrace_alloc): Don't call sync functions if not
1025         threaded.
1026         (backtrace_free): Likewise.
1028 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1030         * mmapio.c: Define MAP_FAILED if not defined.
1032 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
1034         PR bootstrap/54926
1035         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1036         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1037         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1038         accepts it.
1039         * Makefile.in: Regenerated.
1040         * configure: Regenerated.
1042 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
1044         PR bootstrap/54926
1045         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1046         * Makefile.in: Regenerated.
1048 2012-11-20  Ian Lance Taylor  <iant@google.com>
1050         * dwarf.c (read_attribute): Always clear val.
1052 2012-11-13  Ian Lance Taylor  <iant@google.com>
1054         PR other/55312
1055         * configure.ac: Only add -Werror if building a target library.
1056         * configure: Rebuild.
1058 2012-11-12  Ian Lance Taylor  <iant@google.com>
1059             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1060             Gerald Pfeifer  <gerald@pfeifer.com>
1062         * configure.ac: Check for getexecname.
1063         * fileline.c: #include <errno.h>.  Define getexecname if not
1064         available.
1065         (fileline_initialize): Try to find the executable in a few
1066         different ways.
1067         * print.c (error_callback): Only print the filename if it came
1068         from the backtrace state.
1069         * configure, config.h.in: Rebuild.
1071 2012-10-29  Ian Lance Taylor  <iant@google.com>
1073         * mmap.c (backtrace_vector_release): Correct last patch: add
1074         aligned, not size.
1076 2012-10-29  Ian Lance Taylor  <iant@google.com>
1078         * mmap.c (backtrace_vector_release): Make sure freed block is
1079         aligned on 8-byte boundary.
1081 2012-10-26  Ian Lance Taylor  <iant@google.com>
1083         PR other/55087
1084         * posix.c (backtrace_open): Add does_not_exist parameter.
1085         * elf.c (phdr_callback): Do not warn if shared library could not
1086         be opened.
1087         * fileline.c (fileline_initialize): Update calls to
1088         backtrace_open.
1089         * internal.h (backtrace_open): Update declaration.
1091 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
1093         PR target/55061
1094         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1095         * configure: Regenerate.
1097 2012-10-24  Ian Lance Taylor  <iant@google.com>
1099         PR target/55061
1100         * configure.ac: Check whether -funwind-tables option works.
1101         * configure: Rebuild.
1103 2012-10-11  Ian Lance Taylor  <iant@google.com>
1105         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1106         * configure: Rebuild.
1108 2012-10-10  Ian Lance Taylor  <iant@google.com>
1110         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1111         lower case.
1113 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
1115         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1117 2012-10-09  Ian Lance Taylor  <iant@google.com>
1119         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1120         (backtrace_dwarf_add): Likewise.
1122 2012-10-09  Ian Lance Taylor  <iant@google.com>
1124         Add support for tracing through shared libraries.
1125         * configure.ac: Check for link.h and dl_iterate_phdr.
1126         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
1127         ELF macros before #defining them.
1128         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1129         dl_iterate_phdr.
1130         (struct elf_syminfo_data): Add next field.
1131         (elf_initialize_syminfo): Initialize next field.
1132         (elf_add_syminfo_data): New static function.
1133         (elf_add): New static function, broken out of
1134         backtrace_initialize.  Call backtrace_dwarf_add instead of
1135         backtrace_dwarf_initialize.
1136         (struct phdr_data): Define.
1137         (phdr_callback): New static function.
1138         (backtrace_initialize): Call elf_add.
1139         * dwarf.c (struct dwarf_data): Add next and base_address fields.
1140         (add_unit_addr): Add base_address parameter.  Change all callers.
1141         (add_unit_ranges, build_address_map): Likewise.
1142         (add_line): Add ddata parameter.  Change all callers.
1143         (read_line_program, add_function_range): Likewise.
1144         (dwarf_lookup_pc): New static function, broken out of
1145         dwarf_fileline.
1146         (dwarf_fileline): Call dwarf_lookup_pc.
1147         (build_dwarf_data): New static function.
1148         (backtrace_dwarf_add): New function.
1149         (backtrace_dwarf_initialize): Remove.
1150         * internal.h (backtrace_dwarf_initialize): Don't declare.
1151         (backtrace_dwarf_add): Declare.
1152         * configure, config.h.in: Rebuild.
1154 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
1156         * btest.c (f23): Avoid uninitialized variable warning.
1158 2012-10-04  Ian Lance Taylor  <iant@google.com>
1160         * dwarf.c: If the system header files do not declare strnlen,
1161         provide our own version.
1163 2012-10-03  Ian Lance Taylor  <iant@google.com>
1165         * dwarf.c (read_uleb128): Fix overflow test.
1166         (read_sleb128): Likewise.
1167         (build_address_map): Don't change unit_buf.start.
1169 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1171         PR other/54761
1172         * configure.ac (EXTRA_FLAGS): New.
1173         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1174         * configure, Makefile.in: Regenerate.
1176 2012-09-29  Ian Lance Taylor  <iant@google.com>
1178         PR other/54749
1179         * fileline.c (fileline_initialize): Pass errnum as -1 when
1180         reporting that we could not read executable information after a
1181         previous failure.
1183 2012-09-27  Ian Lance Taylor  <iant@google.com>
1185         PR bootstrap/54732
1186         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1187         * Makefile.am: Add dependencies for all objects.
1188         * configure, aclocal.m4, Makefile.in: Rebuild.
1190 2012-09-27  Ian Lance Taylor  <iant@google.com>
1192         PR other/54726
1193         * elf.c (backtrace_initialize): Set *fileln_fn, not
1194         state->fileln_fn.
1196 2012-09-19  Ian Lance Taylor  <iant@google.com>
1198         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1199         as a target library.
1200         * configure: Rebuild.
1202 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1203             Ian Lance Taylor  <iant@google.com>
1205         * configure.ac (GCC_HEADER_STDINT): Invoke.
1206         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1207         * btest.c: Don't include <stdint.h>.
1208         * dwarf.c: Likewise.
1209         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1211 2012-09-18  Ian Lance Taylor  <iant@google.com>
1213         PR bootstrap/54623
1214         * Makefile.am (AM_CPPFLAGS): Define.
1215         (AM_CFLAGS): Remove -I options.
1216         * Makefile.in: Rebuild.
1218 2012-09-18  Ian Lance Taylor  <iant@google.com>
1220         * posix.c (O_BINARY): Define if not defined.
1221         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
1222         HAVE_FCNTL is defined.
1223         * configure.ac: Test for the fcntl function.
1224         * configure, config.h.in: Rebuild.
1226 2012-09-18  Ian Lance Taylor  <iant@google.com>
1228         * btest.c (test1, test2, test3, test4): Add the unused attribute.
1230 2012-09-18  Ian Lance Taylor  <iant@google.com>
1232         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1234 2012-09-18  Ian Lance Taylor  <iant@google.com>
1236         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1237         * mmapio.c: Don't define _GNU_SOURCE.
1238         * configure, config.h.in: Rebuild.
1240 2012-09-18  Ian Lance Taylor  <iant@google.com>
1242         * configure.ac: Check whether strnlen is declared.
1243         * dwarf.c: Declare strnlen if not declared.
1244         * configure, config.h.in: Rebuild.
1246 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1248         * fileline.c: Include <stdlib.h>.
1249         * mmap.c: Likewise.
1251 2012-09-17  Ian Lance Taylor  <iant@google.com>
1253         PR bootstrap/54611
1254         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
1255         parameter.
1257 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
1259         PR bootstrap/54611
1260         * nounwind.c (backtrace_simple): Add state parameter.
1262 2012-09-17  Ian Lance Taylor  <iant@google.com>
1264         PR bootstrap/54609
1265         * unknown.c (unknown_fileline): Add state parameter, remove
1266         fileline_data parameter, name error_callback parameter.
1267         (backtrace_initialize): Add state parameter.
1269 2012-09-17  Ian Lance Taylor  <iant@google.com>
1271         * Initial implementation.
1273 Copyright (C) 2012-2019 Free Software Foundation, Inc.
1275 Copying and distribution of this file, with or without modification,
1276 are permitted in any medium without royalty provided the copyright
1277 notice and this notice are preserved.