1 2019-12-08 Ian Lance Taylor <iant@golang.org>
3 * dwarf.c (struct pcrange): Define.
4 (update_pcrange, add_ranges): New static functions.
5 (add_unit_addr): Change signature to work with add_ranges. Don't
7 (add_unit_ranges): Remove.
8 (find_address_ranges): Replace str/ranges parameters with
9 dwarf_sections. Use update_pcrange and add_ranges. Change all
11 (add_function_range): Change signature to work with add_ranges.
12 Don't add base_address here.
13 (add_function_ranges): Remove.
14 (read_function_entry): Use update_pcrange and add_ranges.
16 2019-12-04 Ian Lance Taylor <iant@golang.org>
18 * edtest.c (test1): Add noclone attribute.
20 2019-12-04 Ian Lance Taylor <iant@golang.org>
22 * internal.h (enum dwarf_section): Define.
23 (struct dwarf_sections): Define.
24 (backtrace_dwarf_add): Update declaration to replace specific
25 section parameters with dwarf_sections parameter.
26 * dwarf.c (struct dwarf_data): Replace specific section fields
27 with dwarf_sections field.
28 (read_attribute): Use dwarf_sections with altlink.
29 (build_address_map): Replace specific section parameters with
30 dwarf_sections parameter. Change all callers.
31 (read_line_info): Use dwarf_sections with ddata.
32 (read_referenced_name): Likewise.
33 (add_function_ranges): Likewise.
34 (read_function_entry): Likewise.
35 (read_function_info): Likewise.
36 (build_dwarf_data): Replace specific section parameters with
37 dwarf_sections parameter. Change all callers.
38 (backtrace_dwarf_add): Likewise.
39 * elf.c (enum debug_section): Remove.
40 (dwarf_section_names): Remove .zdebug names.
41 (elf_add): Track zsections separately. Build dwarf_sections.
42 * pecoff.c (enum debug_section): Remove.
43 (struct debug_section_info): Remove data field.
44 (coff_add): Build dwarf_sections.
45 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
46 references with DEBUG_xxx references.
47 (xcoff_add): Build dwarf_sections.
49 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
51 * configure: Regenerate.
53 2019-09-26 Ian Lance Taylor <iant@golang.org>
56 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
57 __sync_bool_compare_and_swap to void.
58 * xcoff.c (backtrace_initialize): Likewise.
60 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
62 * configure.ac: Remove references to spu.
63 * configure: Regenerate.
65 2019-05-24 Clement Chigot <clement.chigot@atos.net>
67 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
69 * Makefile.in: Regenerate.
71 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
73 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
75 * configure: Regenerate.
77 2019-03-11 Ian Lance Taylor <iant@golang.org>
80 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
82 * Makefile.in: Regenerate.
84 2019-02-26 Tom de Vries <tdevries@suse.de>
86 * btest.c (test5): Allow global.* as minimal symbol name for global.
88 2019-02-26 Tom de Vries <tdevries@suse.de>
90 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
91 * Makefile.in: Regenerate.
93 2019-02-12 Tom de Vries <tdevries@suse.de>
96 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
98 2019-02-10 Tom de Vries <tdevries@suse.de>
100 * Makefile.am (BUILDTESTS): Add btest_lto.
101 * Makefile.in: Regenerate.
102 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
103 __attribute__((noclone)).
105 2019-02-08 Tom de Vries <tdevries@suse.de>
107 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
108 * print.c (backtrace_print): Same.
109 * simple.c (backtrace_simple): Same.
111 2019-02-08 Tom de Vries <tdevries@suse.de>
113 PR libbacktrace/78063
114 * dwarf.c (build_address_map): Keep all parsed units.
115 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
117 2019-01-31 Tom de Vries <tdevries@suse.de>
119 PR libbacktrace/89136
120 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
121 'debugaltlink_name_len =+ 1'.
123 2019-01-29 Tom de Vries <tdevries@suse.de>
125 * install-debuginfo-for-buildid.sh.in: New script.
126 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
127 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
128 * Makefile.in: Regenerate.
129 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
130 (READELF): Set with AC_CHECK_PROG.
131 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
132 * configure: Regenerate.
133 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
134 (elf_open_debugfile_by_buildid): ... here.
136 2019-01-29 Tom de Vries <tdevries@suse.de>
138 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
140 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
141 (check_PROGRAMS): Add BUILDTESTS.
142 * Makefile.in: Regenerate.
144 2019-01-28 Tom de Vries <tdevries@suse.de>
146 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
147 Use $< to access prerequisite.
148 * Makefile.in: Regenerate.
150 2019-01-25 Nathan Sidwell <nathan@acm.org>
152 * elf.c (elf_add): Pass "" filename to recursive call with
155 2019-01-25 Tom de Vries <tdevries@suse.de>
157 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
159 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
160 * Makefile.in: Regenerate.
162 2019-01-25 Tom de Vries <tdevries@suse.de>
164 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
165 (TESTS): Rename dtest to btest_gnudebuglink.
166 * Makefile.in: Regenerate.
168 2019-01-23 Tom de Vries <tdevries@suse.de>
170 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
171 (units_search, find_unit): Use size_t for offset.
172 (build_address_map): Use size_t for unit_offset.
174 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
176 * allocfail.c (main): Increase portability of printf statement.
178 2019-01-18 Ian Lance Taylor <iant@golang.org>
180 PR libbacktrace/88890
181 * mmapio.c (backtrace_get_view): Change size parameter to
182 uint64_t. Check that value fits in size_t.
183 * read.c (backtrace_get_view): Likewise.
184 * internal.h (backtrace_get_view): Update declaration.
185 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
187 2019-01-17 Tom de Vries <tdevries@suse.de>
189 PR libbacktrace/82857
190 * configure.ac (DWZ): Set with AC_CHECK_PROG.
191 (HAVE_DWZ): Set with AM_CONDITIONAL.
192 * configure: Regenerate.
193 * Makefile.am (TESTS): Add btest_dwz.
194 * Makefile.in: Regenerate.
196 2019-01-17 Tom de Vries <tdevries@suse.de>
198 PR libbacktrace/82857
199 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
200 (read_attribute): Handle DW_FORM_GNU_ref_alt using
201 ATTR_VAL_REF_ALT_INFO.
202 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
204 2019-01-17 Tom de Vries <tdevries@suse.de>
206 * dwarf.c (struct unit): Add low_offset and high_offset fields.
207 (struct unit_vector): New type.
208 (struct dwarf_data): Add units and units_counts fields.
209 (find_unit): New function.
210 (find_address_ranges): Add and handle unit_tag parameter.
211 (build_address_map): Add and handle units_vec parameter.
212 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
215 2019-01-17 Tom de Vries <tdevries@suse.de>
217 PR libbacktrace/82857
218 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
221 2019-01-17 Tom de Vries <tdevries@suse.de>
223 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
224 (read_attribute): Add altlink parameter. Handle missing altlink for
225 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
226 (find_address_ranges, build_address_map, build_dwarf_data): Add and
227 handle altlink parameter.
228 (read_referenced_name, read_function_entry): Add argument to
231 2019-01-17 Tom de Vries <tdevries@suse.de>
233 * dwarf.c (struct dwarf_data): Add altlink field.
234 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
235 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
236 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
237 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
238 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
239 * xcoff.c (xcoff_add): Same.
241 2019-01-17 Tom de Vries <tdevries@suse.de>
243 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
244 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
245 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
246 argument to backtrace_dwarf_add call.
247 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
248 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
249 * xcoff.c (xcoff_add): Same.
251 2019-01-17 Tom de Vries <tdevries@suse.de>
253 * elf.c (elf_add): Add and handle with_buildid_data and
254 with_buildid_size parameters. Handle .gnu_debugaltlink section.
255 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
257 2019-01-16 Tom de Vries <tdevries@suse.de>
259 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
261 (read_referenced_name): ... here, and ...
262 (read_function_entry): ... here.
264 2019-01-16 Tom de Vries <tdevries@suse.de>
266 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
268 (read_function_entry): Same. Don't allow name found via
269 DW_AT_abstract_origin or case DW_AT_specification to override linkage
272 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
276 * backtrace.h: Mechanically replace "can not" with "cannot".
278 2019-01-01 Jakub Jelinek <jakub@redhat.com>
280 Update copyright years.
282 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
284 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
286 * Makefile.in: Regenerate.
288 2018-12-28 Tom de Vries <tdevries@suse.de>
290 * dwarf.c (build_address_map): Reuse unused units.
292 2018-12-28 Tom de Vries <tdevries@suse.de>
294 * dwarf.c (build_address_map): Simplify by removing local variable
297 2018-12-28 Ian Lance Taylor <iant@golang.org>
298 Tom de Vries <tdevries@suse.de>
300 PR libbacktrace/88063
301 * dwarf.c (free_unit_addrs_vector): Remove.
302 (build_address_map): Keep track of allocated units in vector. Free
303 allocated units and corresponding abbrevs upon failure. Remove now
304 redundant call to free_unit_addrs_vector. Free addrs vector upon
305 failure. Free allocated unit vector.
307 2018-12-28 Tom de Vries <tdevries@suse.de>
309 * dwarf.c (build_address_map): Free addrs vector upon failure.
311 2018-12-14 Tom de Vries <tdevries@suse.de>
314 * allocfail.sh: Remove "set -o pipefail".
316 2018-12-12 Tom de Vries <tdevries@suse.de>
318 * Makefile.am (TESTS): Add allocfail.sh.
319 (check_PROGRAMS): Add allocfail.
320 * Makefile.in: Regenerate.
321 * instrumented_alloc.c: New file. Redefine malloc and realloc.
323 * allocfail.c: New file.
324 * allocfail.sh: New file.
326 2018-11-30 Tom de Vries <tdevries@suse.de>
328 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
329 test_xcoff_64, test_pecoff and test_unknown.
330 * Makefile.in: Regenerate.
331 * test_format.c: New file.
333 2018-11-30 Tom de Vries <tdevries@suse.de>
335 * Makefile.am : Add _with_alloc version for each test in
337 * Makefile.in: Regenerate.
339 2018-11-30 Tom de Vries <tdevries@suse.de>
341 * internal.h (backtrace_vector_free): New static inline fuction,
343 * dwarf.c (read_line_info): ... here.
345 2018-11-28 Tom de Vries <tdevries@suse.de>
347 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
350 2018-11-27 Tom de Vries <tdevries@suse.de>
352 * mmap.c (backtrace_vector_release): Same.
353 * unittest.c (test1): Add check.
355 2018-11-27 Tom de Vries <tdevries@suse.de>
357 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
359 * Makefile.am (check_PROGRAMS): Add unittest.
360 * Makefile.in: Regenerate.
361 * unittest.c: New file.
363 2018-11-22 Tom de Vries <tdevries@suse.de>
365 * dwarf.c (read_initial_length): Factor out of ...
366 (build_address_map, read_line_info): ... here.
368 2018-11-21 Tom de Vries <tdevries@suse.de>
370 * dwarf.c (read_string): Factor out of ...
371 (read_attribute, read_line_header, read_line_program): ... here.
373 2018-10-31 Joseph Myers <joseph@codesourcery.com>
376 * Makefile.am: Include multilib.am.
377 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
378 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
380 2018-10-05 Ian Lance Taylor <iant@golang.org>
382 PR libbacktrace/87529
383 * backtrace.h: Document that backtrace_create_state should be
386 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
388 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
389 * Makefile.in: Regenerate.
390 * config.h.in: Likewise.
391 * configure: Likewise.
393 2018-08-01 Tony Reix <tony.reix@atos.net>
395 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
396 (struct xcoff_func, struct xcoff_func_vector): New structs.
397 (xcoff_syminfo): Drop leading dot from symbol name.
398 (xcoff_line_compare, xcoff_line_search): Remove.
399 (xcoff_func_compare, xcoff_func_search): New static functions.
400 (xcoff_lookup_pc): Search function table.
401 (xcoff_add_line, xcoff_process_linenos): Remove.
402 (xcoff_initialize_fileline): Build function table.
404 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
407 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
408 checking up to 36 bytes.
410 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
412 * configure: Regenerated.
414 2018-04-19 Jakub Jelinek <jakub@redhat.com>
416 * configure: Regenerated.
418 2018-04-17 Ian Lance Taylor <iant@golang.org>
420 * backtrace.c: Revert last two changes. Don't call mmap
423 2018-04-17 Ian Lance Taylor <iant@golang.org>
425 * backtrace.c: Include backtrace-supported.h before checking
426 BACKTRACE_USES_MALLOC.
428 2018-04-17 Ian Lance Taylor <iant@golang.org>
430 * backtrace.c (backtrace_full): When testing whether we can
431 allocate memory, call mmap directly, and munmap the memory.
433 2018-04-04 Jakub Jelinek <jakub@redhat.com>
436 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
437 big endian, only use 32-bit loads if endianity macros are predefined
438 and indicate big or little endian.
440 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
443 * configure: Regenerate.
445 2018-02-15 Jakub Jelinek <jakub@redhat.com>
448 * elf.c (SHT_PROGBITS): Undefine and define.
450 2018-02-14 Jakub Jelinek <jakub@redhat.com>
453 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
454 (struct elf_ppc64_opd_data): New type.
455 (elf_initialize_syminfo): Add opd argument, handle symbols
456 pointing into the PowerPC64 ELFv1 .opd section.
457 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
458 to structure with .opd data to elf_initialize_syminfo.
460 2018-01-31 Ian Lance Taylor <iant@golang.org>
462 * elf.c (elf_add): Close descriptor if we use a debugfile.
463 * btest.c (check_open_files): New static function.
464 (main): Call check_open_files.
466 2018-01-25 Ian Lance Taylor <iant@golang.org>
468 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
470 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
472 2018-01-25 Ian Lance Taylor <iant@golang.org>
474 * pecoff.c (coff_add): Only release syms_view if it is valid.
476 2018-01-25 Ian Lance Taylor <iant@golang.org>
478 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
480 2018-01-24 Ian Lance Taylor <iant@golang.org>
482 * pecoff.c (coff_add): Use coff_read4, not memcpy.
484 2018-01-24 Ian Lance Taylor <iant@golang.org>
487 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
490 2018-01-19 Tony Reix <tony.reix@atos.net>
492 * xcoff.c (xcoff_incl_compare): New function.
493 (xcoff_incl_search): New function.
494 (xcoff_process_linenos): Use bsearch to find include file.
495 (xcoff_initialize_fileline): Sort include file information.
497 2018-01-16 Ian Lance Taylor <iant@golang.org>
499 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
501 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
502 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
503 (elf_zlib_default_table): Update.
504 (elf_zlib_default_dist_table): New static array.
505 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
507 * ztest.c (struct zlib_test): Add uncompressed_len.
508 (tests): Initialize uncompressed_len field. Add new test case.
509 (test_samples): Use uncompressed_len field.
511 2018-01-03 Jakub Jelinek <jakub@redhat.com>
513 Update copyright years.
515 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
517 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
518 * aclocal.m4: Regenerate.
519 * Makefile.in: Likewise.
520 * configure: Likewise.
522 2017-10-06 Ian Lance Taylor <iant@golang.org>
524 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
525 zlib uncompress function.
527 2017-10-05 Ian Lance Taylor <iant@golang.org>
529 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
530 Read a four byte integer.
531 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
532 boundary before ever calling elf_zlib_fetch.
533 * ztest.c (test_large): Simplify print statements a bit.
535 2017-10-02 Ian Lance Taylor <iant@golang.org>
537 * ztest.c: #include <errno.h>.
538 (TEST_TIMING): Don't define, don't test.
539 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
540 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
541 (ZLIB_CLOCK_GETTIME_ARG): Define.
542 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
543 * Makefile.am: Likewise.
544 * configure, Makefile.in: Rebuild.
546 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
549 * Makefile.am: Append the content of clock_gettime_link to
551 * configure.ac: Test for the case that clock_gettime is in librt.
552 * Makefile.in: Regenerate.
553 * configure: Likewise.
556 * configure.ac: Check for clock_gettime.
557 * config.h.in: Regenerate.
558 * configure: Likewise.
559 * ztest.c (average_time, test_large): Conditionalize test timing
560 on clock_gettime availability.
562 2017-09-29 Tony Reix <tony.reix@atos.net>
564 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
565 (STYP_DWARF, SSUBTYP_DW*): Define.
566 (enum dwarf_section): Define.
567 (struct dwsect_info): Define.
568 (xcoff_add): Look for DWARF sections, pass them to
571 2017-09-28 Ian Lance Taylor <iant@golang.org>
574 * elf.c (__builtin_prefetch): Define if not __GNUC__.
576 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
577 (b_elf_chdr): Define type.
578 (enum debug_section): Add ZDEBUG_xxx values.
579 (debug_section_names): Add names for new sections.
580 (struct debug_section_info): Add compressed field.
581 (elf_zlib_failed, elf_zlib_fetch): New static functions.
582 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
583 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
584 (HUFFMAN_SECONDARY_SHIFT): Define.
585 (ZDEBUG_TABLE_SIZE): Define.
586 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
587 (final_next_secondary): New static variable if
588 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
589 (elf_zlib_inflate_table): New static function.
590 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
591 function to produce fixed Huffman table.
592 (elf_zlib_default_table): New static variable.
593 (elf_zlib_inflate): New static function.
594 (elf_zlib_verify_checksum): Likewise.
595 (elf_zlib_inflate_and_verify): Likewise.
596 (elf_uncompress_zdebug): Likewise.
597 (elf_uncompress_chdr): Likewise.
598 (backtrace_uncompress_zdebug): New extern function.
599 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
600 sections, and uncompress them.
601 * internal.h (backtrace_compress_zdebug): Declare.
603 * configure.ac: Check for -lz and check whether the linker
604 supports --compress-debug-sections.
605 * Makefile.am (ztest_SOURCES): New variable.
606 (ztest_CFLAGS, ztest_LDADD): New variables.
607 (check_PROGRAMS): Add ztest.
608 (ctestg_SOURCES): New variable.
609 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
610 (ctesta_SOURCES): New variable.
611 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
612 (check_PROGRAMS): Add ctestg and ctesta.
613 * configure, config.h.in, Makefile.in: Rebuild.
615 2017-09-22 Ian Lance Taylor <iant@golang.org>
618 * configure.ac: Check for lstat and readlink.
619 * elf.c (lstat, readlink): Provide dummy versions if real versions
621 * configure, config.h.in: Rebuild.
623 2017-09-21 Ian Lance Taylor <iant@google.com>
626 * elf.c (backtrace_initialize): Set pd.exe_filename.
628 2017-09-20 Ian Lance Taylor <iant@golang.org>
629 Denis Khalikov <d.khalikov@partner.samsung.com>
632 Support for external debug info.
633 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
634 (S_ISLNK): Define if not defined.
635 (xstrnlen): Define if strnlen is not available.
636 (b_elf_note): Define type.
637 (NT_GNU_BUILD_ID): Define macro.
638 (elf_crc32, elf_crc32_file): New static functions.
639 (elf_is_symlink, elf_readlink): New static functions.
640 (elf_open_debugfile_by_buildid): New static function.
641 (elf_try_debugfile): New static function.
642 (elf_find_debugfile_by_debuglink): New static function.
643 (elf_open_debugfile_by_debuglink): New static function.
644 (elf_add): Add filename and debuginfo parameters. Adjust all
645 callers. Look for external debug info notes, and try to fetch
646 debug info from external file.
647 (struct phdr_data): Add exe_filename field.
648 (phdr_callback): Pass filename to elf_add.
649 (backtrace_initialize): Add filename parameter.
650 * internal.h (backtrace_initialize): Add filename parameter.
651 * fileline.c (fileline_initialize): Pass filename to
652 backtrace_initialize.
653 * pecoff.c (fileline_initialize): Add unused filename parameter.
654 * unknown.c (fileline_initialize): Likewise.
655 * xcoff.c (fileline_initialize): Likewise.
656 * configure.ac: Check for objcopy --add-gnu-debuglink.
657 * Makefile.am (dtest): New test target.
658 * configure, Makefile.in: Rebuild.
660 2017-09-12 Steve Ellcey <sellcey@cavium.com>
663 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
664 * Makefile.in: Regenerate.
666 2017-09-12 Steve Ellcey <sellcey@cavium.com>
669 * libbacktrace/Makefile.in
670 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
672 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
675 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
677 2017-07-28 Tony Reix <tony.reix@atos.net>
679 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
681 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
683 * fileline.c (fileline_initialize): Print pid_t as long.
685 2017-07-26 Tony Reix <tony.reix@atos.net>
687 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
688 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
689 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
690 * configure, config.h.in: Regenerate.
692 2017-07-21 Tony Reix <tony.reix@atos.net>
694 * filetype.awk: Add AIX XCOFF type detection.
695 * configure.ac: Recognize xcoff format.
696 * Makefile.am (FORMAT_FILES): Add xcoff.c.
697 * fileline.c: Include <unistd.h>.
698 (fileline_initialize): Add case for AIX procfs.
700 * configure, Makefile.in: Rebuild.
702 2017-06-21 Richard Biener <rguenther@suse.de>
704 * configure.ac: Add AC_SYS_LARGEFILE.
705 * config.h.in: Regenerate.
706 * configure: Likewise.
708 2017-06-11 Ian Lance Taylor <iant@golang.org>
710 * elf.c (backtrace_initialize): Always set *fileline_fn.
712 * btest.c: Move support functions into testlib.c. Change calls to
713 check to pass file name.
714 * testlib.c: New file, copied from (part of) btest.c.
715 * testlib.h: New file, declarations for testlib.c.
716 * edtest.c: Use testlib.h and testlib.c.
717 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
718 * Makefile.am (btest_SOURCES): Add testlib.c.
719 (edtest_SOURCES): Likewise.
720 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
721 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
722 * configure, Makefile.in: Rebuild.
724 2017-05-19 Than McIntosh <thanm@google.com>
726 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
727 (read_line_header): Don't allocate dirs if dirs_count == 0.
728 * edtest.c: New file.
729 * edtest2.c: New file.
730 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
731 (check_PROGRAMS): Add edtest.
732 (edtest2_build.c, gen_edtest2_build): New targets.
733 * Makefile.in: Rebuild.
735 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
737 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
738 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
740 2017-01-01 Jakub Jelinek <jakub@redhat.com>
742 Update copyright years.
744 2016-11-15 Matthias Klose <doko@ubuntu.com>
746 * configure: Regenerate.
748 2016-09-11 Carlos Liam <carlos@aarzee.me>
750 * all: Remove meaningless trailing whitespace.
752 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
755 * elf.c (phdr_callback) [__i386__]: Add
756 __attribute__((__force_align_arg_pointer__)).
758 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
760 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
761 avoid possible crash.
762 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
763 missing debug info anymore.
765 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
767 * mmap.c (MAP_FAILED): Define if not defined.
769 2016-01-04 Jakub Jelinek <jakub@redhat.com>
771 Update copyright years.
773 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
775 * configure.ac: Specify that DJGPP do not have mmap
776 even when sys/mman.h exists.
777 * configure: Regenerate
779 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
782 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
783 * configure: Regenerate.
784 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
787 2015-09-17 Ian Lance Taylor <iant@google.com>
789 * posix.c (backtrace_open): Cast second argument of open() to int.
791 2015-09-11 Ian Lance Taylor <iant@google.com>
793 * Makefile.am (backtrace.lo): Depend on internal.h.
794 (sort.lo, stest.lo): Add explicit dependencies.
795 * Makefile.in: Rebuild.
797 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
799 * backtrace.c: #include <sys/types.h>.
801 2015-09-08 Ian Lance Taylor <iant@google.com>
804 * backtrace.c: #include "internal.h".
805 (struct backtrace_data): Add can_alloc field.
806 (unwind): If can_alloc is false, don't try to get file/line
808 (backtrace_full): Set can_alloc field in bdata.
809 * alloc.c (backtrace_alloc): Don't call error_callback if it is
811 * mmap.c (backtrace_alloc): Likewise.
812 * internal.h: Update comments for backtrace_alloc and
815 2015-09-08 Ian Lance Taylor <iant@google.com>
818 * mmap.c (backtrace_alloc): Correct test for mmap failure.
820 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
822 * configure.ac: For spu-*-* targets, set have_fcntl to no.
823 * configure: Regenerate.
825 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
827 * configure.ac: Remove [disable-shared] argument to LT_INIT.
828 Remove setting PIC_FLAG when building as target library.
829 * configure: Regenerate.
831 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
833 * configure.ac: Only compile with -fPIC if the target
835 * configure: Regenerate.
837 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
839 * configure.ac: Set have_mmap to no on spu-*-* targets.
840 * configure: Regenerate.
842 2015-08-13 Ian Lance Taylor <iant@google.com>
844 * dwarf.c (read_function_entry): Add vec_inlined parameter.
847 2015-06-11 Martin Sebor <msebor@redhat.com>
850 * dwarf.c (struct line): Add new field idx.
851 (line_compare): Use it.
853 (read_line_info): Reset it.
855 2015-05-29 Tristan Gingold <gingold@adacore.com>
857 * pecoff.c: New file.
858 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
859 * Makefile.in: Regenerate.
860 * filetype.awk: Detect pecoff.
861 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
863 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
865 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
866 * configure: Regenerate.
867 * pecoff.c: New file.
869 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
871 * Makefile.in: Regenerated with automake-1.11.6.
872 * aclocal.m4: Likewise.
873 * configure: Likewise.
875 2015-01-24 Matthias Klose <doko@ubuntu.com>
877 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
878 * configure: Regenerate.
880 2015-01-05 Jakub Jelinek <jakub@redhat.com>
882 Update copyright years.
884 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
887 * configure: Regenerated.
889 2014-11-11 David Malcolm <dmalcolm@redhat.com>
891 * ChangeLog.jit: New.
893 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
896 * configure: Regenerate.
898 2014-10-23 Ian Lance Taylor <iant@google.com>
900 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
901 Fix to return void *.
903 2014-05-08 Ian Lance Taylor <iant@google.com>
905 * mmap.c (backtrace_free): If freeing a large aligned block of
906 memory, call munmap rather than holding onto it.
907 (backtrace_vector_grow): When growing a vector, double the number
908 of pages requested. When releasing the old version of a grown
909 vector, pass the correct size to backtrace_free.
911 2014-03-07 Ian Lance Taylor <iant@google.com>
913 * sort.c (backtrace_qsort): Use middle element as pivot.
915 2014-03-06 Ian Lance Taylor <iant@google.com>
919 * internal.h (backtrace_qsort): Declare.
920 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
921 (read_line_info, read_function_entry): Likewise.
922 (read_function_info, build_dwarf_data): Likewise.
923 * elf.c (elf_initialize_syminfo): Likewise.
924 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
925 (stest_SOURCES, stest_LDADD): Define.
926 (check_PROGRAMS): Add stest.
928 2014-02-07 Misty De Meo <misty@brew.sh>
931 * configure.ac: Use AC_LINK_IFELSE in check for
933 * configure: Regenerate.
935 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
937 Update copyright years
939 2013-12-06 Jakub Jelinek <jakub@redhat.com>
941 * elf.c (ET_DYN): Undefine and define again.
942 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
943 return early -1 without closing the descriptor.
944 (struct phdr_data): Add exe_descriptor.
945 (phdr_callback): If pd->exe_descriptor is not -1, for very first
946 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
947 otherwise backtrace_close the exe_descriptor if not -1. Adjust
949 (backtrace_initialize): Adjust call to elf_add. If it returns
950 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
952 2013-12-05 Ian Lance Taylor <iant@google.com>
954 * alloc.c (backtrace_vector_finish): Add error_callback and data
955 parameters. Call backtrace_vector_release. Return address base.
956 * mmap.c (backtrace_vector_finish): Add error_callback and data
957 parameters. Return address base.
958 * dwarf.c (read_function_info): Get new address base from
959 backtrace_vector_finish.
960 * internal.h (backtrace_vector_finish): Update declaration.
962 2013-11-27 Ian Lance Taylor <iant@google.com>
964 * dwarf.c (find_address_ranges): New static function, broken out
965 of build_address_map.
966 (build_address_map): Call it.
967 * btest.c (check): Check for missing filename or function, rather
969 (f3): Check that enough frames were returned.
971 2013-11-19 Jakub Jelinek <jakub@redhat.com>
973 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
974 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
976 * btest.c (struct symdata): Add size field.
977 (callback_three): Add symsize argument. Copy it to the data->size
979 (f23): Set symdata.size to 0.
980 (test5): Likewise. If sizeof (int) > 1, lookup address of
981 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
984 * atomic.c: Include sys/types.h.
986 2013-11-18 Ian Lance Taylor <iant@google.com>
988 * configure.ac: Check for support of __atomic extensions.
989 * internal.h: Declare or #define atomic functions for use in
991 * atomic.c: New file.
992 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
993 (dwarf_fileline, backtrace_dwarf_add): Likewise.
994 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
995 (backtrace_initialize): Likewise.
996 * fileline.c (fileline_initialize): Likewise.
997 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
998 * configure, config.h.in, Makefile.in: Rebuild.
1000 2013-11-18 Jakub Jelinek <jakub@redhat.com>
1002 * elf.c (SHN_UNDEF): Define.
1003 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1004 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1005 (elf_add): Adjust caller.
1007 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1009 2013-11-16 Ian Lance Taylor <iant@google.com>
1011 * backtrace.h (backtrace_create_state): Correct comment about
1014 2013-11-15 Ian Lance Taylor <iant@google.com>
1016 * backtrace.h (backtrace_syminfo): Update comment and parameter
1017 name to take any address, not just a PC value.
1018 * elf.c (STT_OBJECT): Define.
1019 (elf_nosyms): Rename parameter pc to addr.
1020 (elf_symbol_search): Rename local variable pc to addr.
1021 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1022 (elf_syminfo): Rename parameter pc to addr.
1023 * btest.c (global): New global variable.
1027 2013-10-17 Ian Lance Taylor <iant@google.com>
1029 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1032 2013-10-15 David Malcolm <dmalcolm@redhat.com>
1034 * configure.ac: Add --enable-host-shared, setting up
1035 pre-existing PIC_FLAG variable within Makefile.am et al.
1036 * configure: Regenerate.
1038 2013-09-20 Alan Modra <amodra@gmail.com>
1040 * configure: Regenerate.
1042 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1044 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1046 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1048 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1049 dl_iterate_phdr callbacks.
1051 2013-03-25 Ian Lance Taylor <iant@google.com>
1053 * alloc.c: #include <sys/types.h>.
1056 2013-01-31 Ian Lance Taylor <iant@google.com>
1058 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1059 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1061 2013-01-25 Jakub Jelinek <jakub@redhat.com>
1064 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1065 attribute was not seen.
1067 2013-01-16 Ian Lance Taylor <iant@google.com>
1069 * dwarf.c (struct unit): Add filename and abs_filename fields.
1070 (build_address_map): Set new fields when reading unit.
1071 (dwarf_lookup_pc): If we don't find an entry in the line table,
1072 just return the main file name.
1074 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1076 Update copyright years.
1078 2013-01-01 Ian Lance Taylor <iant@google.com>
1081 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1082 $(MULTIBUILDTOP)/../../gcc/include.
1083 * Makefile.in: Rebuild.
1085 2013-01-01 Ian Lance Taylor <iant@google.com>
1088 * mmap.c (backtrace_alloc): Don't call sync functions if not
1090 (backtrace_free): Likewise.
1092 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1094 * mmapio.c: Define MAP_FAILED if not defined.
1096 2012-12-11 Jakub Jelinek <jakub@redhat.com>
1099 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1100 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1101 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1103 * Makefile.in: Regenerated.
1104 * configure: Regenerated.
1106 2012-12-07 Jakub Jelinek <jakub@redhat.com>
1109 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1110 * Makefile.in: Regenerated.
1112 2012-11-20 Ian Lance Taylor <iant@google.com>
1114 * dwarf.c (read_attribute): Always clear val.
1116 2012-11-13 Ian Lance Taylor <iant@google.com>
1119 * configure.ac: Only add -Werror if building a target library.
1120 * configure: Rebuild.
1122 2012-11-12 Ian Lance Taylor <iant@google.com>
1123 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1124 Gerald Pfeifer <gerald@pfeifer.com>
1126 * configure.ac: Check for getexecname.
1127 * fileline.c: #include <errno.h>. Define getexecname if not
1129 (fileline_initialize): Try to find the executable in a few
1131 * print.c (error_callback): Only print the filename if it came
1132 from the backtrace state.
1133 * configure, config.h.in: Rebuild.
1135 2012-10-29 Ian Lance Taylor <iant@google.com>
1137 * mmap.c (backtrace_vector_release): Correct last patch: add
1140 2012-10-29 Ian Lance Taylor <iant@google.com>
1142 * mmap.c (backtrace_vector_release): Make sure freed block is
1143 aligned on 8-byte boundary.
1145 2012-10-26 Ian Lance Taylor <iant@google.com>
1148 * posix.c (backtrace_open): Add does_not_exist parameter.
1149 * elf.c (phdr_callback): Do not warn if shared library could not
1151 * fileline.c (fileline_initialize): Update calls to
1153 * internal.h (backtrace_open): Update declaration.
1155 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1158 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1159 * configure: Regenerate.
1161 2012-10-24 Ian Lance Taylor <iant@google.com>
1164 * configure.ac: Check whether -funwind-tables option works.
1165 * configure: Rebuild.
1167 2012-10-11 Ian Lance Taylor <iant@google.com>
1169 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1170 * configure: Rebuild.
1172 2012-10-10 Ian Lance Taylor <iant@google.com>
1174 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1177 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1179 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1181 2012-10-09 Ian Lance Taylor <iant@google.com>
1183 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1184 (backtrace_dwarf_add): Likewise.
1186 2012-10-09 Ian Lance Taylor <iant@google.com>
1188 Add support for tracing through shared libraries.
1189 * configure.ac: Check for link.h and dl_iterate_phdr.
1190 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1191 ELF macros before #defining them.
1192 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1194 (struct elf_syminfo_data): Add next field.
1195 (elf_initialize_syminfo): Initialize next field.
1196 (elf_add_syminfo_data): New static function.
1197 (elf_add): New static function, broken out of
1198 backtrace_initialize. Call backtrace_dwarf_add instead of
1199 backtrace_dwarf_initialize.
1200 (struct phdr_data): Define.
1201 (phdr_callback): New static function.
1202 (backtrace_initialize): Call elf_add.
1203 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1204 (add_unit_addr): Add base_address parameter. Change all callers.
1205 (add_unit_ranges, build_address_map): Likewise.
1206 (add_line): Add ddata parameter. Change all callers.
1207 (read_line_program, add_function_range): Likewise.
1208 (dwarf_lookup_pc): New static function, broken out of
1210 (dwarf_fileline): Call dwarf_lookup_pc.
1211 (build_dwarf_data): New static function.
1212 (backtrace_dwarf_add): New function.
1213 (backtrace_dwarf_initialize): Remove.
1214 * internal.h (backtrace_dwarf_initialize): Don't declare.
1215 (backtrace_dwarf_add): Declare.
1216 * configure, config.h.in: Rebuild.
1218 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1220 * btest.c (f23): Avoid uninitialized variable warning.
1222 2012-10-04 Ian Lance Taylor <iant@google.com>
1224 * dwarf.c: If the system header files do not declare strnlen,
1225 provide our own version.
1227 2012-10-03 Ian Lance Taylor <iant@google.com>
1229 * dwarf.c (read_uleb128): Fix overflow test.
1230 (read_sleb128): Likewise.
1231 (build_address_map): Don't change unit_buf.start.
1233 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1236 * configure.ac (EXTRA_FLAGS): New.
1237 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1238 * configure, Makefile.in: Regenerate.
1240 2012-09-29 Ian Lance Taylor <iant@google.com>
1243 * fileline.c (fileline_initialize): Pass errnum as -1 when
1244 reporting that we could not read executable information after a
1247 2012-09-27 Ian Lance Taylor <iant@google.com>
1250 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1251 * Makefile.am: Add dependencies for all objects.
1252 * configure, aclocal.m4, Makefile.in: Rebuild.
1254 2012-09-27 Ian Lance Taylor <iant@google.com>
1257 * elf.c (backtrace_initialize): Set *fileln_fn, not
1260 2012-09-19 Ian Lance Taylor <iant@google.com>
1262 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1263 as a target library.
1264 * configure: Rebuild.
1266 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1267 Ian Lance Taylor <iant@google.com>
1269 * configure.ac (GCC_HEADER_STDINT): Invoke.
1270 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1271 * btest.c: Don't include <stdint.h>.
1272 * dwarf.c: Likewise.
1273 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1275 2012-09-18 Ian Lance Taylor <iant@google.com>
1278 * Makefile.am (AM_CPPFLAGS): Define.
1279 (AM_CFLAGS): Remove -I options.
1280 * Makefile.in: Rebuild.
1282 2012-09-18 Ian Lance Taylor <iant@google.com>
1284 * posix.c (O_BINARY): Define if not defined.
1285 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1286 HAVE_FCNTL is defined.
1287 * configure.ac: Test for the fcntl function.
1288 * configure, config.h.in: Rebuild.
1290 2012-09-18 Ian Lance Taylor <iant@google.com>
1292 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1294 2012-09-18 Ian Lance Taylor <iant@google.com>
1296 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1298 2012-09-18 Ian Lance Taylor <iant@google.com>
1300 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1301 * mmapio.c: Don't define _GNU_SOURCE.
1302 * configure, config.h.in: Rebuild.
1304 2012-09-18 Ian Lance Taylor <iant@google.com>
1306 * configure.ac: Check whether strnlen is declared.
1307 * dwarf.c: Declare strnlen if not declared.
1308 * configure, config.h.in: Rebuild.
1310 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1312 * fileline.c: Include <stdlib.h>.
1315 2012-09-17 Ian Lance Taylor <iant@google.com>
1318 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1321 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1324 * nounwind.c (backtrace_simple): Add state parameter.
1326 2012-09-17 Ian Lance Taylor <iant@google.com>
1329 * unknown.c (unknown_fileline): Add state parameter, remove
1330 fileline_data parameter, name error_callback parameter.
1331 (backtrace_initialize): Add state parameter.
1333 2012-09-17 Ian Lance Taylor <iant@google.com>
1335 * Initial implementation.
1337 Copyright (C) 2012-2019 Free Software Foundation, Inc.
1339 Copying and distribution of this file, with or without modification,
1340 are permitted in any medium without royalty provided the copyright
1341 notice and this notice are preserved.