Daily bump.
[official-gcc.git] / libbacktrace / ChangeLog
blobdc986b9370efc6063495463ee493bbaa0cb6bb28
1 2021-08-13  Sergei Trofimovich  <siarheit@google.com>
3         * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
4         output with LANG=C.
6 2021-06-28  ClĂ©ment Chigot  <clement.chigot@atos.net>
8         * xcoff.c (SSUBTYP_DWRNGES): New define.
9         (xcoff_add): Use correct XCOFF DWARF section subtype
10         for DEBUG_RANGES. Remove lineoff workaround.
11         Adjust base_address.
12         (xcoff_initialize_syminfo): Adapt to new base_address.
13         (xcoff_lookup_pc): Likewise.
14         (xcoff_initialize_fileline): Likewise.
16 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
18         PR bootstrap/99703
19         * configure: Regenerated.
21 2021-03-03  Ian Lance Taylor  <iant@golang.org>
23         * dwarf.c (read_line_program): Don't special case file 0.
24         (read_function_entry): Likewise.
26 2021-03-02  Ian Lance Taylor  <iant@golang.org>
28         PR libbacktrace/98818
29         * dwarf.c (dwarf_buf_error): Add errnum parameter.  Change all
30         callers.
31         * backtrace.h: Update backtrace_error_callback comment.
33 2021-02-12  Ian Lance Taylor  <iant@golang.org>
35         * configure.ac: Check for objcopy --add-gnu-debuglink by using
36         objcopy --help.
37         * configure: Regenerate
39 2021-01-18  Ian Lance Taylor  <iant@golang.org>
41         * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
42         * Makefile.in: Regenerate.
43         * configure: Regenerate.
45 2021-01-18  Ian Lance Taylor  <iant@golang.org>
47         PR debug/98716
48         * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
49         filenames.
50         (read_line_program): Remove parameter u, change caller.  Don't
51         subtract one from dirs and filenames index.
52         (read_function_entry): Don't subtract one from filenames index.
54 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56         * configure: Re-generate.
58 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
60         PR target/97865
61         * configure: Regenerate.
63 2020-12-02  Ian Lance Taylor  <iant@golang.org>
65         * dwarf.c (resolve_string): Use > rather than >= to check whether
66         string index extends past buffer.
67         (resolve_addr_index): Similarly for address index.
69 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
71         * configure: Regenerate.
73 2020-10-20  Ian Lance Taylor  <iant@golang.org>
75         * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
76         * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
78 2020-09-28  Ian Lance Taylor  <iant@golang.org>
80         PR libbacktrace/97082
81         * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
82         * Makefile.in: Regenerate.
84 2020-09-28  Ian Lance Taylor  <iant@golang.org>
86         PR libbacktrace/97227
87         * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
88         * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
89         * configure: Regenerate.
90         * Makefile.in: Regenerate.
92 2020-09-23  Ian Lance Taylor  <iant@golang.org>
94         * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
95         p->low.
96         (dwarf_lookup_pc): Likewise.
98 2020-09-17  Ian Lance Taylor  <iant@golang.org>
100         PR libbacktrace/97080
101         * fileline.c (backtrace_syminfo_to_full_callback): New function.
102         (backtrace_syminfo_to_full_error_callback): New function.
103         * elf.c (elf_nodebug): Call syminfo_fn if possible.
104         * internal.h (struct backtrace_call_full): Define.
105         (backtrace_syminfo_to_full_callback): Declare.
106         (backtrace_syminfo_to_full_error_callback): Declare.
107         * mtest.c (f3): Only check all[i] if data.index permits.
109 2020-09-16  Iain Sandoe  <iain@sandoe.co.uk>
111         * macho.c (MACH_O_CPU_TYPE_PPC): New.
112         (MACH_O_CPU_TYPE_PPC64): New.
113         Add compile-tests for powerpc to the Mach-O variants.
115 2020-09-14  Ian Lance Taylor  <iant@golang.org>
117         PR libbacktrace/93608
118         Add support for MiniDebugInfo.
119         * elf.c (struct elf_view): Define.  Replace most uses of
120         backtrace_view with elf_view.
121         (elf_get_view): New static functions.  Replace most calls of
122         backtrace_get_view with elf_get_view.
123         (elf_release_view): New static functions.  Replace most calls of
124         backtrace_release_view with elf_release_view.
125         (elf_uncompress_failed): Rename from elf_zlib_failed.  Change all
126         callers.
127         (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
128         (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
129         (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
130         (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
131         (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
132         (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
133         (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
134         (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
135         (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
136         (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
137         (LZMA_PROB_DIST_ALIGN_LEN): Define.
138         (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
139         (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
140         (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
141         (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
142         (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
143         (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
144         (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
145         (LZMA_PROB_REP_LEN_LOW_LEN): Define.
146         (LZMA_PROB_REP_LEN_MID_LEN): Define.
147         (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
148         (LZMA_PROB_LITERAL_LEN): Define.
149         (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
150         (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
151         (LZMA_PROB_IS_REP2_OFFSET): Define.
152         (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
153         (LZMA_PROB_DIST_SLOT_OFFSET): Define.
154         (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
155         (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
156         (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
157         (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
158         (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
159         (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
160         (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
161         (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
162         (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
163         (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
164         (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
165         (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
166         (LZMA_PROB_LITERAL_OFFSET): Define.
167         (LZMA_PROB_TOTAL_COUNT): Define.
168         (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
169         (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
170         (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
171         (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
172         (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
173         (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
174         (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
175         (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
176         (elf_lzma_varint): New static function.
177         (elf_lzma_range_normalize): New static function.
178         (elf_lzma_bit, elf_lzma_integer): New static functions.
179         (elf_lzma_reverse_integer): New static function.
180         (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
181         (elf_uncompress_lzma): New static function.
182         (backtrace_uncompress_lzma): New function.
183         (elf_add): Add memory and memory_size parameters.  Change all
184         callers.  Look for .gnu_debugdata section, and, if found,
185         decompress it and use it for symbols and debug info.  Permit the
186         descriptor parameter to be -1.
187         * internal.h (backtrace_uncompress_lzma): Declare.
188         * mtest.c: New file.
189         * xztest.c: New file.
190         * configure.ac: Check for nm, xz, and comm programs.  Check for
191         liblzma library.
192         (HAVE_MINIDEBUG): Define.
193         * Makefile.am (mtest_SOURCES): Define.
194         (mtest_CFLAGS, mtest_LDADD): Define.
195         (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
196         (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
197         (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
198         (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
199         (xztest_alloc_LDADD): Define.
200         (BUILDTESTS): Add mtest, xztest, xztest_alloc.
201         (CLEANFILES): Add files created by minidebug pattern.
202         (btest.lo): Correct INCDIR reference.
203         (mtest.lo, xztest.lo, ztest.lo): New targets.
204         * configure: Regenerate.
205         * config.h.in: Regenerate.
206         * Makefile.in: Regenerate.
208 2020-09-09  Ian Lance Taylor  <iant@golang.org>
210         * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
211         (coff_add): Determine and pass is_64.
213 2020-09-09  Ian Lance Taylor  <iant@golang.org>
215         PR libbacktrace/96973
216         * fileline.c (macho_get_executable_path): New static function.
217         (fileline_initialize): Call macho_get_executable_path.
219 2020-09-09  Ian Lance Taylor  <iant@golang.org>
221         * dwarf.c (function_addrs_search): Compare against the next entry
222         low address, not the high address.
223         (unit_addrs_search): Likewise.
224         (build_address_map): Add a trailing unit_addrs.
225         (read_function_entry): Add a trailing function_addrs.
226         (read_function_info): Likewise.
227         (report_inlined_functions): Search backward for function_addrs
228         match.
229         (dwarf_lookup_pc): Search backward for unit_addrs and
230         function_addrs matches.
232 2020-09-08  Ian Lance Taylor  <iant@golang.org>
234         * simple.c (simple_unwind): Correct comment spelling.
236 2020-09-08  Ian Lance Taylor  <iant@golang.org>
238         * macho.c (macho_add_dsym): Make space for '/' in dsym.  Use
239         correct length when freeing diralc.
241 2020-09-08  Ian Lance Taylor  <iant@golang.org>
243         PR libbacktrace/96973
244         * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
246 2020-09-08  Ian Lance Taylor  <iant@golang.org>
248         PR libbacktrace/96971
249         * filetype.awk: Only match magic number at start of line.
251 2020-08-24  Ian Lance Taylor  <iant@golang.org>
253         * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
254         (MACH_O_MH_CIGAM_FAT_64): Define.
255         (struct macho_fat_arch_64): Define.
256         (macho_add_fat): Add and use is_64 parameter.
257         (macho_add): Recognize 64-bit fat files.
259 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
261         PR bootstrap/96202
262         * configure: Regenerated.
264 2020-07-08  Ian Lance Taylor  <iant@golang.org>
266         * configure.ac: Test linker support for DWARF5
267         * configure: Regenerate
269 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
271         PR bootstrap/95413
272         * configure: Regenerated.
274 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
276         PR bootstrap/95147
277         * configure: Regenerated.
279 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
281         * configure: Regenerated.
283 2020-05-13  Ian Lance Taylor  <iant@golang.org>
285         * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
287 2020-05-13  Ian Lance Taylor  <iant@golang.org>
289         PR go/95061
290         * posix.c (backtrace_open): Treat EACCESS like ENOENT.
292 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
294         * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
295         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
296         AC_SUBST(CET_HOST_FLAGS).  Clear CET_HOST_FLAGS if jit isn't
297         enabled.
298         * Makefile.in: Regenerated.
299         * configure: Likewise.
301 2020-05-11  Ian Lance Taylor  <iant@golang.org>
303         PR libbacktrace/95012
304         * configure.ac: Check for getpagesize declaration.
305         * mmap.c: Declare getpagesize if necessary.
306         * mmapio.c: Likewise.
307         * configure: Regenerate.
308         * config.h.in: Regenerate.
309         * Makefile.in: Regenerate.
311 2020-05-09  Roland McGrath  <mcgrathr@google.com>
313         * elf.c (elf_add): Bail early if there are no section headers at all.
315 2020-05-09  Ian Lance Taylor  <iant@golang.org>
317         * elf.c (elf_add): Don't free strtab if an error occurs after
318         recording symbol information.
320 2020-05-09  Ian Lance Taylor  <iant@golang.org>
322         PR libbacktrace/88745
323         * macho.c: New file.
324         * filetype.awk: Recognize Mach-O files.
325         * Makefile.am (FORMAT_FILES): Add macho.c.
326         (check_DATA): New variable.  Set to .dSYM if HAVE_DSYMUTIL.
327         (%.dSYM): New pattern target.
328         (test_macho_SOURCES, test_macho_CFLAGS): New targets.
329         (test_macho_LDADD): New target.
330         (BUILDTESTS): Add test_macho.
331         (macho.lo): Add dependencies.
332         * configure.ac: Recognize macho file type.  Check for
333         mach-o/dyld.h.  Don't try to run objcopy if we don't find it.
334         Look for dsymutil and define a HAVE_DSYMUTIL conditional.
335         * Makefile.in: Regenerate.
336         * configure: Regenerate.
337         * config.h.in: Regenerate.
339 2020-05-09  Ian Lance Taylor  <iant@golang.org>
341         * read.c (backtrace_get_view): Support short read.
343 2020-05-09  Ian Lance Taylor  <iant@golang.org>
345         * elf.c (elf_add): If debug sections are very large or far apart,
346         read them individually rather than as a single view.
348 2020-05-08  Ian Lance Taylor  <iant@golang.org>
350         * fileline.c (sysctl_exec_name): New static function.
351         (sysctl_exec_name1): New macro or static function.
352         (sysctl_exec_name2): Likewise.
353         (fileline_initialize): Try sysctl_exec_name[12].
354         * configure.ac: Check for sysctl args to fetch executable name.
355         * configure: Regenerate.
356         * config.h.in: Regenerate.
358 2020-02-15  Ian Lance Taylor  <iant@golang.org>
360         * ztest.c (test_large): Update file to current libgo test file.
362 2020-02-03  Ian Lance Taylor  <iant@golang.org>
364         * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
365         (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
366         (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
367         (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
368         (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
369         (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
370         (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
371         (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
372         (stest_alloc_CFLAGS): Likewise.
373         * Makefile.in: Regenerate.
374         * ztest.c (error_callback_compress): Mark vdata unused.
375         (test_large): Add casts to avoid warnings.
377 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
379         Update copyright years.
381 2019-12-13  Ian Lance Taylor  <iant@golang.org>
383         Add DWARF 5 support.
384         * dwarf.c (struct attr): Add val field.
385         (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
386         ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
387         (struct line_header): Add addrsize field.
388         (struct line_header_format): Define.
389         (struct unit): Add str_offsets_base, addr_base, and rnglists_base
390         fields.
391         (read_uint24): New static function.
392         (read_attribute): Add implicit_val parameter.  Replace dwarf_str
393         and dwarf_str_size parameters with dwarf_sections parameter.  Add
394         support for new DWARF 5 forms.  Change all callers.
395         (resolve_string): New static function.
396         (resolve_addr_index): Likewise.
397         (read_abbrevs): Support DW_FORM_implicit_const.
398         (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
399         and ranges_is_index fields.
400         (update_pcrange): Support DWARF 5 encodings.
401         (add_high_low_range): New static function, split out of
402         add_ranges.
403         (add_ranges_from_ranges): Likewise.
404         (add_ranges_from_rnglists): New static function.
405         (add_ranges): Just call new helper functions.
406         (find_address_ranges): Use resolve_string for strings, after
407         reading all attributes.  Handle new DWARF 5 attributes.
408         (build_address_map): Support DWARF 5 compilation units.
409         (read_v2_paths): New static function, split out of
410         read_line_header.
411         (read_lnct): New static function.
412         (read_line_header_format_entries): Likewise.
413         (read_line_header): Add ddata parameter.  Support DWARF 5 line
414         headers.  Call new helper functions.  Change all callers.
415         (read_line_program): Use addrsize from line program header.  Don't
416         special case directory index 0 for DWARF 5.
417         (read_referenced_name): Use resolve_string.
418         (read_function_entry): Handle DWARF 5 encodings.  Use
419         resolve_string.
420         * internal.h (enum dwarf_section): Add DEBUG_ADDR,
421         DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
422         * elf.c (dwarf_section_names): Add new section names.
423         * pecoff.c (dwarf_section_names): Likewise.
424         * xcoff.c (xcoff_add): Clear dwarf_sections before setting
425         fields.
426         * configure.ac: Define HAVE_DWARF5 automake conditional.
427         * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
428         (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
429         (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
430         (dwarf5_alloc_LDADD): Likewise.
431         (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
432         (CLEANFILES, clean-local): Define.
434 2019-12-08  Ian Lance Taylor  <iant@golang.org>
436         * dwarf.c (struct pcrange): Define.
437         (update_pcrange, add_ranges): New static functions.
438         (add_unit_addr): Change signature to work with add_ranges.  Don't
439         add base_address here.
440         (add_unit_ranges): Remove.
441         (find_address_ranges): Replace str/ranges parameters with
442         dwarf_sections.  Use update_pcrange and add_ranges.  Change all
443         callers.
444         (add_function_range): Change signature to work with add_ranges.
445         Don't add base_address here.
446         (add_function_ranges): Remove.
447         (read_function_entry): Use update_pcrange and add_ranges.
449 2019-12-04  Ian Lance Taylor  <iant@golang.org>
451         * edtest.c (test1): Add noclone attribute.
453 2019-12-04  Ian Lance Taylor  <iant@golang.org>
455         * internal.h (enum dwarf_section): Define.
456         (struct dwarf_sections): Define.
457         (backtrace_dwarf_add): Update declaration to replace specific
458         section parameters with dwarf_sections parameter.
459         * dwarf.c (struct dwarf_data): Replace specific section fields
460         with dwarf_sections field.
461         (read_attribute): Use dwarf_sections with altlink.
462         (build_address_map): Replace specific section parameters with
463         dwarf_sections parameter.  Change all callers.
464         (read_line_info): Use dwarf_sections with ddata.
465         (read_referenced_name): Likewise.
466         (add_function_ranges): Likewise.
467         (read_function_entry): Likewise.
468         (read_function_info): Likewise.
469         (build_dwarf_data): Replace specific section parameters with
470         dwarf_sections parameter.  Change all callers.
471         (backtrace_dwarf_add): Likewise.
472         * elf.c (enum debug_section): Remove.
473         (dwarf_section_names): Remove .zdebug names.
474         (elf_add): Track zsections separately.  Build dwarf_sections.
475         * pecoff.c (enum debug_section): Remove.
476         (struct debug_section_info): Remove data field.
477         (coff_add): Build dwarf_sections.
478         * xcoff.c (enum dwarf_section): Remove.  Replace DWSECT_xxx
479         references with DEBUG_xxx references.
480         (xcoff_add): Build dwarf_sections.
482 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
484         * configure: Regenerate.
486 2019-09-26  Ian Lance Taylor  <iant@golang.org>
488         PR libbacktrace/91908
489         * pecoff.c (backtrace_initialize): Explicitly cast unchecked
490         __sync_bool_compare_and_swap to void.
491         * xcoff.c (backtrace_initialize): Likewise.
493 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
495         * configure.ac: Remove references to spu.
496         * configure: Regenerate.
498 2019-05-24  Clement Chigot  <clement.chigot@atos.net>
500         * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
501         test_elf_64.
502         * Makefile.in: Regenerate.
504 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
506         * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
507         handling.
508         * configure: Regenerate.
510 2019-03-11  Ian Lance Taylor  <iant@golang.org>
512         PR libbacktrace/89669
513         * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
514         HAVE_ELF.
515         * Makefile.in: Regenerate.
517 2019-02-26  Tom de Vries  <tdevries@suse.de>
519         * btest.c (test5): Allow global.* as minimal symbol name for global.
521 2019-02-26  Tom de Vries  <tdevries@suse.de>
523         * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
524         * Makefile.in: Regenerate.
526 2019-02-12  Tom de Vries  <tdevries@suse.de>
528         PR libbacktrace/81983
529         * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
531 2019-02-10  Tom de Vries  <tdevries@suse.de>
533         * Makefile.am (BUILDTESTS): Add btest_lto.
534         * Makefile.in: Regenerate.
535         * btest.c (test1, f2, f3, test3, f22, f23): Declare with
536         __attribute__((noclone)).
538 2019-02-08  Tom de Vries  <tdevries@suse.de>
540         * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
541         * print.c (backtrace_print): Same.
542         * simple.c (backtrace_simple): Same.
544 2019-02-08  Tom de Vries  <tdevries@suse.de>
546         PR libbacktrace/78063
547         * dwarf.c (build_address_map): Keep all parsed units.
548         (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
550 2019-01-31  Tom de Vries  <tdevries@suse.de>
552         PR libbacktrace/89136
553         * elf.c (elf_add): Read build-id if with_buildid_data.  Fix
554         'debugaltlink_name_len =+ 1'.
556 2019-01-29  Tom de Vries  <tdevries@suse.de>
558         * install-debuginfo-for-buildid.sh.in: New script.
559         * Makefile.am (check_PROGRAMS): Add b2test and b3test.
560         (TESTS): Add b2test_buildid and b3test_dwz_buildid.
561         * Makefile.in: Regenerate.
562         * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
563         (READELF): Set with AC_CHECK_PROG.
564         (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
565         * configure: Regenerate.
566         * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
567         (elf_open_debugfile_by_buildid): ... here.
569 2019-01-29  Tom de Vries  <tdevries@suse.de>
571         * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
572         allocfail.
573         (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
574         (check_PROGRAMS): Add BUILDTESTS.
575         * Makefile.in: Regenerate.
577 2019-01-28  Tom de Vries  <tdevries@suse.de>
579         * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
580         Use $< to access prerequisite.
581         * Makefile.in: Regenerate.
583 2019-01-25  Nathan Sidwell  <nathan@acm.org>
585         * elf.c (elf_add): Pass "" filename to recursive call with
586         separated debug.
588 2019-01-25  Tom de Vries  <tdevries@suse.de>
590         * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
591         filename == "".
592         * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
593         * Makefile.in: Regenerate.
595 2019-01-25  Tom de Vries  <tdevries@suse.de>
597         * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
598         (TESTS): Rename dtest to btest_gnudebuglink.
599         * Makefile.in: Regenerate.
601 2019-01-23  Tom de Vries  <tdevries@suse.de>
603         * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
604         (units_search, find_unit): Use size_t for offset.
605         (build_address_map): Use size_t for unit_offset.
607 2019-01-20  Gerald Pfeifer  <gerald@pfeifer.com>
609         * allocfail.c (main): Increase portability of printf statement.
611 2019-01-18  Ian Lance Taylor  <iant@golang.org>
613         PR libbacktrace/88890
614         * mmapio.c (backtrace_get_view): Change size parameter to
615         uint64_t.  Check that value fits in size_t.
616         * read.c (backtrace_get_view): Likewise.
617         * internal.h (backtrace_get_view): Update declaration.
618         * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
620 2019-01-17  Tom de Vries  <tdevries@suse.de>
622         PR libbacktrace/82857
623         * configure.ac (DWZ): Set with AC_CHECK_PROG.
624         (HAVE_DWZ): Set with AM_CONDITIONAL.
625         * configure: Regenerate.
626         * Makefile.am (TESTS): Add btest_dwz.
627         * Makefile.in: Regenerate.
629 2019-01-17  Tom de Vries  <tdevries@suse.de>
631         PR libbacktrace/82857
632         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
633         (read_attribute): Handle DW_FORM_GNU_ref_alt using
634         ATTR_VAL_REF_ALT_INFO.
635         (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
637 2019-01-17  Tom de Vries  <tdevries@suse.de>
639         * dwarf.c (struct unit): Add low_offset and high_offset fields.
640         (struct unit_vector): New type.
641         (struct dwarf_data): Add units and units_counts fields.
642         (find_unit): New function.
643         (find_address_ranges): Add and handle unit_tag parameter.
644         (build_address_map): Add and handle units_vec parameter.
645         (build_dwarf_data): Pass units_vec to build_address_map.  Store resulting
646         units vector.
648 2019-01-17  Tom de Vries  <tdevries@suse.de>
650         PR libbacktrace/82857
651         * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
652         using altlink.
654 2019-01-17  Tom de Vries  <tdevries@suse.de>
656         * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
657         (read_attribute): Add altlink parameter.  Handle missing altlink for
658         DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
659         (find_address_ranges, build_address_map, build_dwarf_data): Add and
660         handle altlink parameter.
661         (read_referenced_name, read_function_entry): Add argument to
662         read_attribute call.
664 2019-01-17  Tom de Vries  <tdevries@suse.de>
666         * dwarf.c (struct dwarf_data): Add altlink field.
667         (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
668         * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
669         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
670         * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
671         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
672         * xcoff.c (xcoff_add): Same.
674 2019-01-17  Tom de Vries  <tdevries@suse.de>
676         * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
677         * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
678         * elf.c (elf_add): Add and handle fileline_entry parameter.  Add
679         argument to backtrace_dwarf_add call.
680         (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
681         * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
682         * xcoff.c (xcoff_add): Same.
684 2019-01-17  Tom de Vries  <tdevries@suse.de>
686         * elf.c (elf_add): Add and handle with_buildid_data and
687         with_buildid_size parameters.  Handle .gnu_debugaltlink section.
688         (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
690 2019-01-16  Tom de Vries  <tdevries@suse.de>
692         * dwarf.c (read_referenced_name_from_attr): New function.  Factor out
693         of ...
694         (read_referenced_name): ... here, and ...
695         (read_function_entry): ... here.
697 2019-01-16  Tom de Vries  <tdevries@suse.de>
699         * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
700         name.
701         (read_function_entry): Same.  Don't allow name found via
702         DW_AT_abstract_origin or case DW_AT_specification to override linkage
703         name.
705 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
707         PR other/16615
709         * backtrace.h: Mechanically replace "can not" with "cannot".
711 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
713         Update copyright years.
715 2018-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
717         * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
718         in sed pattern.
719         * Makefile.in: Regenerate.
721 2018-12-28  Tom de Vries  <tdevries@suse.de>
723         * dwarf.c (build_address_map): Reuse unused units.
725 2018-12-28  Tom de Vries  <tdevries@suse.de>
727         * dwarf.c (build_address_map): Simplify by removing local variable
728         abbrevs.
730 2018-12-28  Ian Lance Taylor  <iant@golang.org>
731             Tom de Vries  <tdevries@suse.de>
733         PR libbacktrace/88063
734         * dwarf.c (free_unit_addrs_vector): Remove.
735         (build_address_map): Keep track of allocated units in vector.  Free
736         allocated units and corresponding abbrevs upon failure.  Remove now
737         redundant call to free_unit_addrs_vector.  Free addrs vector upon
738         failure.  Free allocated unit vector.
740 2018-12-28  Tom de Vries  <tdevries@suse.de>
742         * dwarf.c (build_address_map): Free addrs vector upon failure.
744 2018-12-14  Tom de Vries  <tdevries@suse.de>
746         PR testsuite/88491
747         * allocfail.sh: Remove "set -o pipefail".
749 2018-12-12  Tom de Vries  <tdevries@suse.de>
751         * Makefile.am (TESTS): Add allocfail.sh.
752         (check_PROGRAMS): Add allocfail.
753         * Makefile.in: Regenerate.
754         * instrumented_alloc.c: New file.  Redefine malloc and realloc.
755         Include alloc.c.
756         * allocfail.c: New file.
757         * allocfail.sh: New file.
759 2018-11-30  Tom de Vries  <tdevries@suse.de>
761         * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
762         test_xcoff_64, test_pecoff and test_unknown.
763         * Makefile.in: Regenerate.
764         * test_format.c: New file.
766 2018-11-30  Tom de Vries  <tdevries@suse.de>
768         * Makefile.am : Add _with_alloc version for each test in
769         check_PROGRAMS.
770         * Makefile.in: Regenerate.
772 2018-11-30  Tom de Vries  <tdevries@suse.de>
774         * internal.h (backtrace_vector_free): New static inline fuction,
775         factored out of ...
776         * dwarf.c (read_line_info): ... here.
778 2018-11-28  Tom de Vries  <tdevries@suse.de>
780         * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
781         failure.
783 2018-11-27  Tom de Vries  <tdevries@suse.de>
785         * mmap.c (backtrace_vector_release): Same.
786         * unittest.c (test1): Add check.
788 2018-11-27  Tom de Vries  <tdevries@suse.de>
790         * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
791         instead of realloc.
792         * Makefile.am (check_PROGRAMS): Add unittest.
793         * Makefile.in: Regenerate.
794         * unittest.c: New file.
796 2018-11-22  Tom de Vries  <tdevries@suse.de>
798         * dwarf.c (read_initial_length): Factor out of ...
799         (build_address_map, read_line_info): ... here.
801 2018-11-21  Tom de Vries  <tdevries@suse.de>
803         * dwarf.c (read_string): Factor out of ...
804         (read_attribute, read_line_header, read_line_program): ... here.
806 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
808         PR bootstrap/82856
809         * Makefile.am: Include multilib.am.
810         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
811         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
813 2018-10-05  Ian Lance Taylor  <iant@golang.org>
815         PR libbacktrace/87529
816         * backtrace.h: Document that backtrace_create_state should be
817         called only once.
819 2018-08-05 Iain Buclaw  <ibuclaw@gdcproject.org>
821         * configure.ac: Move define of HAVE_ZLIB into check for -lz.
822         * Makefile.in: Regenerate.
823         * config.h.in: Likewise.
824         * configure: Likewise.
826 2018-08-01  Tony Reix  <tony.reix@atos.net>
828         * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
829         (struct xcoff_func, struct xcoff_func_vector): New structs.
830         (xcoff_syminfo): Drop leading dot from symbol name.
831         (xcoff_line_compare, xcoff_line_search): Remove.
832         (xcoff_func_compare, xcoff_func_search): New static functions.
833         (xcoff_lookup_pc): Search function table.
834         (xcoff_add_line, xcoff_process_linenos): Remove.
835         (xcoff_initialize_fileline): Build function table.
837 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
839         PR other/86198
840         * elf.c (elf_add): Increase ".note.gnu.build-id" section size
841         checking up to 36 bytes.
843 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
845         * configure: Regenerated.
847 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
849         * configure: Regenerated.
851 2018-04-17  Ian Lance Taylor  <iant@golang.org>
853         * backtrace.c: Revert last two changes.  Don't call mmap
854         directly.
856 2018-04-17  Ian Lance Taylor  <iant@golang.org>
858         * backtrace.c: Include backtrace-supported.h before checking
859         BACKTRACE_USES_MALLOC.
861 2018-04-17  Ian Lance Taylor  <iant@golang.org>
863         * backtrace.c (backtrace_full): When testing whether we can
864         allocate memory, call mmap directly, and munmap the memory.
866 2018-04-04  Jakub Jelinek  <jakub@redhat.com>
868         PR other/85161
869         * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
870         big endian, only use 32-bit loads if endianity macros are predefined
871         and indicate big or little endian.
873 2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
875         PR target/84148
876         * configure: Regenerate.
878 2018-02-15  Jakub Jelinek  <jakub@redhat.com>
880         PR other/82368
881         * elf.c (SHT_PROGBITS): Undefine and define.
883 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
885         PR other/82368
886         * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
887         (struct elf_ppc64_opd_data): New type.
888         (elf_initialize_syminfo): Add opd argument, handle symbols
889         pointing into the PowerPC64 ELFv1 .opd section.
890         (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
891         to structure with .opd data to elf_initialize_syminfo.
893 2018-01-31  Ian Lance Taylor  <iant@golang.org>
895         * elf.c (elf_add): Close descriptor if we use a debugfile.
896         * btest.c (check_open_files): New static function.
897         (main): Call check_open_files.
899 2018-01-25  Ian Lance Taylor  <iant@golang.org>
901         * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
902         desired CRC is zero.
903         (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
905 2018-01-25  Ian Lance Taylor  <iant@golang.org>
907         * pecoff.c (coff_add): Only release syms_view if it is valid.
909 2018-01-25  Ian Lance Taylor  <iant@golang.org>
911         * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
913 2018-01-24  Ian Lance Taylor  <iant@golang.org>
915         * pecoff.c (coff_add): Use coff_read4, not memcpy.
917 2018-01-24  Ian Lance Taylor  <iant@golang.org>
919         PR other/68239
920         * mmap.c (backtrace_free_locked): Don't put more than 16 entries
921         on the free list.
923 2018-01-19  Tony Reix  <tony.reix@atos.net>
925         * xcoff.c (xcoff_incl_compare): New function.
926         (xcoff_incl_search): New function.
927         (xcoff_process_linenos): Use bsearch to find include file.
928         (xcoff_initialize_fileline): Sort include file information.
930 2018-01-16  Ian Lance Taylor  <iant@golang.org>
932         * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
933         288.
934         (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
935         elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
936         (elf_zlib_default_table): Update.
937         (elf_zlib_default_dist_table): New static array.
938         (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
939         for block type 1.
940         * ztest.c (struct zlib_test): Add uncompressed_len.
941         (tests): Initialize uncompressed_len field.  Add new test case.
942         (test_samples): Use uncompressed_len field.
944 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
946         Update copyright years.
948 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
950         * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
951         * aclocal.m4: Regenerate.
952         * Makefile.in: Likewise.
953         * configure: Likewise.
955 2017-10-06  Ian Lance Taylor  <iant@golang.org>
957         * ztest.c (test_large): Pass unsigned long *, not size_t *, to
958         zlib uncompress function.
960 2017-10-05  Ian Lance Taylor  <iant@golang.org>
962         * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
963         Read a four byte integer.
964         (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
965         boundary before ever calling elf_zlib_fetch.
966         * ztest.c (test_large): Simplify print statements a bit.
968 2017-10-02  Ian Lance Taylor  <iant@golang.org>
970         * ztest.c: #include <errno.h>.
971         (TEST_TIMING): Don't define, don't test.
972         (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
973         (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
974         (ZLIB_CLOCK_GETTIME_ARG): Define.
975         * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
976         * Makefile.am: Likewise.
977         * configure, Makefile.in: Rebuild.
979 2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
981         PR other/67165
982         * Makefile.am: Append the content of clock_gettime_link to
983         ztest_LDADD.
984         * configure.ac: Test for the case that clock_gettime is in librt.
985         * Makefile.in: Regenerate.
986         * configure: Likewise.
988         PR other/67165
989         * configure.ac: Check for clock_gettime.
990         * config.h.in: Regenerate.
991         * configure: Likewise.
992         * ztest.c (average_time, test_large): Conditionalize test timing
993         on clock_gettime availability.
995 2017-09-29  Tony Reix  <tony.reix@atos.net>
997         * xcoff.c: Initial support for DWARF debug sections in XCOFF.
998         (STYP_DWARF, SSUBTYP_DW*): Define.
999         (enum dwarf_section): Define.
1000         (struct dwsect_info): Define.
1001         (xcoff_add): Look for DWARF sections, pass them to
1002         backtrace_dwarf_add.
1004 2017-09-28  Ian Lance Taylor  <iant@golang.org>
1006         PR other/67165
1007         * elf.c (__builtin_prefetch): Define if not __GNUC__.
1008         (unlikely): Define.
1009         (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1010         (b_elf_chdr): Define type.
1011         (enum debug_section): Add ZDEBUG_xxx values.
1012         (debug_section_names): Add names for new sections.
1013         (struct debug_section_info): Add compressed field.
1014         (elf_zlib_failed, elf_zlib_fetch): New static functions.
1015         (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1016         (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1017         (HUFFMAN_SECONDARY_SHIFT): Define.
1018         (ZDEBUG_TABLE_SIZE): Define.
1019         (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1020         (final_next_secondary): New static variable if
1021         BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1022         (elf_zlib_inflate_table): New static function.
1023         (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1024         function to produce fixed Huffman table.
1025         (elf_zlib_default_table): New static variable.
1026         (elf_zlib_inflate): New static function.
1027         (elf_zlib_verify_checksum): Likewise.
1028         (elf_zlib_inflate_and_verify): Likewise.
1029         (elf_uncompress_zdebug): Likewise.
1030         (elf_uncompress_chdr): Likewise.
1031         (backtrace_uncompress_zdebug): New extern function.
1032         (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1033         sections, and uncompress them.
1034         * internal.h (backtrace_compress_zdebug): Declare.
1035         * ztest.c: New file.
1036         * configure.ac: Check for -lz and check whether the linker
1037         supports --compress-debug-sections.
1038         * Makefile.am (ztest_SOURCES): New variable.
1039         (ztest_CFLAGS, ztest_LDADD): New variables.
1040         (check_PROGRAMS): Add ztest.
1041         (ctestg_SOURCES): New variable.
1042         (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1043         (ctesta_SOURCES): New variable.
1044         (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1045         (check_PROGRAMS): Add ctestg and ctesta.
1046         * configure, config.h.in, Makefile.in: Rebuild.
1048 2017-09-22  Ian Lance Taylor  <iant@golang.org>
1050         PR sanitizer/77631
1051         * configure.ac: Check for lstat and readlink.
1052         * elf.c (lstat, readlink): Provide dummy versions if real versions
1053         are not available.
1054         * configure, config.h.in: Rebuild.
1056 2017-09-21  Ian Lance Taylor  <iant@google.com>
1058         PR go/82284
1059         * elf.c (backtrace_initialize): Set pd.exe_filename.
1061 2017-09-20  Ian Lance Taylor  <iant@golang.org>
1062             Denis Khalikov  <d.khalikov@partner.samsung.com>
1064         PR sanitizer/77631
1065         Support for external debug info.
1066         * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1067         (S_ISLNK): Define if not defined.
1068         (xstrnlen): Define if strnlen is not available.
1069         (b_elf_note): Define type.
1070         (NT_GNU_BUILD_ID): Define macro.
1071         (elf_crc32, elf_crc32_file): New static functions.
1072         (elf_is_symlink, elf_readlink): New static functions.
1073         (elf_open_debugfile_by_buildid): New static function.
1074         (elf_try_debugfile): New static function.
1075         (elf_find_debugfile_by_debuglink): New static function.
1076         (elf_open_debugfile_by_debuglink): New static function.
1077         (elf_add): Add filename and debuginfo parameters.  Adjust all
1078         callers.  Look for external debug info notes, and try to fetch
1079         debug info from external file.
1080         (struct phdr_data): Add exe_filename field.
1081         (phdr_callback): Pass filename to elf_add.
1082         (backtrace_initialize): Add filename parameter.
1083         * internal.h (backtrace_initialize): Add filename parameter.
1084         * fileline.c (fileline_initialize): Pass filename to
1085         backtrace_initialize.
1086         * pecoff.c (fileline_initialize): Add unused filename parameter.
1087         * unknown.c (fileline_initialize): Likewise.
1088         * xcoff.c (fileline_initialize): Likewise.
1089         * configure.ac: Check for objcopy --add-gnu-debuglink.
1090         * Makefile.am (dtest): New test target.
1091         * configure, Makefile.in: Rebuild.
1093 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
1095         PR other/81096
1096         * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1097         * Makefile.in: Regenerate.
1099 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
1101         PR other/81096
1102         * libbacktrace/Makefile.in
1103         (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1105 2017-08-02  David Edelsohn  <dje.gcc@gmail.com>
1107         PR bootstrap/81638
1108         * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1110 2017-07-28  Tony Reix  <tony.reix@atos.net>
1112         * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1114 2017-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1116         * fileline.c (fileline_initialize): Print pid_t as long.
1118 2017-07-26  Tony Reix  <tony.reix@atos.net>
1120         * configure.ac: Check for XCOFF32/XCOFF64.  Check for loadquery.
1121         * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1122         * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1123         * configure, config.h.in: Regenerate.
1125 2017-07-21  Tony Reix  <tony.reix@atos.net>
1127         * filetype.awk: Add AIX XCOFF type detection.
1128         * configure.ac: Recognize xcoff format.
1129         * Makefile.am (FORMAT_FILES): Add xcoff.c.
1130         * fileline.c: Include <unistd.h>.
1131         (fileline_initialize): Add case for AIX procfs.
1132         * xcoff.c: New file.
1133         * configure, Makefile.in: Rebuild.
1135 2017-06-21  Richard Biener  <rguenther@suse.de>
1137         * configure.ac: Add AC_SYS_LARGEFILE.
1138         * config.h.in: Regenerate.
1139         * configure: Likewise.
1141 2017-06-11  Ian Lance Taylor  <iant@golang.org>
1143         * elf.c (backtrace_initialize): Always set *fileline_fn.
1144         * ttest.c: New file.
1145         * btest.c: Move support functions into testlib.c.  Change calls to
1146         check to pass file name.
1147         * testlib.c: New file, copied from (part of) btest.c.
1148         * testlib.h: New file, declarations for testlib.c.
1149         * edtest.c: Use testlib.h and testlib.c.
1150         * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1151         * Makefile.am (btest_SOURCES): Add testlib.c.
1152         (edtest_SOURCES): Likewise.
1153         (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1154         (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1155         * configure, Makefile.in: Rebuild.
1157 2017-05-19  Than McIntosh  <thanm@google.com>
1159         * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1160         (read_line_header): Don't allocate dirs if dirs_count == 0.
1161         * edtest.c: New file.
1162         * edtest2.c: New file.
1163         * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1164         (check_PROGRAMS): Add edtest.
1165         (edtest2_build.c, gen_edtest2_build): New targets.
1166         * Makefile.in: Rebuild.
1168 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
1170         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1171         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1173 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1175         Update copyright years.
1177 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1179         * configure: Regenerate.
1181 2016-09-11  Carlos Liam  <carlos@aarzee.me>
1183         * all: Remove meaningless trailing whitespace.
1185 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
1187         PR target/71161
1188         * elf.c (phdr_callback) [__i386__]: Add
1189         __attribute__((__force_align_arg_pointer__)).
1191 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1193         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1194         avoid possible crash.
1195         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1196         missing debug info anymore.
1198 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
1200         * mmap.c (MAP_FAILED): Define if not defined.
1202 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
1204         Update copyright years.
1206 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
1208         * configure.ac: Specify that DJGPP do not have mmap
1209         even when sys/mman.h exists.
1210         * configure: Regenerate
1212 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
1214         PR libgfortran/68115
1215         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1216         * configure: Regenerate.
1217         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1218         to void.
1220 2015-09-17  Ian Lance Taylor  <iant@google.com>
1222         * posix.c (backtrace_open): Cast second argument of open() to int.
1224 2015-09-11  Ian Lance Taylor  <iant@google.com>
1226         * Makefile.am (backtrace.lo): Depend on internal.h.
1227         (sort.lo, stest.lo): Add explicit dependencies.
1228         * Makefile.in: Rebuild.
1230 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
1232         * backtrace.c: #include <sys/types.h>.
1234 2015-09-08  Ian Lance Taylor  <iant@google.com>
1236         PR other/67457
1237         * backtrace.c: #include "internal.h".
1238         (struct backtrace_data): Add can_alloc field.
1239         (unwind): If can_alloc is false, don't try to get file/line
1240         information.
1241         (backtrace_full): Set can_alloc field in bdata.
1242         * alloc.c (backtrace_alloc): Don't call error_callback if it is
1243         NULL.
1244         * mmap.c (backtrace_alloc): Likewise.
1245         * internal.h: Update comments for backtrace_alloc and
1246         backtrace_free.
1248 2015-09-08  Ian Lance Taylor  <iant@google.com>
1250         PR other/67457
1251         * mmap.c (backtrace_alloc): Correct test for mmap failure.
1253 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1255         * configure.ac: For spu-*-* targets, set have_fcntl to no.
1256         * configure: Regenerate.
1258 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1260         * configure.ac: Remove [disable-shared] argument to LT_INIT.
1261         Remove setting PIC_FLAG when building as target library.
1262         * configure: Regenerate.
1264 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
1266         * configure.ac: Only compile with -fPIC if the target
1267         supports it.
1268         * configure: Regenerate.
1270 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1272         * configure.ac: Set have_mmap to no on spu-*-* targets.
1273         * configure: Regenerate.
1275 2015-08-13  Ian Lance Taylor  <iant@google.com>
1277         * dwarf.c (read_function_entry): Add vec_inlined parameter.
1278         Change all callers.
1280 2015-06-11  Martin Sebor  <msebor@redhat.com>
1282         PR sanitizer/65479
1283         * dwarf.c (struct line): Add new field idx.
1284         (line_compare): Use it.
1285         (add_line): Set it.
1286         (read_line_info): Reset it.
1288 2015-05-29  Tristan Gingold  <gingold@adacore.com>
1290         * pecoff.c: New file.
1291         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1292         * Makefile.in: Regenerate.
1293         * filetype.awk: Detect pecoff.
1294         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1295         Add pecoff.
1296         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1297         true.
1298         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1299         * configure: Regenerate.
1300         * pecoff.c: New file.
1302 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1304         * Makefile.in: Regenerated with automake-1.11.6.
1305         * aclocal.m4: Likewise.
1306         * configure: Likewise.
1308 2015-01-24  Matthias Klose  <doko@ubuntu.com>
1310         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1311         * configure: Regenerate.
1313 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1315         Update copyright years.
1317 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1319         PR bootstrap/63784
1320         * configure: Regenerated.
1322 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
1324         * ChangeLog.jit: New.
1326 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1328         PR target/63610
1329         * configure: Regenerate.
1331 2014-10-23  Ian Lance Taylor  <iant@google.com>
1333         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1334         Fix to return void *.
1336 2014-05-08  Ian Lance Taylor  <iant@google.com>
1338         * mmap.c (backtrace_free): If freeing a large aligned block of
1339         memory, call munmap rather than holding onto it.
1340         (backtrace_vector_grow): When growing a vector, double the number
1341         of pages requested.  When releasing the old version of a grown
1342         vector, pass the correct size to backtrace_free.
1344 2014-03-07  Ian Lance Taylor  <iant@google.com>
1346         * sort.c (backtrace_qsort): Use middle element as pivot.
1348 2014-03-06  Ian Lance Taylor  <iant@google.com>
1350         * sort.c: New file.
1351         * stest.c: New file.
1352         * internal.h (backtrace_qsort): Declare.
1353         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1354         (read_line_info, read_function_entry): Likewise.
1355         (read_function_info, build_dwarf_data): Likewise.
1356         * elf.c (elf_initialize_syminfo): Likewise.
1357         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1358         (stest_SOURCES, stest_LDADD): Define.
1359         (check_PROGRAMS): Add stest.
1361 2014-02-07  Misty De Meo  <misty@brew.sh>
1363         PR target/58710
1364         * configure.ac: Use AC_LINK_IFELSE in check for
1365         _Unwind_GetIPInfo.
1366         * configure: Regenerate.
1368 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1370         Update copyright years
1372 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
1374         * elf.c (ET_DYN): Undefine and define again.
1375         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1376         return early -1 without closing the descriptor.
1377         (struct phdr_data): Add exe_descriptor.
1378         (phdr_callback): If pd->exe_descriptor is not -1, for very first
1379         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1380         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
1381         call to elf_add.
1382         (backtrace_initialize): Adjust call to elf_add.  If it returns
1383         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1385 2013-12-05  Ian Lance Taylor  <iant@google.com>
1387         * alloc.c (backtrace_vector_finish): Add error_callback and data
1388         parameters.  Call backtrace_vector_release.  Return address base.
1389         * mmap.c (backtrace_vector_finish): Add error_callback and data
1390         parameters.  Return address base.
1391         * dwarf.c (read_function_info): Get new address base from
1392         backtrace_vector_finish.
1393         * internal.h (backtrace_vector_finish): Update declaration.
1395 2013-11-27  Ian Lance Taylor  <iant@google.com>
1397         * dwarf.c (find_address_ranges): New static function, broken out
1398         of build_address_map.
1399         (build_address_map): Call it.
1400         * btest.c (check): Check for missing filename or function, rather
1401         than crashing.
1402         (f3): Check that enough frames were returned.
1404 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
1406         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1407         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1408         last argument.
1409         * btest.c (struct symdata): Add size field.
1410         (callback_three): Add symsize argument.  Copy it to the data->size
1411         field.
1412         (f23): Set symdata.size to 0.
1413         (test5): Likewise.  If sizeof (int) > 1, lookup address of
1414         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
1415         values.
1417         * atomic.c: Include sys/types.h.
1419 2013-11-18  Ian Lance Taylor  <iant@google.com>
1421         * configure.ac: Check for support of __atomic extensions.
1422         * internal.h: Declare or #define atomic functions for use in
1423         backtrace code.
1424         * atomic.c: New file.
1425         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1426         (dwarf_fileline, backtrace_dwarf_add): Likewise.
1427         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1428         (backtrace_initialize): Likewise.
1429         * fileline.c (fileline_initialize): Likewise.
1430         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1431         * configure, config.h.in, Makefile.in: Rebuild.
1433 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
1435         * elf.c (SHN_UNDEF): Define.
1436         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
1437         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
1438         (elf_add): Adjust caller.
1440         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1442 2013-11-16  Ian Lance Taylor  <iant@google.com>
1444         * backtrace.h (backtrace_create_state): Correct comment about
1445         threading.
1447 2013-11-15  Ian Lance Taylor  <iant@google.com>
1449         * backtrace.h (backtrace_syminfo): Update comment and parameter
1450         name to take any address, not just a PC value.
1451         * elf.c (STT_OBJECT): Define.
1452         (elf_nosyms): Rename parameter pc to addr.
1453         (elf_symbol_search): Rename local variable pc to addr.
1454         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1455         (elf_syminfo): Rename parameter pc to addr.
1456         * btest.c (global): New global variable.
1457         (test5): New test.
1458         (main): Call test5.
1460 2013-10-17  Ian Lance Taylor  <iant@google.com>
1462         * elf.c (elf_add): Don't get the wrong offsets if a debug section
1463         is missing.
1465 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
1467         * configure.ac: Add --enable-host-shared, setting up
1468         pre-existing PIC_FLAG variable within Makefile.am et al.
1469         * configure: Regenerate.
1471 2013-09-20  Alan Modra  <amodra@gmail.com>
1473         * configure: Regenerate.
1475 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
1477         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1479 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
1481         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1482         dl_iterate_phdr callbacks.
1484 2013-03-25  Ian Lance Taylor  <iant@google.com>
1486         * alloc.c: #include <sys/types.h>.
1487         * mmap.c: Likewise.
1489 2013-01-31  Ian Lance Taylor  <iant@google.com>
1491         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1492         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1494 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
1496         PR other/56076
1497         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1498         attribute was not seen.
1500 2013-01-16  Ian Lance Taylor  <iant@google.com>
1502         * dwarf.c (struct unit): Add filename and abs_filename fields.
1503         (build_address_map): Set new fields when reading unit.
1504         (dwarf_lookup_pc): If we don't find an entry in the line table,
1505         just return the main file name.
1507 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1509         Update copyright years.
1511 2013-01-01  Ian Lance Taylor  <iant@google.com>
1513         PR bootstrap/54834
1514         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1515         $(MULTIBUILDTOP)/../../gcc/include.
1516         * Makefile.in: Rebuild.
1518 2013-01-01  Ian Lance Taylor  <iant@google.com>
1520         PR other/55536
1521         * mmap.c (backtrace_alloc): Don't call sync functions if not
1522         threaded.
1523         (backtrace_free): Likewise.
1525 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1527         * mmapio.c: Define MAP_FAILED if not defined.
1529 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
1531         PR bootstrap/54926
1532         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1533         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1534         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1535         accepts it.
1536         * Makefile.in: Regenerated.
1537         * configure: Regenerated.
1539 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
1541         PR bootstrap/54926
1542         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1543         * Makefile.in: Regenerated.
1545 2012-11-20  Ian Lance Taylor  <iant@google.com>
1547         * dwarf.c (read_attribute): Always clear val.
1549 2012-11-13  Ian Lance Taylor  <iant@google.com>
1551         PR other/55312
1552         * configure.ac: Only add -Werror if building a target library.
1553         * configure: Rebuild.
1555 2012-11-12  Ian Lance Taylor  <iant@google.com>
1556             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1557             Gerald Pfeifer  <gerald@pfeifer.com>
1559         * configure.ac: Check for getexecname.
1560         * fileline.c: #include <errno.h>.  Define getexecname if not
1561         available.
1562         (fileline_initialize): Try to find the executable in a few
1563         different ways.
1564         * print.c (error_callback): Only print the filename if it came
1565         from the backtrace state.
1566         * configure, config.h.in: Rebuild.
1568 2012-10-29  Ian Lance Taylor  <iant@google.com>
1570         * mmap.c (backtrace_vector_release): Correct last patch: add
1571         aligned, not size.
1573 2012-10-29  Ian Lance Taylor  <iant@google.com>
1575         * mmap.c (backtrace_vector_release): Make sure freed block is
1576         aligned on 8-byte boundary.
1578 2012-10-26  Ian Lance Taylor  <iant@google.com>
1580         PR other/55087
1581         * posix.c (backtrace_open): Add does_not_exist parameter.
1582         * elf.c (phdr_callback): Do not warn if shared library could not
1583         be opened.
1584         * fileline.c (fileline_initialize): Update calls to
1585         backtrace_open.
1586         * internal.h (backtrace_open): Update declaration.
1588 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
1590         PR target/55061
1591         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1592         * configure: Regenerate.
1594 2012-10-24  Ian Lance Taylor  <iant@google.com>
1596         PR target/55061
1597         * configure.ac: Check whether -funwind-tables option works.
1598         * configure: Rebuild.
1600 2012-10-11  Ian Lance Taylor  <iant@google.com>
1602         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1603         * configure: Rebuild.
1605 2012-10-10  Ian Lance Taylor  <iant@google.com>
1607         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1608         lower case.
1610 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
1612         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1614 2012-10-09  Ian Lance Taylor  <iant@google.com>
1616         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1617         (backtrace_dwarf_add): Likewise.
1619 2012-10-09  Ian Lance Taylor  <iant@google.com>
1621         Add support for tracing through shared libraries.
1622         * configure.ac: Check for link.h and dl_iterate_phdr.
1623         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
1624         ELF macros before #defining them.
1625         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1626         dl_iterate_phdr.
1627         (struct elf_syminfo_data): Add next field.
1628         (elf_initialize_syminfo): Initialize next field.
1629         (elf_add_syminfo_data): New static function.
1630         (elf_add): New static function, broken out of
1631         backtrace_initialize.  Call backtrace_dwarf_add instead of
1632         backtrace_dwarf_initialize.
1633         (struct phdr_data): Define.
1634         (phdr_callback): New static function.
1635         (backtrace_initialize): Call elf_add.
1636         * dwarf.c (struct dwarf_data): Add next and base_address fields.
1637         (add_unit_addr): Add base_address parameter.  Change all callers.
1638         (add_unit_ranges, build_address_map): Likewise.
1639         (add_line): Add ddata parameter.  Change all callers.
1640         (read_line_program, add_function_range): Likewise.
1641         (dwarf_lookup_pc): New static function, broken out of
1642         dwarf_fileline.
1643         (dwarf_fileline): Call dwarf_lookup_pc.
1644         (build_dwarf_data): New static function.
1645         (backtrace_dwarf_add): New function.
1646         (backtrace_dwarf_initialize): Remove.
1647         * internal.h (backtrace_dwarf_initialize): Don't declare.
1648         (backtrace_dwarf_add): Declare.
1649         * configure, config.h.in: Rebuild.
1651 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
1653         * btest.c (f23): Avoid uninitialized variable warning.
1655 2012-10-04  Ian Lance Taylor  <iant@google.com>
1657         * dwarf.c: If the system header files do not declare strnlen,
1658         provide our own version.
1660 2012-10-03  Ian Lance Taylor  <iant@google.com>
1662         * dwarf.c (read_uleb128): Fix overflow test.
1663         (read_sleb128): Likewise.
1664         (build_address_map): Don't change unit_buf.start.
1666 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
1668         PR other/54761
1669         * configure.ac (EXTRA_FLAGS): New.
1670         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1671         * configure, Makefile.in: Regenerate.
1673 2012-09-29  Ian Lance Taylor  <iant@google.com>
1675         PR other/54749
1676         * fileline.c (fileline_initialize): Pass errnum as -1 when
1677         reporting that we could not read executable information after a
1678         previous failure.
1680 2012-09-27  Ian Lance Taylor  <iant@google.com>
1682         PR bootstrap/54732
1683         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1684         * Makefile.am: Add dependencies for all objects.
1685         * configure, aclocal.m4, Makefile.in: Rebuild.
1687 2012-09-27  Ian Lance Taylor  <iant@google.com>
1689         PR other/54726
1690         * elf.c (backtrace_initialize): Set *fileln_fn, not
1691         state->fileln_fn.
1693 2012-09-19  Ian Lance Taylor  <iant@google.com>
1695         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1696         as a target library.
1697         * configure: Rebuild.
1699 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1700             Ian Lance Taylor  <iant@google.com>
1702         * configure.ac (GCC_HEADER_STDINT): Invoke.
1703         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1704         * btest.c: Don't include <stdint.h>.
1705         * dwarf.c: Likewise.
1706         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1708 2012-09-18  Ian Lance Taylor  <iant@google.com>
1710         PR bootstrap/54623
1711         * Makefile.am (AM_CPPFLAGS): Define.
1712         (AM_CFLAGS): Remove -I options.
1713         * Makefile.in: Rebuild.
1715 2012-09-18  Ian Lance Taylor  <iant@google.com>
1717         * posix.c (O_BINARY): Define if not defined.
1718         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
1719         HAVE_FCNTL is defined.
1720         * configure.ac: Test for the fcntl function.
1721         * configure, config.h.in: Rebuild.
1723 2012-09-18  Ian Lance Taylor  <iant@google.com>
1725         * btest.c (test1, test2, test3, test4): Add the unused attribute.
1727 2012-09-18  Ian Lance Taylor  <iant@google.com>
1729         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1731 2012-09-18  Ian Lance Taylor  <iant@google.com>
1733         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1734         * mmapio.c: Don't define _GNU_SOURCE.
1735         * configure, config.h.in: Rebuild.
1737 2012-09-18  Ian Lance Taylor  <iant@google.com>
1739         * configure.ac: Check whether strnlen is declared.
1740         * dwarf.c: Declare strnlen if not declared.
1741         * configure, config.h.in: Rebuild.
1743 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1745         * fileline.c: Include <stdlib.h>.
1746         * mmap.c: Likewise.
1748 2012-09-17  Ian Lance Taylor  <iant@google.com>
1750         PR bootstrap/54611
1751         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
1752         parameter.
1754 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
1756         PR bootstrap/54611
1757         * nounwind.c (backtrace_simple): Add state parameter.
1759 2012-09-17  Ian Lance Taylor  <iant@google.com>
1761         PR bootstrap/54609
1762         * unknown.c (unknown_fileline): Add state parameter, remove
1763         fileline_data parameter, name error_callback parameter.
1764         (backtrace_initialize): Add state parameter.
1766 2012-09-17  Ian Lance Taylor  <iant@google.com>
1768         * Initial implementation.
1770 Copyright (C) 2012-2021 Free Software Foundation, Inc.
1772 Copying and distribution of this file, with or without modification,
1773 are permitted in any medium without royalty provided the copyright
1774 notice and this notice are preserved.