2017-09-26 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libbacktrace / ChangeLog
blobed996781c06f7e07bd56430625ed28c72aabf8b1
1 2017-09-22  Ian Lance Taylor  <iant@golang.org>
3         PR sanitizer/77631
4         * configure.ac: Check for lstat and readlink.
5         * elf.c (lstat, readlink): Provide dummy versions if real versions
6         are not available.
7         * configure, config.h.in: Rebuild.
9 2017-09-21  Ian Lance Taylor  <iant@google.com>
11         PR go/82284
12         * elf.c (backtrace_initialize): Set pd.exe_filename.
14 2017-09-20  Ian Lance Taylor  <iant@golang.org>
15             Denis Khalikov  <d.khalikov@partner.samsung.com>
17         PR sanitizer/77631
18         Support for external debug info.
19         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
20         (S_ISLNK): Define if not defined.
21         (xstrnlen): Define if strnlen is not available.
22         (b_elf_note): Define type.
23         (NT_GNU_BUILD_ID): Define macro.
24         (elf_crc32, elf_crc32_file): New static functions.
25         (elf_is_symlink, elf_readlink): New static functions.
26         (elf_open_debugfile_by_buildid): New static function.
27         (elf_try_debugfile): New static function.
28         (elf_find_debugfile_by_debuglink): New static function.
29         (elf_open_debugfile_by_debuglink): New static function.
30         (elf_add): Add filename and debuginfo parameters.  Adjust all
31         callers.  Look for external debug info notes, and try to fetch
32         debug info from external file.
33         (struct phdr_data): Add exe_filename field.
34         (phdr_callback): Pass filename to elf_add.
35         (backtrace_initialize): Add filename parameter.
36         * internal.h (backtrace_initialize): Add filename parameter.
37         * fileline.c (fileline_initialize): Pass filename to
38         backtrace_initialize.
39         * pecoff.c (fileline_initialize): Add unused filename parameter.
40         * unknown.c (fileline_initialize): Likewise.
41         * xcoff.c (fileline_initialize): Likewise.
42         * configure.ac: Check for objcopy --add-gnu-debuglink.
43         * Makefile.am (dtest): New test target.
44         * configure, Makefile.in: Rebuild.
46 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
48         PR other/81096
49         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
50         * Makefile.in: Regenerate.
52 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
54         PR other/81096
55         * libbacktrace/Makefile.in
56         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
58 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
60         PR bootstrap/81638
61         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
63 2017-07-28  Tony Reix  <tony.reix@atos.net>
65         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
67 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
69         * fileline.c (fileline_initialize): Print pid_t as long.
71 2017-07-26  Tony Reix  <tony.reix@atos.net>
73         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
74         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
75         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
76         * configure, config.h.in: Regenerate.
78 2017-07-21  Tony Reix  <tony.reix@atos.net>
80         * filetype.awk: Add AIX XCOFF type detection.
81         * configure.ac: Recognize xcoff format.
82         * Makefile.am (FORMAT_FILES): Add xcoff.c.
83         * fileline.c: Include <unistd.h>.
84         (fileline_initialize): Add case for AIX procfs.
85         * xcoff.c: New file.
86         * configure, Makefile.in: Rebuild.
88 2017-06-21  Richard Biener  <rguenther@suse.de>
90         * configure.ac: Add AC_SYS_LARGEFILE.
91         * config.h.in: Regenerate.
92         * configure: Likewise.
94 2017-06-11  Ian Lance Taylor  <iant@golang.org>
96         * elf.c (backtrace_initialize): Always set *fileline_fn.
97         * ttest.c: New file.
98         * btest.c: Move support functions into testlib.c.  Change calls to
99         check to pass file name.
100         * testlib.c: New file, copied from (part of) btest.c.
101         * testlib.h: New file, declarations for testlib.c.
102         * edtest.c: Use testlib.h and testlib.c.
103         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
104         * Makefile.am (btest_SOURCES): Add testlib.c.
105         (edtest_SOURCES): Likewise.
106         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
107         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
108         * configure, Makefile.in: Rebuild.
110 2017-05-19  Than McIntosh  <thanm@google.com>
112         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
113         (read_line_header): Don't allocate dirs if dirs_count == 0.
114         * edtest.c: New file.
115         * edtest2.c: New file.
116         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
117         (check_PROGRAMS): Add edtest.
118         (edtest2_build.c, gen_edtest2_build): New targets.
119         * Makefile.in: Rebuild.
121 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
123         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
124         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
126 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
128         Update copyright years.
130 2016-11-15  Matthias Klose  <doko@ubuntu.com>
132         * configure: Regenerate.
134 2016-09-11  Carlos Liam  <carlos@aarzee.me>
136         * all: Remove meaningless trailing whitespace.
138 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
140         PR target/71161
141         * elf.c (phdr_callback) [__i386__]: Add
142         __attribute__((__force_align_arg_pointer__)).
144 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
146         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
147         avoid possible crash.
148         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
149         missing debug info anymore.
151 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
153         * mmap.c (MAP_FAILED): Define if not defined.
155 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
157         Update copyright years.
159 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
161         * configure.ac: Specify that DJGPP do not have mmap
162         even when sys/mman.h exists.
163         * configure: Regenerate
165 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
167         PR libgfortran/68115
168         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
169         * configure: Regenerate.
170         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
171         to void.
173 2015-09-17  Ian Lance Taylor  <iant@google.com>
175         * posix.c (backtrace_open): Cast second argument of open() to int.
177 2015-09-11  Ian Lance Taylor  <iant@google.com>
179         * Makefile.am (backtrace.lo): Depend on internal.h.
180         (sort.lo, stest.lo): Add explicit dependencies.
181         * Makefile.in: Rebuild.
183 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
185         * backtrace.c: #include <sys/types.h>.
187 2015-09-08  Ian Lance Taylor  <iant@google.com>
189         PR other/67457
190         * backtrace.c: #include "internal.h".
191         (struct backtrace_data): Add can_alloc field.
192         (unwind): If can_alloc is false, don't try to get file/line
193         information.
194         (backtrace_full): Set can_alloc field in bdata.
195         * alloc.c (backtrace_alloc): Don't call error_callback if it is
196         NULL.
197         * mmap.c (backtrace_alloc): Likewise.
198         * internal.h: Update comments for backtrace_alloc and
199         backtrace_free.
201 2015-09-08  Ian Lance Taylor  <iant@google.com>
203         PR other/67457
204         * mmap.c (backtrace_alloc): Correct test for mmap failure.
206 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
208         * configure.ac: For spu-*-* targets, set have_fcntl to no.
209         * configure: Regenerate.
211 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
213         * configure.ac: Remove [disable-shared] argument to LT_INIT.
214         Remove setting PIC_FLAG when building as target library.
215         * configure: Regenerate.
217 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
219         * configure.ac: Only compile with -fPIC if the target
220         supports it.
221         * configure: Regenerate.
223 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
225         * configure.ac: Set have_mmap to no on spu-*-* targets.
226         * configure: Regenerate.
228 2015-08-13  Ian Lance Taylor  <iant@google.com>
230         * dwarf.c (read_function_entry): Add vec_inlined parameter.
231         Change all callers.
233 2015-06-11  Martin Sebor  <msebor@redhat.com>
235         PR sanitizer/65479
236         * dwarf.c (struct line): Add new field idx.
237         (line_compare): Use it.
238         (add_line): Set it.
239         (read_line_info): Reset it.
241 2015-05-29  Tristan Gingold  <gingold@adacore.com>
243         * pecoff.c: New file.
244         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
245         * Makefile.in: Regenerate.
246         * filetype.awk: Detect pecoff.
247         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
248         Add pecoff.
249         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
250         true.
251         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
252         * configure: Regenerate.
253         * pecoff.c: New file.
255 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
257         * Makefile.in: Regenerated with automake-1.11.6.
258         * aclocal.m4: Likewise.
259         * configure: Likewise.
261 2015-01-24  Matthias Klose  <doko@ubuntu.com>
263         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
264         * configure: Regenerate.
266 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
268         Update copyright years.
270 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
272         PR bootstrap/63784
273         * configure: Regenerated.
275 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
277         * ChangeLog.jit: New.
279 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
281         PR target/63610
282         * configure: Regenerate.
284 2014-10-23  Ian Lance Taylor  <iant@google.com>
286         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
287         Fix to return void *.
289 2014-05-08  Ian Lance Taylor  <iant@google.com>
291         * mmap.c (backtrace_free): If freeing a large aligned block of
292         memory, call munmap rather than holding onto it.
293         (backtrace_vector_grow): When growing a vector, double the number
294         of pages requested.  When releasing the old version of a grown
295         vector, pass the correct size to backtrace_free.
297 2014-03-07  Ian Lance Taylor  <iant@google.com>
299         * sort.c (backtrace_qsort): Use middle element as pivot.
301 2014-03-06  Ian Lance Taylor  <iant@google.com>
303         * sort.c: New file.
304         * stest.c: New file.
305         * internal.h (backtrace_qsort): Declare.
306         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
307         (read_line_info, read_function_entry): Likewise.
308         (read_function_info, build_dwarf_data): Likewise.
309         * elf.c (elf_initialize_syminfo): Likewise.
310         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
311         (stest_SOURCES, stest_LDADD): Define.
312         (check_PROGRAMS): Add stest.
314 2014-02-07  Misty De Meo  <misty@brew.sh>
316         PR target/58710
317         * configure.ac: Use AC_LINK_IFELSE in check for
318         _Unwind_GetIPInfo.
319         * configure: Regenerate.
321 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
323         Update copyright years
325 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
327         * elf.c (ET_DYN): Undefine and define again.
328         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
329         return early -1 without closing the descriptor.
330         (struct phdr_data): Add exe_descriptor.
331         (phdr_callback): If pd->exe_descriptor is not -1, for very first
332         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
333         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
334         call to elf_add.
335         (backtrace_initialize): Adjust call to elf_add.  If it returns
336         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
338 2013-12-05  Ian Lance Taylor  <iant@google.com>
340         * alloc.c (backtrace_vector_finish): Add error_callback and data
341         parameters.  Call backtrace_vector_release.  Return address base.
342         * mmap.c (backtrace_vector_finish): Add error_callback and data
343         parameters.  Return address base.
344         * dwarf.c (read_function_info): Get new address base from
345         backtrace_vector_finish.
346         * internal.h (backtrace_vector_finish): Update declaration.
348 2013-11-27  Ian Lance Taylor  <iant@google.com>
350         * dwarf.c (find_address_ranges): New static function, broken out
351         of build_address_map.
352         (build_address_map): Call it.
353         * btest.c (check): Check for missing filename or function, rather
354         than crashing.
355         (f3): Check that enough frames were returned.
357 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
359         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
360         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
361         last argument.
362         * btest.c (struct symdata): Add size field.
363         (callback_three): Add symsize argument.  Copy it to the data->size
364         field.
365         (f23): Set symdata.size to 0.
366         (test5): Likewise.  If sizeof (int) > 1, lookup address of
367         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
368         values.
370         * atomic.c: Include sys/types.h.
372 2013-11-18  Ian Lance Taylor  <iant@google.com>
374         * configure.ac: Check for support of __atomic extensions.
375         * internal.h: Declare or #define atomic functions for use in
376         backtrace code.
377         * atomic.c: New file.
378         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
379         (dwarf_fileline, backtrace_dwarf_add): Likewise.
380         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
381         (backtrace_initialize): Likewise.
382         * fileline.c (fileline_initialize): Likewise.
383         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
384         * configure, config.h.in, Makefile.in: Rebuild.
386 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
388         * elf.c (SHN_UNDEF): Define.
389         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
390         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
391         (elf_add): Adjust caller.
393         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
395 2013-11-16  Ian Lance Taylor  <iant@google.com>
397         * backtrace.h (backtrace_create_state): Correct comment about
398         threading.
400 2013-11-15  Ian Lance Taylor  <iant@google.com>
402         * backtrace.h (backtrace_syminfo): Update comment and parameter
403         name to take any address, not just a PC value.
404         * elf.c (STT_OBJECT): Define.
405         (elf_nosyms): Rename parameter pc to addr.
406         (elf_symbol_search): Rename local variable pc to addr.
407         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
408         (elf_syminfo): Rename parameter pc to addr.
409         * btest.c (global): New global variable.
410         (test5): New test.
411         (main): Call test5.
413 2013-10-17  Ian Lance Taylor  <iant@google.com>
415         * elf.c (elf_add): Don't get the wrong offsets if a debug section
416         is missing.
418 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
420         * configure.ac: Add --enable-host-shared, setting up
421         pre-existing PIC_FLAG variable within Makefile.am et al.
422         * configure: Regenerate.
424 2013-09-20  Alan Modra  <amodra@gmail.com>
426         * configure: Regenerate.
428 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
430         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
432 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
434         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
435         dl_iterate_phdr callbacks.
437 2013-03-25  Ian Lance Taylor  <iant@google.com>
439         * alloc.c: #include <sys/types.h>.
440         * mmap.c: Likewise.
442 2013-01-31  Ian Lance Taylor  <iant@google.com>
444         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
445         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
447 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
449         PR other/56076
450         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
451         attribute was not seen.
453 2013-01-16  Ian Lance Taylor  <iant@google.com>
455         * dwarf.c (struct unit): Add filename and abs_filename fields.
456         (build_address_map): Set new fields when reading unit.
457         (dwarf_lookup_pc): If we don't find an entry in the line table,
458         just return the main file name.
460 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
462         Update copyright years.
464 2013-01-01  Ian Lance Taylor  <iant@google.com>
466         PR bootstrap/54834
467         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
468         $(MULTIBUILDTOP)/../../gcc/include.
469         * Makefile.in: Rebuild.
471 2013-01-01  Ian Lance Taylor  <iant@google.com>
473         PR other/55536
474         * mmap.c (backtrace_alloc): Don't call sync functions if not
475         threaded.
476         (backtrace_free): Likewise.
478 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
480         * mmapio.c: Define MAP_FAILED if not defined.
482 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
484         PR bootstrap/54926
485         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
486         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
487         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
488         accepts it.
489         * Makefile.in: Regenerated.
490         * configure: Regenerated.
492 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
494         PR bootstrap/54926
495         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
496         * Makefile.in: Regenerated.
498 2012-11-20  Ian Lance Taylor  <iant@google.com>
500         * dwarf.c (read_attribute): Always clear val.
502 2012-11-13  Ian Lance Taylor  <iant@google.com>
504         PR other/55312
505         * configure.ac: Only add -Werror if building a target library.
506         * configure: Rebuild.
508 2012-11-12  Ian Lance Taylor  <iant@google.com>
509             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
510             Gerald Pfeifer  <gerald@pfeifer.com>
512         * configure.ac: Check for getexecname.
513         * fileline.c: #include <errno.h>.  Define getexecname if not
514         available.
515         (fileline_initialize): Try to find the executable in a few
516         different ways.
517         * print.c (error_callback): Only print the filename if it came
518         from the backtrace state.
519         * configure, config.h.in: Rebuild.
521 2012-10-29  Ian Lance Taylor  <iant@google.com>
523         * mmap.c (backtrace_vector_release): Correct last patch: add
524         aligned, not size.
526 2012-10-29  Ian Lance Taylor  <iant@google.com>
528         * mmap.c (backtrace_vector_release): Make sure freed block is
529         aligned on 8-byte boundary.
531 2012-10-26  Ian Lance Taylor  <iant@google.com>
533         PR other/55087
534         * posix.c (backtrace_open): Add does_not_exist parameter.
535         * elf.c (phdr_callback): Do not warn if shared library could not
536         be opened.
537         * fileline.c (fileline_initialize): Update calls to
538         backtrace_open.
539         * internal.h (backtrace_open): Update declaration.
541 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
543         PR target/55061
544         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
545         * configure: Regenerate.
547 2012-10-24  Ian Lance Taylor  <iant@google.com>
549         PR target/55061
550         * configure.ac: Check whether -funwind-tables option works.
551         * configure: Rebuild.
553 2012-10-11  Ian Lance Taylor  <iant@google.com>
555         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
556         * configure: Rebuild.
558 2012-10-10  Ian Lance Taylor  <iant@google.com>
560         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
561         lower case.
563 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
565         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
567 2012-10-09  Ian Lance Taylor  <iant@google.com>
569         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
570         (backtrace_dwarf_add): Likewise.
572 2012-10-09  Ian Lance Taylor  <iant@google.com>
574         Add support for tracing through shared libraries.
575         * configure.ac: Check for link.h and dl_iterate_phdr.
576         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
577         ELF macros before #defining them.
578         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
579         dl_iterate_phdr.
580         (struct elf_syminfo_data): Add next field.
581         (elf_initialize_syminfo): Initialize next field.
582         (elf_add_syminfo_data): New static function.
583         (elf_add): New static function, broken out of
584         backtrace_initialize.  Call backtrace_dwarf_add instead of
585         backtrace_dwarf_initialize.
586         (struct phdr_data): Define.
587         (phdr_callback): New static function.
588         (backtrace_initialize): Call elf_add.
589         * dwarf.c (struct dwarf_data): Add next and base_address fields.
590         (add_unit_addr): Add base_address parameter.  Change all callers.
591         (add_unit_ranges, build_address_map): Likewise.
592         (add_line): Add ddata parameter.  Change all callers.
593         (read_line_program, add_function_range): Likewise.
594         (dwarf_lookup_pc): New static function, broken out of
595         dwarf_fileline.
596         (dwarf_fileline): Call dwarf_lookup_pc.
597         (build_dwarf_data): New static function.
598         (backtrace_dwarf_add): New function.
599         (backtrace_dwarf_initialize): Remove.
600         * internal.h (backtrace_dwarf_initialize): Don't declare.
601         (backtrace_dwarf_add): Declare.
602         * configure, config.h.in: Rebuild.
604 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
606         * btest.c (f23): Avoid uninitialized variable warning.
608 2012-10-04  Ian Lance Taylor  <iant@google.com>
610         * dwarf.c: If the system header files do not declare strnlen,
611         provide our own version.
613 2012-10-03  Ian Lance Taylor  <iant@google.com>
615         * dwarf.c (read_uleb128): Fix overflow test.
616         (read_sleb128): Likewise.
617         (build_address_map): Don't change unit_buf.start.
619 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
621         PR other/54761
622         * configure.ac (EXTRA_FLAGS): New.
623         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
624         * configure, Makefile.in: Regenerate.
626 2012-09-29  Ian Lance Taylor  <iant@google.com>
628         PR other/54749
629         * fileline.c (fileline_initialize): Pass errnum as -1 when
630         reporting that we could not read executable information after a
631         previous failure.
633 2012-09-27  Ian Lance Taylor  <iant@google.com>
635         PR bootstrap/54732
636         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
637         * Makefile.am: Add dependencies for all objects.
638         * configure, aclocal.m4, Makefile.in: Rebuild.
640 2012-09-27  Ian Lance Taylor  <iant@google.com>
642         PR other/54726
643         * elf.c (backtrace_initialize): Set *fileln_fn, not
644         state->fileln_fn.
646 2012-09-19  Ian Lance Taylor  <iant@google.com>
648         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
649         as a target library.
650         * configure: Rebuild.
652 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
653             Ian Lance Taylor  <iant@google.com>
655         * configure.ac (GCC_HEADER_STDINT): Invoke.
656         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
657         * btest.c: Don't include <stdint.h>.
658         * dwarf.c: Likewise.
659         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
661 2012-09-18  Ian Lance Taylor  <iant@google.com>
663         PR bootstrap/54623
664         * Makefile.am (AM_CPPFLAGS): Define.
665         (AM_CFLAGS): Remove -I options.
666         * Makefile.in: Rebuild.
668 2012-09-18  Ian Lance Taylor  <iant@google.com>
670         * posix.c (O_BINARY): Define if not defined.
671         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
672         HAVE_FCNTL is defined.
673         * configure.ac: Test for the fcntl function.
674         * configure, config.h.in: Rebuild.
676 2012-09-18  Ian Lance Taylor  <iant@google.com>
678         * btest.c (test1, test2, test3, test4): Add the unused attribute.
680 2012-09-18  Ian Lance Taylor  <iant@google.com>
682         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
684 2012-09-18  Ian Lance Taylor  <iant@google.com>
686         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
687         * mmapio.c: Don't define _GNU_SOURCE.
688         * configure, config.h.in: Rebuild.
690 2012-09-18  Ian Lance Taylor  <iant@google.com>
692         * configure.ac: Check whether strnlen is declared.
693         * dwarf.c: Declare strnlen if not declared.
694         * configure, config.h.in: Rebuild.
696 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
698         * fileline.c: Include <stdlib.h>.
699         * mmap.c: Likewise.
701 2012-09-17  Ian Lance Taylor  <iant@google.com>
703         PR bootstrap/54611
704         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
705         parameter.
707 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
709         PR bootstrap/54611
710         * nounwind.c (backtrace_simple): Add state parameter.
712 2012-09-17  Ian Lance Taylor  <iant@google.com>
714         PR bootstrap/54609
715         * unknown.c (unknown_fileline): Add state parameter, remove
716         fileline_data parameter, name error_callback parameter.
717         (backtrace_initialize): Add state parameter.
719 2012-09-17  Ian Lance Taylor  <iant@google.com>
721         * Initial implementation.
723 Copyright (C) 2012-2017 Free Software Foundation, Inc.
725 Copying and distribution of this file, with or without modification,
726 are permitted in any medium without royalty provided the copyright
727 notice and this notice are preserved.