PR sanitizer/77631
[official-gcc.git] / libbacktrace / ChangeLog
blob731716f0be71ffb3faf80529d3af84b94e98a69d
1 2017-09-20  Ian Lance Taylor  <iant@golang.org>
2             Denis Khalikov  <d.khalikov@partner.samsung.com>
4         PR sanitizer/77631
5         Support for external debug info.
6         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
7         (S_ISLNK): Define if not defined.
8         (xstrnlen): Define if strnlen is not available.
9         (b_elf_note): Define type.
10         (NT_GNU_BUILD_ID): Define macro.
11         (elf_crc32, elf_crc32_file): New static functions.
12         (elf_is_symlink, elf_readlink): New static functions.
13         (elf_open_debugfile_by_buildid): New static function.
14         (elf_try_debugfile): New static function.
15         (elf_find_debugfile_by_debuglink): New static function.
16         (elf_open_debugfile_by_debuglink): New static function.
17         (elf_add): Add filename and debuginfo parameters.  Adjust all
18         callers.  Look for external debug info notes, and try to fetch
19         debug info from external file.
20         (struct phdr_data): Add exe_filename field.
21         (phdr_callback): Pass filename to elf_add.
22         (backtrace_initialize): Add filename parameter.
23         * internal.h (backtrace_initialize): Add filename parameter.
24         * fileline.c (fileline_initialize): Pass filename to
25         backtrace_initialize.
26         * pecoff.c (fileline_initialize): Add unused filename parameter.
27         * unknown.c (fileline_initialize): Likewise.
28         * xcoff.c (fileline_initialize): Likewise.
29         * configure.ac: Check for objcopy --add-gnu-debuglink.
30         * Makefile.am (dtest): New test target.
31         * configure, Makefile.in: Rebuild.
33 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
35         PR other/81096
36         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
37         * Makefile.in: Regenerate.
39 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
41         PR other/81096
42         * libbacktrace/Makefile.in
43         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
45 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
47         PR bootstrap/81638
48         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
50 2017-07-28  Tony Reix  <tony.reix@atos.net>
52         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
54 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
56         * fileline.c (fileline_initialize): Print pid_t as long.
58 2017-07-26  Tony Reix  <tony.reix@atos.net>
60         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
61         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
62         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
63         * configure, config.h.in: Regenerate.
65 2017-07-21  Tony Reix  <tony.reix@atos.net>
67         * filetype.awk: Add AIX XCOFF type detection.
68         * configure.ac: Recognize xcoff format.
69         * Makefile.am (FORMAT_FILES): Add xcoff.c.
70         * fileline.c: Include <unistd.h>.
71         (fileline_initialize): Add case for AIX procfs.
72         * xcoff.c: New file.
73         * configure, Makefile.in: Rebuild.
75 2017-06-21  Richard Biener  <rguenther@suse.de>
77         * configure.ac: Add AC_SYS_LARGEFILE.
78         * config.h.in: Regenerate.
79         * configure: Likewise.
81 2017-06-11  Ian Lance Taylor  <iant@golang.org>
83         * elf.c (backtrace_initialize): Always set *fileline_fn.
84         * ttest.c: New file.
85         * btest.c: Move support functions into testlib.c.  Change calls to
86         check to pass file name.
87         * testlib.c: New file, copied from (part of) btest.c.
88         * testlib.h: New file, declarations for testlib.c.
89         * edtest.c: Use testlib.h and testlib.c.
90         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
91         * Makefile.am (btest_SOURCES): Add testlib.c.
92         (edtest_SOURCES): Likewise.
93         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
94         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
95         * configure, Makefile.in: Rebuild.
97 2017-05-19  Than McIntosh  <thanm@google.com>
99         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
100         (read_line_header): Don't allocate dirs if dirs_count == 0.
101         * edtest.c: New file.
102         * edtest2.c: New file.
103         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
104         (check_PROGRAMS): Add edtest.
105         (edtest2_build.c, gen_edtest2_build): New targets.
106         * Makefile.in: Rebuild.
108 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
110         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
111         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
113 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
115         Update copyright years.
117 2016-11-15  Matthias Klose  <doko@ubuntu.com>
119         * configure: Regenerate.
121 2016-09-11  Carlos Liam  <carlos@aarzee.me>
123         * all: Remove meaningless trailing whitespace.
125 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
127         PR target/71161
128         * elf.c (phdr_callback) [__i386__]: Add
129         __attribute__((__force_align_arg_pointer__)).
131 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
133         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
134         avoid possible crash.
135         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
136         missing debug info anymore.
138 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
140         * mmap.c (MAP_FAILED): Define if not defined.
142 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
144         Update copyright years.
146 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
148         * configure.ac: Specify that DJGPP do not have mmap
149         even when sys/mman.h exists.
150         * configure: Regenerate
152 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
154         PR libgfortran/68115
155         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
156         * configure: Regenerate.
157         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
158         to void.
160 2015-09-17  Ian Lance Taylor  <iant@google.com>
162         * posix.c (backtrace_open): Cast second argument of open() to int.
164 2015-09-11  Ian Lance Taylor  <iant@google.com>
166         * Makefile.am (backtrace.lo): Depend on internal.h.
167         (sort.lo, stest.lo): Add explicit dependencies.
168         * Makefile.in: Rebuild.
170 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
172         * backtrace.c: #include <sys/types.h>.
174 2015-09-08  Ian Lance Taylor  <iant@google.com>
176         PR other/67457
177         * backtrace.c: #include "internal.h".
178         (struct backtrace_data): Add can_alloc field.
179         (unwind): If can_alloc is false, don't try to get file/line
180         information.
181         (backtrace_full): Set can_alloc field in bdata.
182         * alloc.c (backtrace_alloc): Don't call error_callback if it is
183         NULL.
184         * mmap.c (backtrace_alloc): Likewise.
185         * internal.h: Update comments for backtrace_alloc and
186         backtrace_free.
188 2015-09-08  Ian Lance Taylor  <iant@google.com>
190         PR other/67457
191         * mmap.c (backtrace_alloc): Correct test for mmap failure.
193 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
195         * configure.ac: For spu-*-* targets, set have_fcntl to no.
196         * configure: Regenerate.
198 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
200         * configure.ac: Remove [disable-shared] argument to LT_INIT.
201         Remove setting PIC_FLAG when building as target library.
202         * configure: Regenerate.
204 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
206         * configure.ac: Only compile with -fPIC if the target
207         supports it.
208         * configure: Regenerate.
210 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
212         * configure.ac: Set have_mmap to no on spu-*-* targets.
213         * configure: Regenerate.
215 2015-08-13  Ian Lance Taylor  <iant@google.com>
217         * dwarf.c (read_function_entry): Add vec_inlined parameter.
218         Change all callers.
220 2015-06-11  Martin Sebor  <msebor@redhat.com>
222         PR sanitizer/65479
223         * dwarf.c (struct line): Add new field idx.
224         (line_compare): Use it.
225         (add_line): Set it.
226         (read_line_info): Reset it.
228 2015-05-29  Tristan Gingold  <gingold@adacore.com>
230         * pecoff.c: New file.
231         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
232         * Makefile.in: Regenerate.
233         * filetype.awk: Detect pecoff.
234         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
235         Add pecoff.
236         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
237         true.
238         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
239         * configure: Regenerate.
240         * pecoff.c: New file.
242 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
244         * Makefile.in: Regenerated with automake-1.11.6.
245         * aclocal.m4: Likewise.
246         * configure: Likewise.
248 2015-01-24  Matthias Klose  <doko@ubuntu.com>
250         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
251         * configure: Regenerate.
253 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
255         Update copyright years.
257 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
259         PR bootstrap/63784
260         * configure: Regenerated.
262 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
264         * ChangeLog.jit: New.
266 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
268         PR target/63610
269         * configure: Regenerate.
271 2014-10-23  Ian Lance Taylor  <iant@google.com>
273         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
274         Fix to return void *.
276 2014-05-08  Ian Lance Taylor  <iant@google.com>
278         * mmap.c (backtrace_free): If freeing a large aligned block of
279         memory, call munmap rather than holding onto it.
280         (backtrace_vector_grow): When growing a vector, double the number
281         of pages requested.  When releasing the old version of a grown
282         vector, pass the correct size to backtrace_free.
284 2014-03-07  Ian Lance Taylor  <iant@google.com>
286         * sort.c (backtrace_qsort): Use middle element as pivot.
288 2014-03-06  Ian Lance Taylor  <iant@google.com>
290         * sort.c: New file.
291         * stest.c: New file.
292         * internal.h (backtrace_qsort): Declare.
293         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
294         (read_line_info, read_function_entry): Likewise.
295         (read_function_info, build_dwarf_data): Likewise.
296         * elf.c (elf_initialize_syminfo): Likewise.
297         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
298         (stest_SOURCES, stest_LDADD): Define.
299         (check_PROGRAMS): Add stest.
301 2014-02-07  Misty De Meo  <misty@brew.sh>
303         PR target/58710
304         * configure.ac: Use AC_LINK_IFELSE in check for
305         _Unwind_GetIPInfo.
306         * configure: Regenerate.
308 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
310         Update copyright years
312 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
314         * elf.c (ET_DYN): Undefine and define again.
315         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
316         return early -1 without closing the descriptor.
317         (struct phdr_data): Add exe_descriptor.
318         (phdr_callback): If pd->exe_descriptor is not -1, for very first
319         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
320         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
321         call to elf_add.
322         (backtrace_initialize): Adjust call to elf_add.  If it returns
323         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
325 2013-12-05  Ian Lance Taylor  <iant@google.com>
327         * alloc.c (backtrace_vector_finish): Add error_callback and data
328         parameters.  Call backtrace_vector_release.  Return address base.
329         * mmap.c (backtrace_vector_finish): Add error_callback and data
330         parameters.  Return address base.
331         * dwarf.c (read_function_info): Get new address base from
332         backtrace_vector_finish.
333         * internal.h (backtrace_vector_finish): Update declaration.
335 2013-11-27  Ian Lance Taylor  <iant@google.com>
337         * dwarf.c (find_address_ranges): New static function, broken out
338         of build_address_map.
339         (build_address_map): Call it.
340         * btest.c (check): Check for missing filename or function, rather
341         than crashing.
342         (f3): Check that enough frames were returned.
344 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
346         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
347         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
348         last argument.
349         * btest.c (struct symdata): Add size field.
350         (callback_three): Add symsize argument.  Copy it to the data->size
351         field.
352         (f23): Set symdata.size to 0.
353         (test5): Likewise.  If sizeof (int) > 1, lookup address of
354         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
355         values.
357         * atomic.c: Include sys/types.h.
359 2013-11-18  Ian Lance Taylor  <iant@google.com>
361         * configure.ac: Check for support of __atomic extensions.
362         * internal.h: Declare or #define atomic functions for use in
363         backtrace code.
364         * atomic.c: New file.
365         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
366         (dwarf_fileline, backtrace_dwarf_add): Likewise.
367         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
368         (backtrace_initialize): Likewise.
369         * fileline.c (fileline_initialize): Likewise.
370         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
371         * configure, config.h.in, Makefile.in: Rebuild.
373 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
375         * elf.c (SHN_UNDEF): Define.
376         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
377         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
378         (elf_add): Adjust caller.
380         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
382 2013-11-16  Ian Lance Taylor  <iant@google.com>
384         * backtrace.h (backtrace_create_state): Correct comment about
385         threading.
387 2013-11-15  Ian Lance Taylor  <iant@google.com>
389         * backtrace.h (backtrace_syminfo): Update comment and parameter
390         name to take any address, not just a PC value.
391         * elf.c (STT_OBJECT): Define.
392         (elf_nosyms): Rename parameter pc to addr.
393         (elf_symbol_search): Rename local variable pc to addr.
394         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
395         (elf_syminfo): Rename parameter pc to addr.
396         * btest.c (global): New global variable.
397         (test5): New test.
398         (main): Call test5.
400 2013-10-17  Ian Lance Taylor  <iant@google.com>
402         * elf.c (elf_add): Don't get the wrong offsets if a debug section
403         is missing.
405 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
407         * configure.ac: Add --enable-host-shared, setting up
408         pre-existing PIC_FLAG variable within Makefile.am et al.
409         * configure: Regenerate.
411 2013-09-20  Alan Modra  <amodra@gmail.com>
413         * configure: Regenerate.
415 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
417         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
419 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
421         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
422         dl_iterate_phdr callbacks.
424 2013-03-25  Ian Lance Taylor  <iant@google.com>
426         * alloc.c: #include <sys/types.h>.
427         * mmap.c: Likewise.
429 2013-01-31  Ian Lance Taylor  <iant@google.com>
431         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
432         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
434 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
436         PR other/56076
437         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
438         attribute was not seen.
440 2013-01-16  Ian Lance Taylor  <iant@google.com>
442         * dwarf.c (struct unit): Add filename and abs_filename fields.
443         (build_address_map): Set new fields when reading unit.
444         (dwarf_lookup_pc): If we don't find an entry in the line table,
445         just return the main file name.
447 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
449         Update copyright years.
451 2013-01-01  Ian Lance Taylor  <iant@google.com>
453         PR bootstrap/54834
454         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
455         $(MULTIBUILDTOP)/../../gcc/include.
456         * Makefile.in: Rebuild.
458 2013-01-01  Ian Lance Taylor  <iant@google.com>
460         PR other/55536
461         * mmap.c (backtrace_alloc): Don't call sync functions if not
462         threaded.
463         (backtrace_free): Likewise.
465 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
467         * mmapio.c: Define MAP_FAILED if not defined.
469 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
471         PR bootstrap/54926
472         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
473         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
474         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
475         accepts it.
476         * Makefile.in: Regenerated.
477         * configure: Regenerated.
479 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
481         PR bootstrap/54926
482         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
483         * Makefile.in: Regenerated.
485 2012-11-20  Ian Lance Taylor  <iant@google.com>
487         * dwarf.c (read_attribute): Always clear val.
489 2012-11-13  Ian Lance Taylor  <iant@google.com>
491         PR other/55312
492         * configure.ac: Only add -Werror if building a target library.
493         * configure: Rebuild.
495 2012-11-12  Ian Lance Taylor  <iant@google.com>
496             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
497             Gerald Pfeifer  <gerald@pfeifer.com>
499         * configure.ac: Check for getexecname.
500         * fileline.c: #include <errno.h>.  Define getexecname if not
501         available.
502         (fileline_initialize): Try to find the executable in a few
503         different ways.
504         * print.c (error_callback): Only print the filename if it came
505         from the backtrace state.
506         * configure, config.h.in: Rebuild.
508 2012-10-29  Ian Lance Taylor  <iant@google.com>
510         * mmap.c (backtrace_vector_release): Correct last patch: add
511         aligned, not size.
513 2012-10-29  Ian Lance Taylor  <iant@google.com>
515         * mmap.c (backtrace_vector_release): Make sure freed block is
516         aligned on 8-byte boundary.
518 2012-10-26  Ian Lance Taylor  <iant@google.com>
520         PR other/55087
521         * posix.c (backtrace_open): Add does_not_exist parameter.
522         * elf.c (phdr_callback): Do not warn if shared library could not
523         be opened.
524         * fileline.c (fileline_initialize): Update calls to
525         backtrace_open.
526         * internal.h (backtrace_open): Update declaration.
528 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
530         PR target/55061
531         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
532         * configure: Regenerate.
534 2012-10-24  Ian Lance Taylor  <iant@google.com>
536         PR target/55061
537         * configure.ac: Check whether -funwind-tables option works.
538         * configure: Rebuild.
540 2012-10-11  Ian Lance Taylor  <iant@google.com>
542         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
543         * configure: Rebuild.
545 2012-10-10  Ian Lance Taylor  <iant@google.com>
547         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
548         lower case.
550 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
552         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
554 2012-10-09  Ian Lance Taylor  <iant@google.com>
556         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
557         (backtrace_dwarf_add): Likewise.
559 2012-10-09  Ian Lance Taylor  <iant@google.com>
561         Add support for tracing through shared libraries.
562         * configure.ac: Check for link.h and dl_iterate_phdr.
563         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
564         ELF macros before #defining them.
565         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
566         dl_iterate_phdr.
567         (struct elf_syminfo_data): Add next field.
568         (elf_initialize_syminfo): Initialize next field.
569         (elf_add_syminfo_data): New static function.
570         (elf_add): New static function, broken out of
571         backtrace_initialize.  Call backtrace_dwarf_add instead of
572         backtrace_dwarf_initialize.
573         (struct phdr_data): Define.
574         (phdr_callback): New static function.
575         (backtrace_initialize): Call elf_add.
576         * dwarf.c (struct dwarf_data): Add next and base_address fields.
577         (add_unit_addr): Add base_address parameter.  Change all callers.
578         (add_unit_ranges, build_address_map): Likewise.
579         (add_line): Add ddata parameter.  Change all callers.
580         (read_line_program, add_function_range): Likewise.
581         (dwarf_lookup_pc): New static function, broken out of
582         dwarf_fileline.
583         (dwarf_fileline): Call dwarf_lookup_pc.
584         (build_dwarf_data): New static function.
585         (backtrace_dwarf_add): New function.
586         (backtrace_dwarf_initialize): Remove.
587         * internal.h (backtrace_dwarf_initialize): Don't declare.
588         (backtrace_dwarf_add): Declare.
589         * configure, config.h.in: Rebuild.
591 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
593         * btest.c (f23): Avoid uninitialized variable warning.
595 2012-10-04  Ian Lance Taylor  <iant@google.com>
597         * dwarf.c: If the system header files do not declare strnlen,
598         provide our own version.
600 2012-10-03  Ian Lance Taylor  <iant@google.com>
602         * dwarf.c (read_uleb128): Fix overflow test.
603         (read_sleb128): Likewise.
604         (build_address_map): Don't change unit_buf.start.
606 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
608         PR other/54761
609         * configure.ac (EXTRA_FLAGS): New.
610         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
611         * configure, Makefile.in: Regenerate.
613 2012-09-29  Ian Lance Taylor  <iant@google.com>
615         PR other/54749
616         * fileline.c (fileline_initialize): Pass errnum as -1 when
617         reporting that we could not read executable information after a
618         previous failure.
620 2012-09-27  Ian Lance Taylor  <iant@google.com>
622         PR bootstrap/54732
623         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
624         * Makefile.am: Add dependencies for all objects.
625         * configure, aclocal.m4, Makefile.in: Rebuild.
627 2012-09-27  Ian Lance Taylor  <iant@google.com>
629         PR other/54726
630         * elf.c (backtrace_initialize): Set *fileln_fn, not
631         state->fileln_fn.
633 2012-09-19  Ian Lance Taylor  <iant@google.com>
635         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
636         as a target library.
637         * configure: Rebuild.
639 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
640             Ian Lance Taylor  <iant@google.com>
642         * configure.ac (GCC_HEADER_STDINT): Invoke.
643         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
644         * btest.c: Don't include <stdint.h>.
645         * dwarf.c: Likewise.
646         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
648 2012-09-18  Ian Lance Taylor  <iant@google.com>
650         PR bootstrap/54623
651         * Makefile.am (AM_CPPFLAGS): Define.
652         (AM_CFLAGS): Remove -I options.
653         * Makefile.in: Rebuild.
655 2012-09-18  Ian Lance Taylor  <iant@google.com>
657         * posix.c (O_BINARY): Define if not defined.
658         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
659         HAVE_FCNTL is defined.
660         * configure.ac: Test for the fcntl function.
661         * configure, config.h.in: Rebuild.
663 2012-09-18  Ian Lance Taylor  <iant@google.com>
665         * btest.c (test1, test2, test3, test4): Add the unused attribute.
667 2012-09-18  Ian Lance Taylor  <iant@google.com>
669         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
671 2012-09-18  Ian Lance Taylor  <iant@google.com>
673         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
674         * mmapio.c: Don't define _GNU_SOURCE.
675         * configure, config.h.in: Rebuild.
677 2012-09-18  Ian Lance Taylor  <iant@google.com>
679         * configure.ac: Check whether strnlen is declared.
680         * dwarf.c: Declare strnlen if not declared.
681         * configure, config.h.in: Rebuild.
683 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
685         * fileline.c: Include <stdlib.h>.
686         * mmap.c: Likewise.
688 2012-09-17  Ian Lance Taylor  <iant@google.com>
690         PR bootstrap/54611
691         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
692         parameter.
694 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
696         PR bootstrap/54611
697         * nounwind.c (backtrace_simple): Add state parameter.
699 2012-09-17  Ian Lance Taylor  <iant@google.com>
701         PR bootstrap/54609
702         * unknown.c (unknown_fileline): Add state parameter, remove
703         fileline_data parameter, name error_callback parameter.
704         (backtrace_initialize): Add state parameter.
706 2012-09-17  Ian Lance Taylor  <iant@google.com>
708         * Initial implementation.
710 Copyright (C) 2012-2017 Free Software Foundation, Inc.
712 Copying and distribution of this file, with or without modification,
713 are permitted in any medium without royalty provided the copyright
714 notice and this notice are preserved.