1 2017-09-21 Ian Lance Taylor <iant@google.com>
4 * elf.c (backtrace_initialize): Set pd.exe_filename.
6 2017-09-20 Ian Lance Taylor <iant@golang.org>
7 Denis Khalikov <d.khalikov@partner.samsung.com>
10 Support for external debug info.
11 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
12 (S_ISLNK): Define if not defined.
13 (xstrnlen): Define if strnlen is not available.
14 (b_elf_note): Define type.
15 (NT_GNU_BUILD_ID): Define macro.
16 (elf_crc32, elf_crc32_file): New static functions.
17 (elf_is_symlink, elf_readlink): New static functions.
18 (elf_open_debugfile_by_buildid): New static function.
19 (elf_try_debugfile): New static function.
20 (elf_find_debugfile_by_debuglink): New static function.
21 (elf_open_debugfile_by_debuglink): New static function.
22 (elf_add): Add filename and debuginfo parameters. Adjust all
23 callers. Look for external debug info notes, and try to fetch
24 debug info from external file.
25 (struct phdr_data): Add exe_filename field.
26 (phdr_callback): Pass filename to elf_add.
27 (backtrace_initialize): Add filename parameter.
28 * internal.h (backtrace_initialize): Add filename parameter.
29 * fileline.c (fileline_initialize): Pass filename to
31 * pecoff.c (fileline_initialize): Add unused filename parameter.
32 * unknown.c (fileline_initialize): Likewise.
33 * xcoff.c (fileline_initialize): Likewise.
34 * configure.ac: Check for objcopy --add-gnu-debuglink.
35 * Makefile.am (dtest): New test target.
36 * configure, Makefile.in: Rebuild.
38 2017-09-12 Steve Ellcey <sellcey@cavium.com>
41 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
42 * Makefile.in: Regenerate.
44 2017-09-12 Steve Ellcey <sellcey@cavium.com>
47 * libbacktrace/Makefile.in
48 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
50 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
53 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
55 2017-07-28 Tony Reix <tony.reix@atos.net>
57 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
59 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61 * fileline.c (fileline_initialize): Print pid_t as long.
63 2017-07-26 Tony Reix <tony.reix@atos.net>
65 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
66 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
67 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
68 * configure, config.h.in: Regenerate.
70 2017-07-21 Tony Reix <tony.reix@atos.net>
72 * filetype.awk: Add AIX XCOFF type detection.
73 * configure.ac: Recognize xcoff format.
74 * Makefile.am (FORMAT_FILES): Add xcoff.c.
75 * fileline.c: Include <unistd.h>.
76 (fileline_initialize): Add case for AIX procfs.
78 * configure, Makefile.in: Rebuild.
80 2017-06-21 Richard Biener <rguenther@suse.de>
82 * configure.ac: Add AC_SYS_LARGEFILE.
83 * config.h.in: Regenerate.
84 * configure: Likewise.
86 2017-06-11 Ian Lance Taylor <iant@golang.org>
88 * elf.c (backtrace_initialize): Always set *fileline_fn.
90 * btest.c: Move support functions into testlib.c. Change calls to
91 check to pass file name.
92 * testlib.c: New file, copied from (part of) btest.c.
93 * testlib.h: New file, declarations for testlib.c.
94 * edtest.c: Use testlib.h and testlib.c.
95 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
96 * Makefile.am (btest_SOURCES): Add testlib.c.
97 (edtest_SOURCES): Likewise.
98 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
99 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
100 * configure, Makefile.in: Rebuild.
102 2017-05-19 Than McIntosh <thanm@google.com>
104 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
105 (read_line_header): Don't allocate dirs if dirs_count == 0.
106 * edtest.c: New file.
107 * edtest2.c: New file.
108 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
109 (check_PROGRAMS): Add edtest.
110 (edtest2_build.c, gen_edtest2_build): New targets.
111 * Makefile.in: Rebuild.
113 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
115 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
116 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
118 2017-01-01 Jakub Jelinek <jakub@redhat.com>
120 Update copyright years.
122 2016-11-15 Matthias Klose <doko@ubuntu.com>
124 * configure: Regenerate.
126 2016-09-11 Carlos Liam <carlos@aarzee.me>
128 * all: Remove meaningless trailing whitespace.
130 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
133 * elf.c (phdr_callback) [__i386__]: Add
134 __attribute__((__force_align_arg_pointer__)).
136 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
138 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
139 avoid possible crash.
140 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
141 missing debug info anymore.
143 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
145 * mmap.c (MAP_FAILED): Define if not defined.
147 2016-01-04 Jakub Jelinek <jakub@redhat.com>
149 Update copyright years.
151 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
153 * configure.ac: Specify that DJGPP do not have mmap
154 even when sys/mman.h exists.
155 * configure: Regenerate
157 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
160 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
161 * configure: Regenerate.
162 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
165 2015-09-17 Ian Lance Taylor <iant@google.com>
167 * posix.c (backtrace_open): Cast second argument of open() to int.
169 2015-09-11 Ian Lance Taylor <iant@google.com>
171 * Makefile.am (backtrace.lo): Depend on internal.h.
172 (sort.lo, stest.lo): Add explicit dependencies.
173 * Makefile.in: Rebuild.
175 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
177 * backtrace.c: #include <sys/types.h>.
179 2015-09-08 Ian Lance Taylor <iant@google.com>
182 * backtrace.c: #include "internal.h".
183 (struct backtrace_data): Add can_alloc field.
184 (unwind): If can_alloc is false, don't try to get file/line
186 (backtrace_full): Set can_alloc field in bdata.
187 * alloc.c (backtrace_alloc): Don't call error_callback if it is
189 * mmap.c (backtrace_alloc): Likewise.
190 * internal.h: Update comments for backtrace_alloc and
193 2015-09-08 Ian Lance Taylor <iant@google.com>
196 * mmap.c (backtrace_alloc): Correct test for mmap failure.
198 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
200 * configure.ac: For spu-*-* targets, set have_fcntl to no.
201 * configure: Regenerate.
203 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
205 * configure.ac: Remove [disable-shared] argument to LT_INIT.
206 Remove setting PIC_FLAG when building as target library.
207 * configure: Regenerate.
209 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
211 * configure.ac: Only compile with -fPIC if the target
213 * configure: Regenerate.
215 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
217 * configure.ac: Set have_mmap to no on spu-*-* targets.
218 * configure: Regenerate.
220 2015-08-13 Ian Lance Taylor <iant@google.com>
222 * dwarf.c (read_function_entry): Add vec_inlined parameter.
225 2015-06-11 Martin Sebor <msebor@redhat.com>
228 * dwarf.c (struct line): Add new field idx.
229 (line_compare): Use it.
231 (read_line_info): Reset it.
233 2015-05-29 Tristan Gingold <gingold@adacore.com>
235 * pecoff.c: New file.
236 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
237 * Makefile.in: Regenerate.
238 * filetype.awk: Detect pecoff.
239 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
241 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
243 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
244 * configure: Regenerate.
245 * pecoff.c: New file.
247 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
249 * Makefile.in: Regenerated with automake-1.11.6.
250 * aclocal.m4: Likewise.
251 * configure: Likewise.
253 2015-01-24 Matthias Klose <doko@ubuntu.com>
255 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
256 * configure: Regenerate.
258 2015-01-05 Jakub Jelinek <jakub@redhat.com>
260 Update copyright years.
262 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
265 * configure: Regenerated.
267 2014-11-11 David Malcolm <dmalcolm@redhat.com>
269 * ChangeLog.jit: New.
271 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
274 * configure: Regenerate.
276 2014-10-23 Ian Lance Taylor <iant@google.com>
278 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
279 Fix to return void *.
281 2014-05-08 Ian Lance Taylor <iant@google.com>
283 * mmap.c (backtrace_free): If freeing a large aligned block of
284 memory, call munmap rather than holding onto it.
285 (backtrace_vector_grow): When growing a vector, double the number
286 of pages requested. When releasing the old version of a grown
287 vector, pass the correct size to backtrace_free.
289 2014-03-07 Ian Lance Taylor <iant@google.com>
291 * sort.c (backtrace_qsort): Use middle element as pivot.
293 2014-03-06 Ian Lance Taylor <iant@google.com>
297 * internal.h (backtrace_qsort): Declare.
298 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
299 (read_line_info, read_function_entry): Likewise.
300 (read_function_info, build_dwarf_data): Likewise.
301 * elf.c (elf_initialize_syminfo): Likewise.
302 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
303 (stest_SOURCES, stest_LDADD): Define.
304 (check_PROGRAMS): Add stest.
306 2014-02-07 Misty De Meo <misty@brew.sh>
309 * configure.ac: Use AC_LINK_IFELSE in check for
311 * configure: Regenerate.
313 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
315 Update copyright years
317 2013-12-06 Jakub Jelinek <jakub@redhat.com>
319 * elf.c (ET_DYN): Undefine and define again.
320 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
321 return early -1 without closing the descriptor.
322 (struct phdr_data): Add exe_descriptor.
323 (phdr_callback): If pd->exe_descriptor is not -1, for very first
324 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
325 otherwise backtrace_close the exe_descriptor if not -1. Adjust
327 (backtrace_initialize): Adjust call to elf_add. If it returns
328 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
330 2013-12-05 Ian Lance Taylor <iant@google.com>
332 * alloc.c (backtrace_vector_finish): Add error_callback and data
333 parameters. Call backtrace_vector_release. Return address base.
334 * mmap.c (backtrace_vector_finish): Add error_callback and data
335 parameters. Return address base.
336 * dwarf.c (read_function_info): Get new address base from
337 backtrace_vector_finish.
338 * internal.h (backtrace_vector_finish): Update declaration.
340 2013-11-27 Ian Lance Taylor <iant@google.com>
342 * dwarf.c (find_address_ranges): New static function, broken out
343 of build_address_map.
344 (build_address_map): Call it.
345 * btest.c (check): Check for missing filename or function, rather
347 (f3): Check that enough frames were returned.
349 2013-11-19 Jakub Jelinek <jakub@redhat.com>
351 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
352 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
354 * btest.c (struct symdata): Add size field.
355 (callback_three): Add symsize argument. Copy it to the data->size
357 (f23): Set symdata.size to 0.
358 (test5): Likewise. If sizeof (int) > 1, lookup address of
359 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
362 * atomic.c: Include sys/types.h.
364 2013-11-18 Ian Lance Taylor <iant@google.com>
366 * configure.ac: Check for support of __atomic extensions.
367 * internal.h: Declare or #define atomic functions for use in
369 * atomic.c: New file.
370 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
371 (dwarf_fileline, backtrace_dwarf_add): Likewise.
372 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
373 (backtrace_initialize): Likewise.
374 * fileline.c (fileline_initialize): Likewise.
375 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
376 * configure, config.h.in, Makefile.in: Rebuild.
378 2013-11-18 Jakub Jelinek <jakub@redhat.com>
380 * elf.c (SHN_UNDEF): Define.
381 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
382 with st_shndx == SHN_UNDEF. Add base_address to address fields.
383 (elf_add): Adjust caller.
385 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
387 2013-11-16 Ian Lance Taylor <iant@google.com>
389 * backtrace.h (backtrace_create_state): Correct comment about
392 2013-11-15 Ian Lance Taylor <iant@google.com>
394 * backtrace.h (backtrace_syminfo): Update comment and parameter
395 name to take any address, not just a PC value.
396 * elf.c (STT_OBJECT): Define.
397 (elf_nosyms): Rename parameter pc to addr.
398 (elf_symbol_search): Rename local variable pc to addr.
399 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
400 (elf_syminfo): Rename parameter pc to addr.
401 * btest.c (global): New global variable.
405 2013-10-17 Ian Lance Taylor <iant@google.com>
407 * elf.c (elf_add): Don't get the wrong offsets if a debug section
410 2013-10-15 David Malcolm <dmalcolm@redhat.com>
412 * configure.ac: Add --enable-host-shared, setting up
413 pre-existing PIC_FLAG variable within Makefile.am et al.
414 * configure: Regenerate.
416 2013-09-20 Alan Modra <amodra@gmail.com>
418 * configure: Regenerate.
420 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
422 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
424 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
426 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
427 dl_iterate_phdr callbacks.
429 2013-03-25 Ian Lance Taylor <iant@google.com>
431 * alloc.c: #include <sys/types.h>.
434 2013-01-31 Ian Lance Taylor <iant@google.com>
436 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
437 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
439 2013-01-25 Jakub Jelinek <jakub@redhat.com>
442 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
443 attribute was not seen.
445 2013-01-16 Ian Lance Taylor <iant@google.com>
447 * dwarf.c (struct unit): Add filename and abs_filename fields.
448 (build_address_map): Set new fields when reading unit.
449 (dwarf_lookup_pc): If we don't find an entry in the line table,
450 just return the main file name.
452 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
454 Update copyright years.
456 2013-01-01 Ian Lance Taylor <iant@google.com>
459 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
460 $(MULTIBUILDTOP)/../../gcc/include.
461 * Makefile.in: Rebuild.
463 2013-01-01 Ian Lance Taylor <iant@google.com>
466 * mmap.c (backtrace_alloc): Don't call sync functions if not
468 (backtrace_free): Likewise.
470 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
472 * mmapio.c: Define MAP_FAILED if not defined.
474 2012-12-11 Jakub Jelinek <jakub@redhat.com>
477 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
478 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
479 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
481 * Makefile.in: Regenerated.
482 * configure: Regenerated.
484 2012-12-07 Jakub Jelinek <jakub@redhat.com>
487 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
488 * Makefile.in: Regenerated.
490 2012-11-20 Ian Lance Taylor <iant@google.com>
492 * dwarf.c (read_attribute): Always clear val.
494 2012-11-13 Ian Lance Taylor <iant@google.com>
497 * configure.ac: Only add -Werror if building a target library.
498 * configure: Rebuild.
500 2012-11-12 Ian Lance Taylor <iant@google.com>
501 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502 Gerald Pfeifer <gerald@pfeifer.com>
504 * configure.ac: Check for getexecname.
505 * fileline.c: #include <errno.h>. Define getexecname if not
507 (fileline_initialize): Try to find the executable in a few
509 * print.c (error_callback): Only print the filename if it came
510 from the backtrace state.
511 * configure, config.h.in: Rebuild.
513 2012-10-29 Ian Lance Taylor <iant@google.com>
515 * mmap.c (backtrace_vector_release): Correct last patch: add
518 2012-10-29 Ian Lance Taylor <iant@google.com>
520 * mmap.c (backtrace_vector_release): Make sure freed block is
521 aligned on 8-byte boundary.
523 2012-10-26 Ian Lance Taylor <iant@google.com>
526 * posix.c (backtrace_open): Add does_not_exist parameter.
527 * elf.c (phdr_callback): Do not warn if shared library could not
529 * fileline.c (fileline_initialize): Update calls to
531 * internal.h (backtrace_open): Update declaration.
533 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
536 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
537 * configure: Regenerate.
539 2012-10-24 Ian Lance Taylor <iant@google.com>
542 * configure.ac: Check whether -funwind-tables option works.
543 * configure: Rebuild.
545 2012-10-11 Ian Lance Taylor <iant@google.com>
547 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
548 * configure: Rebuild.
550 2012-10-10 Ian Lance Taylor <iant@google.com>
552 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
555 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
557 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
559 2012-10-09 Ian Lance Taylor <iant@google.com>
561 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
562 (backtrace_dwarf_add): Likewise.
564 2012-10-09 Ian Lance Taylor <iant@google.com>
566 Add support for tracing through shared libraries.
567 * configure.ac: Check for link.h and dl_iterate_phdr.
568 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
569 ELF macros before #defining them.
570 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
572 (struct elf_syminfo_data): Add next field.
573 (elf_initialize_syminfo): Initialize next field.
574 (elf_add_syminfo_data): New static function.
575 (elf_add): New static function, broken out of
576 backtrace_initialize. Call backtrace_dwarf_add instead of
577 backtrace_dwarf_initialize.
578 (struct phdr_data): Define.
579 (phdr_callback): New static function.
580 (backtrace_initialize): Call elf_add.
581 * dwarf.c (struct dwarf_data): Add next and base_address fields.
582 (add_unit_addr): Add base_address parameter. Change all callers.
583 (add_unit_ranges, build_address_map): Likewise.
584 (add_line): Add ddata parameter. Change all callers.
585 (read_line_program, add_function_range): Likewise.
586 (dwarf_lookup_pc): New static function, broken out of
588 (dwarf_fileline): Call dwarf_lookup_pc.
589 (build_dwarf_data): New static function.
590 (backtrace_dwarf_add): New function.
591 (backtrace_dwarf_initialize): Remove.
592 * internal.h (backtrace_dwarf_initialize): Don't declare.
593 (backtrace_dwarf_add): Declare.
594 * configure, config.h.in: Rebuild.
596 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
598 * btest.c (f23): Avoid uninitialized variable warning.
600 2012-10-04 Ian Lance Taylor <iant@google.com>
602 * dwarf.c: If the system header files do not declare strnlen,
603 provide our own version.
605 2012-10-03 Ian Lance Taylor <iant@google.com>
607 * dwarf.c (read_uleb128): Fix overflow test.
608 (read_sleb128): Likewise.
609 (build_address_map): Don't change unit_buf.start.
611 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
614 * configure.ac (EXTRA_FLAGS): New.
615 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
616 * configure, Makefile.in: Regenerate.
618 2012-09-29 Ian Lance Taylor <iant@google.com>
621 * fileline.c (fileline_initialize): Pass errnum as -1 when
622 reporting that we could not read executable information after a
625 2012-09-27 Ian Lance Taylor <iant@google.com>
628 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
629 * Makefile.am: Add dependencies for all objects.
630 * configure, aclocal.m4, Makefile.in: Rebuild.
632 2012-09-27 Ian Lance Taylor <iant@google.com>
635 * elf.c (backtrace_initialize): Set *fileln_fn, not
638 2012-09-19 Ian Lance Taylor <iant@google.com>
640 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
642 * configure: Rebuild.
644 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
645 Ian Lance Taylor <iant@google.com>
647 * configure.ac (GCC_HEADER_STDINT): Invoke.
648 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
649 * btest.c: Don't include <stdint.h>.
651 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
653 2012-09-18 Ian Lance Taylor <iant@google.com>
656 * Makefile.am (AM_CPPFLAGS): Define.
657 (AM_CFLAGS): Remove -I options.
658 * Makefile.in: Rebuild.
660 2012-09-18 Ian Lance Taylor <iant@google.com>
662 * posix.c (O_BINARY): Define if not defined.
663 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
664 HAVE_FCNTL is defined.
665 * configure.ac: Test for the fcntl function.
666 * configure, config.h.in: Rebuild.
668 2012-09-18 Ian Lance Taylor <iant@google.com>
670 * btest.c (test1, test2, test3, test4): Add the unused attribute.
672 2012-09-18 Ian Lance Taylor <iant@google.com>
674 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
676 2012-09-18 Ian Lance Taylor <iant@google.com>
678 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
679 * mmapio.c: Don't define _GNU_SOURCE.
680 * configure, config.h.in: Rebuild.
682 2012-09-18 Ian Lance Taylor <iant@google.com>
684 * configure.ac: Check whether strnlen is declared.
685 * dwarf.c: Declare strnlen if not declared.
686 * configure, config.h.in: Rebuild.
688 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
690 * fileline.c: Include <stdlib.h>.
693 2012-09-17 Ian Lance Taylor <iant@google.com>
696 * nounwind.c (backtrace_full): Rename from backtrace. Add state
699 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
702 * nounwind.c (backtrace_simple): Add state parameter.
704 2012-09-17 Ian Lance Taylor <iant@google.com>
707 * unknown.c (unknown_fileline): Add state parameter, remove
708 fileline_data parameter, name error_callback parameter.
709 (backtrace_initialize): Add state parameter.
711 2012-09-17 Ian Lance Taylor <iant@google.com>
713 * Initial implementation.
715 Copyright (C) 2012-2017 Free Software Foundation, Inc.
717 Copying and distribution of this file, with or without modification,
718 are permitted in any medium without royalty provided the copyright
719 notice and this notice are preserved.