expr.c (convert_mode_scalar): Remove shadowing local var.
[official-gcc.git] / libbacktrace / ChangeLog
blob09ebf5de081593b820dcb35f2cf1f3b578e2ea30
1 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
3         * configure: Regenerate.
5 2019-09-26  Ian Lance Taylor  <iant@golang.org>
7         PR libbacktrace/91908
8         * pecoff.c (backtrace_initialize): Explicitly cast unchecked
9         __sync_bool_compare_and_swap to void.
10         * xcoff.c (backtrace_initialize): Likewise.
12 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
14         * configure.ac: Remove references to spu.
15         * configure: Regenerate.
17 2019-05-24  Clement Chigot  <clement.chigot@atos.net>
19         * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
20         test_elf_64.
21         * Makefile.in: Regenerate.
23 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25         * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
26         handling.
27         * configure: Regenerate.
29 2019-03-11  Ian Lance Taylor  <iant@golang.org>
31         PR libbacktrace/89669
32         * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
33         HAVE_ELF.
34         * Makefile.in: Regenerate.
36 2019-02-26  Tom de Vries  <tdevries@suse.de>
38         * btest.c (test5): Allow global.* as minimal symbol name for global.
40 2019-02-26  Tom de Vries  <tdevries@suse.de>
42         * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
43         * Makefile.in: Regenerate.
45 2019-02-12  Tom de Vries  <tdevries@suse.de>
47         PR libbacktrace/81983
48         * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
50 2019-02-10  Tom de Vries  <tdevries@suse.de>
52         * Makefile.am (BUILDTESTS): Add btest_lto.
53         * Makefile.in: Regenerate.
54         * btest.c (test1, f2, f3, test3, f22, f23): Declare with
55         __attribute__((noclone)).
57 2019-02-08  Tom de Vries  <tdevries@suse.de>
59         * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
60         * print.c (backtrace_print): Same.
61         * simple.c (backtrace_simple): Same.
63 2019-02-08  Tom de Vries  <tdevries@suse.de>
65         PR libbacktrace/78063
66         * dwarf.c (build_address_map): Keep all parsed units.
67         (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
69 2019-01-31  Tom de Vries  <tdevries@suse.de>
71         PR libbacktrace/89136
72         * elf.c (elf_add): Read build-id if with_buildid_data.  Fix
73         'debugaltlink_name_len =+ 1'.
75 2019-01-29  Tom de Vries  <tdevries@suse.de>
77         * install-debuginfo-for-buildid.sh.in: New script.
78         * Makefile.am (check_PROGRAMS): Add b2test and b3test.
79         (TESTS): Add b2test_buildid and b3test_dwz_buildid.
80         * Makefile.in: Regenerate.
81         * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
82         (READELF): Set with AC_CHECK_PROG.
83         (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
84         * configure: Regenerate.
85         * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
86         (elf_open_debugfile_by_buildid): ... here.
88 2019-01-29  Tom de Vries  <tdevries@suse.de>
90         * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
91         allocfail.
92         (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
93         (check_PROGRAMS): Add BUILDTESTS.
94         * Makefile.in: Regenerate.
96 2019-01-28  Tom de Vries  <tdevries@suse.de>
98         * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
99         Use $< to access prerequisite.
100         * Makefile.in: Regenerate.
102 2019-01-25  Nathan Sidwell  <nathan@acm.org>
104         * elf.c (elf_add): Pass "" filename to recursive call with
105         separated debug.
107 2019-01-25  Tom de Vries  <tdevries@suse.de>
109         * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
110         filename == "".
111         * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
112         * Makefile.in: Regenerate.
114 2019-01-25  Tom de Vries  <tdevries@suse.de>
116         * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
117         (TESTS): Rename dtest to btest_gnudebuglink.
118         * Makefile.in: Regenerate.
120 2019-01-23  Tom de Vries  <tdevries@suse.de>
122         * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
123         (units_search, find_unit): Use size_t for offset.
124         (build_address_map): Use size_t for unit_offset.
126 2019-01-20  Gerald Pfeifer  <gerald@pfeifer.com>
128         * allocfail.c (main): Increase portability of printf statement.
130 2019-01-18  Ian Lance Taylor  <iant@golang.org>
132         PR libbacktrace/88890
133         * mmapio.c (backtrace_get_view): Change size parameter to
134         uint64_t.  Check that value fits in size_t.
135         * read.c (backtrace_get_view): Likewise.
136         * internal.h (backtrace_get_view): Update declaration.
137         * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
139 2019-01-17  Tom de Vries  <tdevries@suse.de>
141         PR libbacktrace/82857
142         * configure.ac (DWZ): Set with AC_CHECK_PROG.
143         (HAVE_DWZ): Set with AM_CONDITIONAL.
144         * configure: Regenerate.
145         * Makefile.am (TESTS): Add btest_dwz.
146         * Makefile.in: Regenerate.
148 2019-01-17  Tom de Vries  <tdevries@suse.de>
150         PR libbacktrace/82857
151         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
152         (read_attribute): Handle DW_FORM_GNU_ref_alt using
153         ATTR_VAL_REF_ALT_INFO.
154         (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
156 2019-01-17  Tom de Vries  <tdevries@suse.de>
158         * dwarf.c (struct unit): Add low_offset and high_offset fields.
159         (struct unit_vector): New type.
160         (struct dwarf_data): Add units and units_counts fields.
161         (find_unit): New function.
162         (find_address_ranges): Add and handle unit_tag parameter.
163         (build_address_map): Add and handle units_vec parameter.
164         (build_dwarf_data): Pass units_vec to build_address_map.  Store resulting
165         units vector.
167 2019-01-17  Tom de Vries  <tdevries@suse.de>
169         PR libbacktrace/82857
170         * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
171         using altlink.
173 2019-01-17  Tom de Vries  <tdevries@suse.de>
175         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
176         (read_attribute): Add altlink parameter.  Handle missing altlink for
177         DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
178         (find_address_ranges, build_address_map, build_dwarf_data): Add and
179         handle altlink parameter.
180         (read_referenced_name, read_function_entry): Add argument to
181         read_attribute call.
183 2019-01-17  Tom de Vries  <tdevries@suse.de>
185         * dwarf.c (struct dwarf_data): Add altlink field.
186         (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
187         * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
188         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
189         * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
190         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
191         * xcoff.c (xcoff_add): Same.
193 2019-01-17  Tom de Vries  <tdevries@suse.de>
195         * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
196         * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
197         * elf.c (elf_add): Add and handle fileline_entry parameter.  Add
198         argument to backtrace_dwarf_add call.
199         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
200         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
201         * xcoff.c (xcoff_add): Same.
203 2019-01-17  Tom de Vries  <tdevries@suse.de>
205         * elf.c (elf_add): Add and handle with_buildid_data and
206         with_buildid_size parameters.  Handle .gnu_debugaltlink section.
207         (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
209 2019-01-16  Tom de Vries  <tdevries@suse.de>
211         * dwarf.c (read_referenced_name_from_attr): New function.  Factor out
212         of ...
213         (read_referenced_name): ... here, and ...
214         (read_function_entry): ... here.
216 2019-01-16  Tom de Vries  <tdevries@suse.de>
218         * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
219         name.
220         (read_function_entry): Same.  Don't allow name found via
221         DW_AT_abstract_origin or case DW_AT_specification to override linkage
222         name.
224 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
226         PR other/16615
228         * backtrace.h: Mechanically replace "can not" with "cannot".
230 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
232         Update copyright years.
234 2018-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
236         * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
237         in sed pattern.
238         * Makefile.in: Regenerate.
240 2018-12-28  Tom de Vries  <tdevries@suse.de>
242         * dwarf.c (build_address_map): Reuse unused units.
244 2018-12-28  Tom de Vries  <tdevries@suse.de>
246         * dwarf.c (build_address_map): Simplify by removing local variable
247         abbrevs.
249 2018-12-28  Ian Lance Taylor  <iant@golang.org>
250             Tom de Vries  <tdevries@suse.de>
252         PR libbacktrace/88063
253         * dwarf.c (free_unit_addrs_vector): Remove.
254         (build_address_map): Keep track of allocated units in vector.  Free
255         allocated units and corresponding abbrevs upon failure.  Remove now
256         redundant call to free_unit_addrs_vector.  Free addrs vector upon
257         failure.  Free allocated unit vector.
259 2018-12-28  Tom de Vries  <tdevries@suse.de>
261         * dwarf.c (build_address_map): Free addrs vector upon failure.
263 2018-12-14  Tom de Vries  <tdevries@suse.de>
265         PR testsuite/88491
266         * allocfail.sh: Remove "set -o pipefail".
268 2018-12-12  Tom de Vries  <tdevries@suse.de>
270         * Makefile.am (TESTS): Add allocfail.sh.
271         (check_PROGRAMS): Add allocfail.
272         * Makefile.in: Regenerate.
273         * instrumented_alloc.c: New file.  Redefine malloc and realloc.
274         Include alloc.c.
275         * allocfail.c: New file.
276         * allocfail.sh: New file.
278 2018-11-30  Tom de Vries  <tdevries@suse.de>
280         * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
281         test_xcoff_64, test_pecoff and test_unknown.
282         * Makefile.in: Regenerate.
283         * test_format.c: New file.
285 2018-11-30  Tom de Vries  <tdevries@suse.de>
287         * Makefile.am : Add _with_alloc version for each test in
288         check_PROGRAMS.
289         * Makefile.in: Regenerate.
291 2018-11-30  Tom de Vries  <tdevries@suse.de>
293         * internal.h (backtrace_vector_free): New static inline fuction,
294         factored out of ...
295         * dwarf.c (read_line_info): ... here.
297 2018-11-28  Tom de Vries  <tdevries@suse.de>
299         * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
300         failure.
302 2018-11-27  Tom de Vries  <tdevries@suse.de>
304         * mmap.c (backtrace_vector_release): Same.
305         * unittest.c (test1): Add check.
307 2018-11-27  Tom de Vries  <tdevries@suse.de>
309         * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
310         instead of realloc.
311         * Makefile.am (check_PROGRAMS): Add unittest.
312         * Makefile.in: Regenerate.
313         * unittest.c: New file.
315 2018-11-22  Tom de Vries  <tdevries@suse.de>
317         * dwarf.c (read_initial_length): Factor out of ...
318         (build_address_map, read_line_info): ... here.
320 2018-11-21  Tom de Vries  <tdevries@suse.de>
322         * dwarf.c (read_string): Factor out of ...
323         (read_attribute, read_line_header, read_line_program): ... here.
325 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
327         PR bootstrap/82856
328         * Makefile.am: Include multilib.am.
329         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
330         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
332 2018-10-05  Ian Lance Taylor  <iant@golang.org>
334         PR libbacktrace/87529
335         * backtrace.h: Document that backtrace_create_state should be
336         called only once.
338 2018-08-05 Iain Buclaw  <ibuclaw@gdcproject.org>
340         * configure.ac: Move define of HAVE_ZLIB into check for -lz.
341         * Makefile.in: Regenerate.
342         * config.h.in: Likewise.
343         * configure: Likewise.
345 2018-08-01  Tony Reix  <tony.reix@atos.net>
347         * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
348         (struct xcoff_func, struct xcoff_func_vector): New structs.
349         (xcoff_syminfo): Drop leading dot from symbol name.
350         (xcoff_line_compare, xcoff_line_search): Remove.
351         (xcoff_func_compare, xcoff_func_search): New static functions.
352         (xcoff_lookup_pc): Search function table.
353         (xcoff_add_line, xcoff_process_linenos): Remove.
354         (xcoff_initialize_fileline): Build function table.
356 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
358         PR other/86198
359         * elf.c (elf_add): Increase ".note.gnu.build-id" section size
360         checking up to 36 bytes.
362 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
364         * configure: Regenerated.
366 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
368         * configure: Regenerated.
370 2018-04-17  Ian Lance Taylor  <iant@golang.org>
372         * backtrace.c: Revert last two changes.  Don't call mmap
373         directly.
375 2018-04-17  Ian Lance Taylor  <iant@golang.org>
377         * backtrace.c: Include backtrace-supported.h before checking
378         BACKTRACE_USES_MALLOC.
380 2018-04-17  Ian Lance Taylor  <iant@golang.org>
382         * backtrace.c (backtrace_full): When testing whether we can
383         allocate memory, call mmap directly, and munmap the memory.
385 2018-04-04  Jakub Jelinek  <jakub@redhat.com>
387         PR other/85161
388         * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
389         big endian, only use 32-bit loads if endianity macros are predefined
390         and indicate big or little endian.
392 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
394         PR target/84148
395         * configure: Regenerate.
397 2018-02-15  Jakub Jelinek  <jakub@redhat.com>
399         PR other/82368
400         * elf.c (SHT_PROGBITS): Undefine and define.
402 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
404         PR other/82368
405         * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
406         (struct elf_ppc64_opd_data): New type.
407         (elf_initialize_syminfo): Add opd argument, handle symbols
408         pointing into the PowerPC64 ELFv1 .opd section.
409         (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
410         to structure with .opd data to elf_initialize_syminfo.
412 2018-01-31  Ian Lance Taylor  <iant@golang.org>
414         * elf.c (elf_add): Close descriptor if we use a debugfile.
415         * btest.c (check_open_files): New static function.
416         (main): Call check_open_files.
418 2018-01-25  Ian Lance Taylor  <iant@golang.org>
420         * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
421         desired CRC is zero.
422         (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
424 2018-01-25  Ian Lance Taylor  <iant@golang.org>
426         * pecoff.c (coff_add): Only release syms_view if it is valid.
428 2018-01-25  Ian Lance Taylor  <iant@golang.org>
430         * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
432 2018-01-24  Ian Lance Taylor  <iant@golang.org>
434         * pecoff.c (coff_add): Use coff_read4, not memcpy.
436 2018-01-24  Ian Lance Taylor  <iant@golang.org>
438         PR other/68239
439         * mmap.c (backtrace_free_locked): Don't put more than 16 entries
440         on the free list.
442 2018-01-19  Tony Reix  <tony.reix@atos.net>
444         * xcoff.c (xcoff_incl_compare): New function.
445         (xcoff_incl_search): New function.
446         (xcoff_process_linenos): Use bsearch to find include file.
447         (xcoff_initialize_fileline): Sort include file information.
449 2018-01-16  Ian Lance Taylor  <iant@golang.org>
451         * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
452         288.
453         (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
454         elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
455         (elf_zlib_default_table): Update.
456         (elf_zlib_default_dist_table): New static array.
457         (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
458         for block type 1.
459         * ztest.c (struct zlib_test): Add uncompressed_len.
460         (tests): Initialize uncompressed_len field.  Add new test case.
461         (test_samples): Use uncompressed_len field.
463 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
465         Update copyright years.
467 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
469         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
470         * aclocal.m4: Regenerate.
471         * Makefile.in: Likewise.
472         * configure: Likewise.
474 2017-10-06  Ian Lance Taylor  <iant@golang.org>
476         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
477         zlib uncompress function.
479 2017-10-05  Ian Lance Taylor  <iant@golang.org>
481         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
482         Read a four byte integer.
483         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
484         boundary before ever calling elf_zlib_fetch.
485         * ztest.c (test_large): Simplify print statements a bit.
487 2017-10-02  Ian Lance Taylor  <iant@golang.org>
489         * ztest.c: #include <errno.h>.
490         (TEST_TIMING): Don't define, don't test.
491         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
492         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
493         (ZLIB_CLOCK_GETTIME_ARG): Define.
494         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
495         * Makefile.am: Likewise.
496         * configure, Makefile.in: Rebuild.
498 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
500         PR other/67165
501         * Makefile.am: Append the content of clock_gettime_link to
502         ztest_LDADD.
503         * configure.ac: Test for the case that clock_gettime is in librt.
504         * Makefile.in: Regenerate.
505         * configure: Likewise.
507         PR other/67165
508         * configure.ac: Check for clock_gettime.
509         * config.h.in: Regenerate.
510         * configure: Likewise.
511         * ztest.c (average_time, test_large): Conditionalize test timing
512         on clock_gettime availability.
514 2017-09-29  Tony Reix  <tony.reix@atos.net>
516         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
517         (STYP_DWARF, SSUBTYP_DW*): Define.
518         (enum dwarf_section): Define.
519         (struct dwsect_info): Define.
520         (xcoff_add): Look for DWARF sections, pass them to
521         backtrace_dwarf_add.
523 2017-09-28  Ian Lance Taylor  <iant@golang.org>
525         PR other/67165
526         * elf.c (__builtin_prefetch): Define if not __GNUC__.
527         (unlikely): Define.
528         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
529         (b_elf_chdr): Define type.
530         (enum debug_section): Add ZDEBUG_xxx values.
531         (debug_section_names): Add names for new sections.
532         (struct debug_section_info): Add compressed field.
533         (elf_zlib_failed, elf_zlib_fetch): New static functions.
534         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
535         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
536         (HUFFMAN_SECONDARY_SHIFT): Define.
537         (ZDEBUG_TABLE_SIZE): Define.
538         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
539         (final_next_secondary): New static variable if
540         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
541         (elf_zlib_inflate_table): New static function.
542         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
543         function to produce fixed Huffman table.
544         (elf_zlib_default_table): New static variable.
545         (elf_zlib_inflate): New static function.
546         (elf_zlib_verify_checksum): Likewise.
547         (elf_zlib_inflate_and_verify): Likewise.
548         (elf_uncompress_zdebug): Likewise.
549         (elf_uncompress_chdr): Likewise.
550         (backtrace_uncompress_zdebug): New extern function.
551         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
552         sections, and uncompress them.
553         * internal.h (backtrace_compress_zdebug): Declare.
554         * ztest.c: New file.
555         * configure.ac: Check for -lz and check whether the linker
556         supports --compress-debug-sections.
557         * Makefile.am (ztest_SOURCES): New variable.
558         (ztest_CFLAGS, ztest_LDADD): New variables.
559         (check_PROGRAMS): Add ztest.
560         (ctestg_SOURCES): New variable.
561         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
562         (ctesta_SOURCES): New variable.
563         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
564         (check_PROGRAMS): Add ctestg and ctesta.
565         * configure, config.h.in, Makefile.in: Rebuild.
567 2017-09-22  Ian Lance Taylor  <iant@golang.org>
569         PR sanitizer/77631
570         * configure.ac: Check for lstat and readlink.
571         * elf.c (lstat, readlink): Provide dummy versions if real versions
572         are not available.
573         * configure, config.h.in: Rebuild.
575 2017-09-21  Ian Lance Taylor  <iant@google.com>
577         PR go/82284
578         * elf.c (backtrace_initialize): Set pd.exe_filename.
580 2017-09-20  Ian Lance Taylor  <iant@golang.org>
581             Denis Khalikov  <d.khalikov@partner.samsung.com>
583         PR sanitizer/77631
584         Support for external debug info.
585         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
586         (S_ISLNK): Define if not defined.
587         (xstrnlen): Define if strnlen is not available.
588         (b_elf_note): Define type.
589         (NT_GNU_BUILD_ID): Define macro.
590         (elf_crc32, elf_crc32_file): New static functions.
591         (elf_is_symlink, elf_readlink): New static functions.
592         (elf_open_debugfile_by_buildid): New static function.
593         (elf_try_debugfile): New static function.
594         (elf_find_debugfile_by_debuglink): New static function.
595         (elf_open_debugfile_by_debuglink): New static function.
596         (elf_add): Add filename and debuginfo parameters.  Adjust all
597         callers.  Look for external debug info notes, and try to fetch
598         debug info from external file.
599         (struct phdr_data): Add exe_filename field.
600         (phdr_callback): Pass filename to elf_add.
601         (backtrace_initialize): Add filename parameter.
602         * internal.h (backtrace_initialize): Add filename parameter.
603         * fileline.c (fileline_initialize): Pass filename to
604         backtrace_initialize.
605         * pecoff.c (fileline_initialize): Add unused filename parameter.
606         * unknown.c (fileline_initialize): Likewise.
607         * xcoff.c (fileline_initialize): Likewise.
608         * configure.ac: Check for objcopy --add-gnu-debuglink.
609         * Makefile.am (dtest): New test target.
610         * configure, Makefile.in: Rebuild.
612 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
614         PR other/81096
615         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
616         * Makefile.in: Regenerate.
618 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
620         PR other/81096
621         * libbacktrace/Makefile.in
622         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
624 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
626         PR bootstrap/81638
627         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
629 2017-07-28  Tony Reix  <tony.reix@atos.net>
631         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
633 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
635         * fileline.c (fileline_initialize): Print pid_t as long.
637 2017-07-26  Tony Reix  <tony.reix@atos.net>
639         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
640         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
641         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
642         * configure, config.h.in: Regenerate.
644 2017-07-21  Tony Reix  <tony.reix@atos.net>
646         * filetype.awk: Add AIX XCOFF type detection.
647         * configure.ac: Recognize xcoff format.
648         * Makefile.am (FORMAT_FILES): Add xcoff.c.
649         * fileline.c: Include <unistd.h>.
650         (fileline_initialize): Add case for AIX procfs.
651         * xcoff.c: New file.
652         * configure, Makefile.in: Rebuild.
654 2017-06-21  Richard Biener  <rguenther@suse.de>
656         * configure.ac: Add AC_SYS_LARGEFILE.
657         * config.h.in: Regenerate.
658         * configure: Likewise.
660 2017-06-11  Ian Lance Taylor  <iant@golang.org>
662         * elf.c (backtrace_initialize): Always set *fileline_fn.
663         * ttest.c: New file.
664         * btest.c: Move support functions into testlib.c.  Change calls to
665         check to pass file name.
666         * testlib.c: New file, copied from (part of) btest.c.
667         * testlib.h: New file, declarations for testlib.c.
668         * edtest.c: Use testlib.h and testlib.c.
669         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
670         * Makefile.am (btest_SOURCES): Add testlib.c.
671         (edtest_SOURCES): Likewise.
672         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
673         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
674         * configure, Makefile.in: Rebuild.
676 2017-05-19  Than McIntosh  <thanm@google.com>
678         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
679         (read_line_header): Don't allocate dirs if dirs_count == 0.
680         * edtest.c: New file.
681         * edtest2.c: New file.
682         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
683         (check_PROGRAMS): Add edtest.
684         (edtest2_build.c, gen_edtest2_build): New targets.
685         * Makefile.in: Rebuild.
687 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
689         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
690         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
692 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
694         Update copyright years.
696 2016-11-15  Matthias Klose  <doko@ubuntu.com>
698         * configure: Regenerate.
700 2016-09-11  Carlos Liam  <carlos@aarzee.me>
702         * all: Remove meaningless trailing whitespace.
704 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
706         PR target/71161
707         * elf.c (phdr_callback) [__i386__]: Add
708         __attribute__((__force_align_arg_pointer__)).
710 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
712         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
713         avoid possible crash.
714         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
715         missing debug info anymore.
717 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
719         * mmap.c (MAP_FAILED): Define if not defined.
721 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
723         Update copyright years.
725 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
727         * configure.ac: Specify that DJGPP do not have mmap
728         even when sys/mman.h exists.
729         * configure: Regenerate
731 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
733         PR libgfortran/68115
734         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
735         * configure: Regenerate.
736         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
737         to void.
739 2015-09-17  Ian Lance Taylor  <iant@google.com>
741         * posix.c (backtrace_open): Cast second argument of open() to int.
743 2015-09-11  Ian Lance Taylor  <iant@google.com>
745         * Makefile.am (backtrace.lo): Depend on internal.h.
746         (sort.lo, stest.lo): Add explicit dependencies.
747         * Makefile.in: Rebuild.
749 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
751         * backtrace.c: #include <sys/types.h>.
753 2015-09-08  Ian Lance Taylor  <iant@google.com>
755         PR other/67457
756         * backtrace.c: #include "internal.h".
757         (struct backtrace_data): Add can_alloc field.
758         (unwind): If can_alloc is false, don't try to get file/line
759         information.
760         (backtrace_full): Set can_alloc field in bdata.
761         * alloc.c (backtrace_alloc): Don't call error_callback if it is
762         NULL.
763         * mmap.c (backtrace_alloc): Likewise.
764         * internal.h: Update comments for backtrace_alloc and
765         backtrace_free.
767 2015-09-08  Ian Lance Taylor  <iant@google.com>
769         PR other/67457
770         * mmap.c (backtrace_alloc): Correct test for mmap failure.
772 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
774         * configure.ac: For spu-*-* targets, set have_fcntl to no.
775         * configure: Regenerate.
777 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
779         * configure.ac: Remove [disable-shared] argument to LT_INIT.
780         Remove setting PIC_FLAG when building as target library.
781         * configure: Regenerate.
783 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
785         * configure.ac: Only compile with -fPIC if the target
786         supports it.
787         * configure: Regenerate.
789 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
791         * configure.ac: Set have_mmap to no on spu-*-* targets.
792         * configure: Regenerate.
794 2015-08-13  Ian Lance Taylor  <iant@google.com>
796         * dwarf.c (read_function_entry): Add vec_inlined parameter.
797         Change all callers.
799 2015-06-11  Martin Sebor  <msebor@redhat.com>
801         PR sanitizer/65479
802         * dwarf.c (struct line): Add new field idx.
803         (line_compare): Use it.
804         (add_line): Set it.
805         (read_line_info): Reset it.
807 2015-05-29  Tristan Gingold  <gingold@adacore.com>
809         * pecoff.c: New file.
810         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
811         * Makefile.in: Regenerate.
812         * filetype.awk: Detect pecoff.
813         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
814         Add pecoff.
815         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
816         true.
817         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
818         * configure: Regenerate.
819         * pecoff.c: New file.
821 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
823         * Makefile.in: Regenerated with automake-1.11.6.
824         * aclocal.m4: Likewise.
825         * configure: Likewise.
827 2015-01-24  Matthias Klose  <doko@ubuntu.com>
829         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
830         * configure: Regenerate.
832 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
834         Update copyright years.
836 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
838         PR bootstrap/63784
839         * configure: Regenerated.
841 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
843         * ChangeLog.jit: New.
845 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
847         PR target/63610
848         * configure: Regenerate.
850 2014-10-23  Ian Lance Taylor  <iant@google.com>
852         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
853         Fix to return void *.
855 2014-05-08  Ian Lance Taylor  <iant@google.com>
857         * mmap.c (backtrace_free): If freeing a large aligned block of
858         memory, call munmap rather than holding onto it.
859         (backtrace_vector_grow): When growing a vector, double the number
860         of pages requested.  When releasing the old version of a grown
861         vector, pass the correct size to backtrace_free.
863 2014-03-07  Ian Lance Taylor  <iant@google.com>
865         * sort.c (backtrace_qsort): Use middle element as pivot.
867 2014-03-06  Ian Lance Taylor  <iant@google.com>
869         * sort.c: New file.
870         * stest.c: New file.
871         * internal.h (backtrace_qsort): Declare.
872         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
873         (read_line_info, read_function_entry): Likewise.
874         (read_function_info, build_dwarf_data): Likewise.
875         * elf.c (elf_initialize_syminfo): Likewise.
876         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
877         (stest_SOURCES, stest_LDADD): Define.
878         (check_PROGRAMS): Add stest.
880 2014-02-07  Misty De Meo  <misty@brew.sh>
882         PR target/58710
883         * configure.ac: Use AC_LINK_IFELSE in check for
884         _Unwind_GetIPInfo.
885         * configure: Regenerate.
887 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
889         Update copyright years
891 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
893         * elf.c (ET_DYN): Undefine and define again.
894         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
895         return early -1 without closing the descriptor.
896         (struct phdr_data): Add exe_descriptor.
897         (phdr_callback): If pd->exe_descriptor is not -1, for very first
898         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
899         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
900         call to elf_add.
901         (backtrace_initialize): Adjust call to elf_add.  If it returns
902         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
904 2013-12-05  Ian Lance Taylor  <iant@google.com>
906         * alloc.c (backtrace_vector_finish): Add error_callback and data
907         parameters.  Call backtrace_vector_release.  Return address base.
908         * mmap.c (backtrace_vector_finish): Add error_callback and data
909         parameters.  Return address base.
910         * dwarf.c (read_function_info): Get new address base from
911         backtrace_vector_finish.
912         * internal.h (backtrace_vector_finish): Update declaration.
914 2013-11-27  Ian Lance Taylor  <iant@google.com>
916         * dwarf.c (find_address_ranges): New static function, broken out
917         of build_address_map.
918         (build_address_map): Call it.
919         * btest.c (check): Check for missing filename or function, rather
920         than crashing.
921         (f3): Check that enough frames were returned.
923 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
925         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
926         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
927         last argument.
928         * btest.c (struct symdata): Add size field.
929         (callback_three): Add symsize argument.  Copy it to the data->size
930         field.
931         (f23): Set symdata.size to 0.
932         (test5): Likewise.  If sizeof (int) > 1, lookup address of
933         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
934         values.
936         * atomic.c: Include sys/types.h.
938 2013-11-18  Ian Lance Taylor  <iant@google.com>
940         * configure.ac: Check for support of __atomic extensions.
941         * internal.h: Declare or #define atomic functions for use in
942         backtrace code.
943         * atomic.c: New file.
944         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
945         (dwarf_fileline, backtrace_dwarf_add): Likewise.
946         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
947         (backtrace_initialize): Likewise.
948         * fileline.c (fileline_initialize): Likewise.
949         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
950         * configure, config.h.in, Makefile.in: Rebuild.
952 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
954         * elf.c (SHN_UNDEF): Define.
955         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
956         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
957         (elf_add): Adjust caller.
959         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
961 2013-11-16  Ian Lance Taylor  <iant@google.com>
963         * backtrace.h (backtrace_create_state): Correct comment about
964         threading.
966 2013-11-15  Ian Lance Taylor  <iant@google.com>
968         * backtrace.h (backtrace_syminfo): Update comment and parameter
969         name to take any address, not just a PC value.
970         * elf.c (STT_OBJECT): Define.
971         (elf_nosyms): Rename parameter pc to addr.
972         (elf_symbol_search): Rename local variable pc to addr.
973         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
974         (elf_syminfo): Rename parameter pc to addr.
975         * btest.c (global): New global variable.
976         (test5): New test.
977         (main): Call test5.
979 2013-10-17  Ian Lance Taylor  <iant@google.com>
981         * elf.c (elf_add): Don't get the wrong offsets if a debug section
982         is missing.
984 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
986         * configure.ac: Add --enable-host-shared, setting up
987         pre-existing PIC_FLAG variable within Makefile.am et al.
988         * configure: Regenerate.
990 2013-09-20  Alan Modra  <amodra@gmail.com>
992         * configure: Regenerate.
994 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
996         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
998 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
1000         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1001         dl_iterate_phdr callbacks.
1003 2013-03-25  Ian Lance Taylor  <iant@google.com>
1005         * alloc.c: #include <sys/types.h>.
1006         * mmap.c: Likewise.
1008 2013-01-31  Ian Lance Taylor  <iant@google.com>
1010         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1011         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1013 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
1015         PR other/56076
1016         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1017         attribute was not seen.
1019 2013-01-16  Ian Lance Taylor  <iant@google.com>
1021         * dwarf.c (struct unit): Add filename and abs_filename fields.
1022         (build_address_map): Set new fields when reading unit.
1023         (dwarf_lookup_pc): If we don't find an entry in the line table,
1024         just return the main file name.
1026 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1028         Update copyright years.
1030 2013-01-01  Ian Lance Taylor  <iant@google.com>
1032         PR bootstrap/54834
1033         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1034         $(MULTIBUILDTOP)/../../gcc/include.
1035         * Makefile.in: Rebuild.
1037 2013-01-01  Ian Lance Taylor  <iant@google.com>
1039         PR other/55536
1040         * mmap.c (backtrace_alloc): Don't call sync functions if not
1041         threaded.
1042         (backtrace_free): Likewise.
1044 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1046         * mmapio.c: Define MAP_FAILED if not defined.
1048 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
1050         PR bootstrap/54926
1051         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1052         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1053         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1054         accepts it.
1055         * Makefile.in: Regenerated.
1056         * configure: Regenerated.
1058 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
1060         PR bootstrap/54926
1061         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1062         * Makefile.in: Regenerated.
1064 2012-11-20  Ian Lance Taylor  <iant@google.com>
1066         * dwarf.c (read_attribute): Always clear val.
1068 2012-11-13  Ian Lance Taylor  <iant@google.com>
1070         PR other/55312
1071         * configure.ac: Only add -Werror if building a target library.
1072         * configure: Rebuild.
1074 2012-11-12  Ian Lance Taylor  <iant@google.com>
1075             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1076             Gerald Pfeifer  <gerald@pfeifer.com>
1078         * configure.ac: Check for getexecname.
1079         * fileline.c: #include <errno.h>.  Define getexecname if not
1080         available.
1081         (fileline_initialize): Try to find the executable in a few
1082         different ways.
1083         * print.c (error_callback): Only print the filename if it came
1084         from the backtrace state.
1085         * configure, config.h.in: Rebuild.
1087 2012-10-29  Ian Lance Taylor  <iant@google.com>
1089         * mmap.c (backtrace_vector_release): Correct last patch: add
1090         aligned, not size.
1092 2012-10-29  Ian Lance Taylor  <iant@google.com>
1094         * mmap.c (backtrace_vector_release): Make sure freed block is
1095         aligned on 8-byte boundary.
1097 2012-10-26  Ian Lance Taylor  <iant@google.com>
1099         PR other/55087
1100         * posix.c (backtrace_open): Add does_not_exist parameter.
1101         * elf.c (phdr_callback): Do not warn if shared library could not
1102         be opened.
1103         * fileline.c (fileline_initialize): Update calls to
1104         backtrace_open.
1105         * internal.h (backtrace_open): Update declaration.
1107 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
1109         PR target/55061
1110         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1111         * configure: Regenerate.
1113 2012-10-24  Ian Lance Taylor  <iant@google.com>
1115         PR target/55061
1116         * configure.ac: Check whether -funwind-tables option works.
1117         * configure: Rebuild.
1119 2012-10-11  Ian Lance Taylor  <iant@google.com>
1121         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1122         * configure: Rebuild.
1124 2012-10-10  Ian Lance Taylor  <iant@google.com>
1126         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1127         lower case.
1129 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
1131         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1133 2012-10-09  Ian Lance Taylor  <iant@google.com>
1135         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1136         (backtrace_dwarf_add): Likewise.
1138 2012-10-09  Ian Lance Taylor  <iant@google.com>
1140         Add support for tracing through shared libraries.
1141         * configure.ac: Check for link.h and dl_iterate_phdr.
1142         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
1143         ELF macros before #defining them.
1144         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1145         dl_iterate_phdr.
1146         (struct elf_syminfo_data): Add next field.
1147         (elf_initialize_syminfo): Initialize next field.
1148         (elf_add_syminfo_data): New static function.
1149         (elf_add): New static function, broken out of
1150         backtrace_initialize.  Call backtrace_dwarf_add instead of
1151         backtrace_dwarf_initialize.
1152         (struct phdr_data): Define.
1153         (phdr_callback): New static function.
1154         (backtrace_initialize): Call elf_add.
1155         * dwarf.c (struct dwarf_data): Add next and base_address fields.
1156         (add_unit_addr): Add base_address parameter.  Change all callers.
1157         (add_unit_ranges, build_address_map): Likewise.
1158         (add_line): Add ddata parameter.  Change all callers.
1159         (read_line_program, add_function_range): Likewise.
1160         (dwarf_lookup_pc): New static function, broken out of
1161         dwarf_fileline.
1162         (dwarf_fileline): Call dwarf_lookup_pc.
1163         (build_dwarf_data): New static function.
1164         (backtrace_dwarf_add): New function.
1165         (backtrace_dwarf_initialize): Remove.
1166         * internal.h (backtrace_dwarf_initialize): Don't declare.
1167         (backtrace_dwarf_add): Declare.
1168         * configure, config.h.in: Rebuild.
1170 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
1172         * btest.c (f23): Avoid uninitialized variable warning.
1174 2012-10-04  Ian Lance Taylor  <iant@google.com>
1176         * dwarf.c: If the system header files do not declare strnlen,
1177         provide our own version.
1179 2012-10-03  Ian Lance Taylor  <iant@google.com>
1181         * dwarf.c (read_uleb128): Fix overflow test.
1182         (read_sleb128): Likewise.
1183         (build_address_map): Don't change unit_buf.start.
1185 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1187         PR other/54761
1188         * configure.ac (EXTRA_FLAGS): New.
1189         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1190         * configure, Makefile.in: Regenerate.
1192 2012-09-29  Ian Lance Taylor  <iant@google.com>
1194         PR other/54749
1195         * fileline.c (fileline_initialize): Pass errnum as -1 when
1196         reporting that we could not read executable information after a
1197         previous failure.
1199 2012-09-27  Ian Lance Taylor  <iant@google.com>
1201         PR bootstrap/54732
1202         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1203         * Makefile.am: Add dependencies for all objects.
1204         * configure, aclocal.m4, Makefile.in: Rebuild.
1206 2012-09-27  Ian Lance Taylor  <iant@google.com>
1208         PR other/54726
1209         * elf.c (backtrace_initialize): Set *fileln_fn, not
1210         state->fileln_fn.
1212 2012-09-19  Ian Lance Taylor  <iant@google.com>
1214         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1215         as a target library.
1216         * configure: Rebuild.
1218 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1219             Ian Lance Taylor  <iant@google.com>
1221         * configure.ac (GCC_HEADER_STDINT): Invoke.
1222         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1223         * btest.c: Don't include <stdint.h>.
1224         * dwarf.c: Likewise.
1225         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1227 2012-09-18  Ian Lance Taylor  <iant@google.com>
1229         PR bootstrap/54623
1230         * Makefile.am (AM_CPPFLAGS): Define.
1231         (AM_CFLAGS): Remove -I options.
1232         * Makefile.in: Rebuild.
1234 2012-09-18  Ian Lance Taylor  <iant@google.com>
1236         * posix.c (O_BINARY): Define if not defined.
1237         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
1238         HAVE_FCNTL is defined.
1239         * configure.ac: Test for the fcntl function.
1240         * configure, config.h.in: Rebuild.
1242 2012-09-18  Ian Lance Taylor  <iant@google.com>
1244         * btest.c (test1, test2, test3, test4): Add the unused attribute.
1246 2012-09-18  Ian Lance Taylor  <iant@google.com>
1248         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1250 2012-09-18  Ian Lance Taylor  <iant@google.com>
1252         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1253         * mmapio.c: Don't define _GNU_SOURCE.
1254         * configure, config.h.in: Rebuild.
1256 2012-09-18  Ian Lance Taylor  <iant@google.com>
1258         * configure.ac: Check whether strnlen is declared.
1259         * dwarf.c: Declare strnlen if not declared.
1260         * configure, config.h.in: Rebuild.
1262 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1264         * fileline.c: Include <stdlib.h>.
1265         * mmap.c: Likewise.
1267 2012-09-17  Ian Lance Taylor  <iant@google.com>
1269         PR bootstrap/54611
1270         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
1271         parameter.
1273 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
1275         PR bootstrap/54611
1276         * nounwind.c (backtrace_simple): Add state parameter.
1278 2012-09-17  Ian Lance Taylor  <iant@google.com>
1280         PR bootstrap/54609
1281         * unknown.c (unknown_fileline): Add state parameter, remove
1282         fileline_data parameter, name error_callback parameter.
1283         (backtrace_initialize): Add state parameter.
1285 2012-09-17  Ian Lance Taylor  <iant@google.com>
1287         * Initial implementation.
1289 Copyright (C) 2012-2019 Free Software Foundation, Inc.
1291 Copying and distribution of this file, with or without modification,
1292 are permitted in any medium without royalty provided the copyright
1293 notice and this notice are preserved.