1 2023-01-12 Nick Clifton <nickc@redhat.com>
3 * Makefile.am (CLEANFILES): Import patch from upstream to prevent
4 allocafail.sh from being removed when running 'make clean'.
6 2021-11-12 Martin Liska <mliska@suse.cz>
9 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
10 (elf_uncompress_lzma): Likewise.
11 * xztest.c (test_samples): memcpy only if v > 0.
13 2021-10-22 Martin Liska <mliska@suse.cz>
16 * btest.c (MIN_DESCRIPTOR): New.
17 (MAX_DESCRIPTOR): Likewise.
18 (check_available_files): Likewise.
19 (check_open_files): Check only file descriptors that
20 were not available at the entry.
21 (main): Call check_available_files.
23 2021-08-13 Sergei Trofimovich <siarheit@google.com>
25 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
28 2021-06-28 Clément Chigot <clement.chigot@atos.net>
30 * xcoff.c (SSUBTYP_DWRNGES): New define.
31 (xcoff_add): Use correct XCOFF DWARF section subtype
32 for DEBUG_RANGES. Remove lineoff workaround.
34 (xcoff_initialize_syminfo): Adapt to new base_address.
35 (xcoff_lookup_pc): Likewise.
36 (xcoff_initialize_fileline): Likewise.
38 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
41 * configure: Regenerated.
43 2021-03-03 Ian Lance Taylor <iant@golang.org>
45 * dwarf.c (read_line_program): Don't special case file 0.
46 (read_function_entry): Likewise.
48 2021-03-02 Ian Lance Taylor <iant@golang.org>
51 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
53 * backtrace.h: Update backtrace_error_callback comment.
55 2021-02-12 Ian Lance Taylor <iant@golang.org>
57 * configure.ac: Check for objcopy --add-gnu-debuglink by using
59 * configure: Regenerate
61 2021-01-18 Ian Lance Taylor <iant@golang.org>
63 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
64 * Makefile.in: Regenerate.
65 * configure: Regenerate.
67 2021-01-18 Ian Lance Taylor <iant@golang.org>
70 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
72 (read_line_program): Remove parameter u, change caller. Don't
73 subtract one from dirs and filenames index.
74 (read_function_entry): Don't subtract one from filenames index.
76 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
78 * configure: Re-generate.
80 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
83 * configure: Regenerate.
85 2020-12-02 Ian Lance Taylor <iant@golang.org>
87 * dwarf.c (resolve_string): Use > rather than >= to check whether
88 string index extends past buffer.
89 (resolve_addr_index): Similarly for address index.
91 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
93 * configure: Regenerate.
95 2020-10-20 Ian Lance Taylor <iant@golang.org>
97 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
98 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
100 2020-09-28 Ian Lance Taylor <iant@golang.org>
102 PR libbacktrace/97082
103 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
104 * Makefile.in: Regenerate.
106 2020-09-28 Ian Lance Taylor <iant@golang.org>
108 PR libbacktrace/97227
109 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
110 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
111 * configure: Regenerate.
112 * Makefile.in: Regenerate.
114 2020-09-23 Ian Lance Taylor <iant@golang.org>
116 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
118 (dwarf_lookup_pc): Likewise.
120 2020-09-17 Ian Lance Taylor <iant@golang.org>
122 PR libbacktrace/97080
123 * fileline.c (backtrace_syminfo_to_full_callback): New function.
124 (backtrace_syminfo_to_full_error_callback): New function.
125 * elf.c (elf_nodebug): Call syminfo_fn if possible.
126 * internal.h (struct backtrace_call_full): Define.
127 (backtrace_syminfo_to_full_callback): Declare.
128 (backtrace_syminfo_to_full_error_callback): Declare.
129 * mtest.c (f3): Only check all[i] if data.index permits.
131 2020-09-16 Iain Sandoe <iain@sandoe.co.uk>
133 * macho.c (MACH_O_CPU_TYPE_PPC): New.
134 (MACH_O_CPU_TYPE_PPC64): New.
135 Add compile-tests for powerpc to the Mach-O variants.
137 2020-09-14 Ian Lance Taylor <iant@golang.org>
139 PR libbacktrace/93608
140 Add support for MiniDebugInfo.
141 * elf.c (struct elf_view): Define. Replace most uses of
142 backtrace_view with elf_view.
143 (elf_get_view): New static functions. Replace most calls of
144 backtrace_get_view with elf_get_view.
145 (elf_release_view): New static functions. Replace most calls of
146 backtrace_release_view with elf_release_view.
147 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
149 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
150 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
151 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
152 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
153 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
154 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
155 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
156 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
157 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
158 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
159 (LZMA_PROB_DIST_ALIGN_LEN): Define.
160 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
161 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
162 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
163 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
164 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
165 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
166 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
167 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
168 (LZMA_PROB_REP_LEN_MID_LEN): Define.
169 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
170 (LZMA_PROB_LITERAL_LEN): Define.
171 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
172 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
173 (LZMA_PROB_IS_REP2_OFFSET): Define.
174 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
175 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
176 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
177 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
178 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
179 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
180 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
181 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
182 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
183 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
184 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
185 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
186 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
187 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
188 (LZMA_PROB_LITERAL_OFFSET): Define.
189 (LZMA_PROB_TOTAL_COUNT): Define.
190 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
191 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
192 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
193 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
194 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
195 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
196 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
197 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
198 (elf_lzma_varint): New static function.
199 (elf_lzma_range_normalize): New static function.
200 (elf_lzma_bit, elf_lzma_integer): New static functions.
201 (elf_lzma_reverse_integer): New static function.
202 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
203 (elf_uncompress_lzma): New static function.
204 (backtrace_uncompress_lzma): New function.
205 (elf_add): Add memory and memory_size parameters. Change all
206 callers. Look for .gnu_debugdata section, and, if found,
207 decompress it and use it for symbols and debug info. Permit the
208 descriptor parameter to be -1.
209 * internal.h (backtrace_uncompress_lzma): Declare.
211 * xztest.c: New file.
212 * configure.ac: Check for nm, xz, and comm programs. Check for
214 (HAVE_MINIDEBUG): Define.
215 * Makefile.am (mtest_SOURCES): Define.
216 (mtest_CFLAGS, mtest_LDADD): Define.
217 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
218 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
219 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
220 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
221 (xztest_alloc_LDADD): Define.
222 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
223 (CLEANFILES): Add files created by minidebug pattern.
224 (btest.lo): Correct INCDIR reference.
225 (mtest.lo, xztest.lo, ztest.lo): New targets.
226 * configure: Regenerate.
227 * config.h.in: Regenerate.
228 * Makefile.in: Regenerate.
230 2020-09-09 Ian Lance Taylor <iant@golang.org>
232 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
233 (coff_add): Determine and pass is_64.
235 2020-09-09 Ian Lance Taylor <iant@golang.org>
237 PR libbacktrace/96973
238 * fileline.c (macho_get_executable_path): New static function.
239 (fileline_initialize): Call macho_get_executable_path.
241 2020-09-09 Ian Lance Taylor <iant@golang.org>
243 * dwarf.c (function_addrs_search): Compare against the next entry
244 low address, not the high address.
245 (unit_addrs_search): Likewise.
246 (build_address_map): Add a trailing unit_addrs.
247 (read_function_entry): Add a trailing function_addrs.
248 (read_function_info): Likewise.
249 (report_inlined_functions): Search backward for function_addrs
251 (dwarf_lookup_pc): Search backward for unit_addrs and
252 function_addrs matches.
254 2020-09-08 Ian Lance Taylor <iant@golang.org>
256 * simple.c (simple_unwind): Correct comment spelling.
258 2020-09-08 Ian Lance Taylor <iant@golang.org>
260 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
261 correct length when freeing diralc.
263 2020-09-08 Ian Lance Taylor <iant@golang.org>
265 PR libbacktrace/96973
266 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
268 2020-09-08 Ian Lance Taylor <iant@golang.org>
270 PR libbacktrace/96971
271 * filetype.awk: Only match magic number at start of line.
273 2020-08-24 Ian Lance Taylor <iant@golang.org>
275 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
276 (MACH_O_MH_CIGAM_FAT_64): Define.
277 (struct macho_fat_arch_64): Define.
278 (macho_add_fat): Add and use is_64 parameter.
279 (macho_add): Recognize 64-bit fat files.
281 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
284 * configure: Regenerated.
286 2020-07-08 Ian Lance Taylor <iant@golang.org>
288 * configure.ac: Test linker support for DWARF5
289 * configure: Regenerate
291 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
294 * configure: Regenerated.
296 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
299 * configure: Regenerated.
301 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
303 * configure: Regenerated.
305 2020-05-13 Ian Lance Taylor <iant@golang.org>
307 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
309 2020-05-13 Ian Lance Taylor <iant@golang.org>
312 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
314 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
316 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
317 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
318 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
320 * Makefile.in: Regenerated.
321 * configure: Likewise.
323 2020-05-11 Ian Lance Taylor <iant@golang.org>
325 PR libbacktrace/95012
326 * configure.ac: Check for getpagesize declaration.
327 * mmap.c: Declare getpagesize if necessary.
328 * mmapio.c: Likewise.
329 * configure: Regenerate.
330 * config.h.in: Regenerate.
331 * Makefile.in: Regenerate.
333 2020-05-09 Roland McGrath <mcgrathr@google.com>
335 * elf.c (elf_add): Bail early if there are no section headers at all.
337 2020-05-09 Ian Lance Taylor <iant@golang.org>
339 * elf.c (elf_add): Don't free strtab if an error occurs after
340 recording symbol information.
342 2020-05-09 Ian Lance Taylor <iant@golang.org>
344 PR libbacktrace/88745
346 * filetype.awk: Recognize Mach-O files.
347 * Makefile.am (FORMAT_FILES): Add macho.c.
348 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
349 (%.dSYM): New pattern target.
350 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
351 (test_macho_LDADD): New target.
352 (BUILDTESTS): Add test_macho.
353 (macho.lo): Add dependencies.
354 * configure.ac: Recognize macho file type. Check for
355 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
356 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
357 * Makefile.in: Regenerate.
358 * configure: Regenerate.
359 * config.h.in: Regenerate.
361 2020-05-09 Ian Lance Taylor <iant@golang.org>
363 * read.c (backtrace_get_view): Support short read.
365 2020-05-09 Ian Lance Taylor <iant@golang.org>
367 * elf.c (elf_add): If debug sections are very large or far apart,
368 read them individually rather than as a single view.
370 2020-05-08 Ian Lance Taylor <iant@golang.org>
372 * fileline.c (sysctl_exec_name): New static function.
373 (sysctl_exec_name1): New macro or static function.
374 (sysctl_exec_name2): Likewise.
375 (fileline_initialize): Try sysctl_exec_name[12].
376 * configure.ac: Check for sysctl args to fetch executable name.
377 * configure: Regenerate.
378 * config.h.in: Regenerate.
380 2020-02-15 Ian Lance Taylor <iant@golang.org>
382 * ztest.c (test_large): Update file to current libgo test file.
384 2020-02-03 Ian Lance Taylor <iant@golang.org>
386 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
387 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
388 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
389 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
390 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
391 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
392 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
393 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
394 (stest_alloc_CFLAGS): Likewise.
395 * Makefile.in: Regenerate.
396 * ztest.c (error_callback_compress): Mark vdata unused.
397 (test_large): Add casts to avoid warnings.
399 2020-01-01 Jakub Jelinek <jakub@redhat.com>
401 Update copyright years.
403 2019-12-13 Ian Lance Taylor <iant@golang.org>
406 * dwarf.c (struct attr): Add val field.
407 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
408 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
409 (struct line_header): Add addrsize field.
410 (struct line_header_format): Define.
411 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
413 (read_uint24): New static function.
414 (read_attribute): Add implicit_val parameter. Replace dwarf_str
415 and dwarf_str_size parameters with dwarf_sections parameter. Add
416 support for new DWARF 5 forms. Change all callers.
417 (resolve_string): New static function.
418 (resolve_addr_index): Likewise.
419 (read_abbrevs): Support DW_FORM_implicit_const.
420 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
421 and ranges_is_index fields.
422 (update_pcrange): Support DWARF 5 encodings.
423 (add_high_low_range): New static function, split out of
425 (add_ranges_from_ranges): Likewise.
426 (add_ranges_from_rnglists): New static function.
427 (add_ranges): Just call new helper functions.
428 (find_address_ranges): Use resolve_string for strings, after
429 reading all attributes. Handle new DWARF 5 attributes.
430 (build_address_map): Support DWARF 5 compilation units.
431 (read_v2_paths): New static function, split out of
433 (read_lnct): New static function.
434 (read_line_header_format_entries): Likewise.
435 (read_line_header): Add ddata parameter. Support DWARF 5 line
436 headers. Call new helper functions. Change all callers.
437 (read_line_program): Use addrsize from line program header. Don't
438 special case directory index 0 for DWARF 5.
439 (read_referenced_name): Use resolve_string.
440 (read_function_entry): Handle DWARF 5 encodings. Use
442 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
443 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
444 * elf.c (dwarf_section_names): Add new section names.
445 * pecoff.c (dwarf_section_names): Likewise.
446 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
448 * configure.ac: Define HAVE_DWARF5 automake conditional.
449 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
450 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
451 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
452 (dwarf5_alloc_LDADD): Likewise.
453 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
454 (CLEANFILES, clean-local): Define.
456 2019-12-08 Ian Lance Taylor <iant@golang.org>
458 * dwarf.c (struct pcrange): Define.
459 (update_pcrange, add_ranges): New static functions.
460 (add_unit_addr): Change signature to work with add_ranges. Don't
461 add base_address here.
462 (add_unit_ranges): Remove.
463 (find_address_ranges): Replace str/ranges parameters with
464 dwarf_sections. Use update_pcrange and add_ranges. Change all
466 (add_function_range): Change signature to work with add_ranges.
467 Don't add base_address here.
468 (add_function_ranges): Remove.
469 (read_function_entry): Use update_pcrange and add_ranges.
471 2019-12-04 Ian Lance Taylor <iant@golang.org>
473 * edtest.c (test1): Add noclone attribute.
475 2019-12-04 Ian Lance Taylor <iant@golang.org>
477 * internal.h (enum dwarf_section): Define.
478 (struct dwarf_sections): Define.
479 (backtrace_dwarf_add): Update declaration to replace specific
480 section parameters with dwarf_sections parameter.
481 * dwarf.c (struct dwarf_data): Replace specific section fields
482 with dwarf_sections field.
483 (read_attribute): Use dwarf_sections with altlink.
484 (build_address_map): Replace specific section parameters with
485 dwarf_sections parameter. Change all callers.
486 (read_line_info): Use dwarf_sections with ddata.
487 (read_referenced_name): Likewise.
488 (add_function_ranges): Likewise.
489 (read_function_entry): Likewise.
490 (read_function_info): Likewise.
491 (build_dwarf_data): Replace specific section parameters with
492 dwarf_sections parameter. Change all callers.
493 (backtrace_dwarf_add): Likewise.
494 * elf.c (enum debug_section): Remove.
495 (dwarf_section_names): Remove .zdebug names.
496 (elf_add): Track zsections separately. Build dwarf_sections.
497 * pecoff.c (enum debug_section): Remove.
498 (struct debug_section_info): Remove data field.
499 (coff_add): Build dwarf_sections.
500 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
501 references with DEBUG_xxx references.
502 (xcoff_add): Build dwarf_sections.
504 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
506 * configure: Regenerate.
508 2019-09-26 Ian Lance Taylor <iant@golang.org>
510 PR libbacktrace/91908
511 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
512 __sync_bool_compare_and_swap to void.
513 * xcoff.c (backtrace_initialize): Likewise.
515 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
517 * configure.ac: Remove references to spu.
518 * configure: Regenerate.
520 2019-05-24 Clement Chigot <clement.chigot@atos.net>
522 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
524 * Makefile.in: Regenerate.
526 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
530 * configure: Regenerate.
532 2019-03-11 Ian Lance Taylor <iant@golang.org>
534 PR libbacktrace/89669
535 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
537 * Makefile.in: Regenerate.
539 2019-02-26 Tom de Vries <tdevries@suse.de>
541 * btest.c (test5): Allow global.* as minimal symbol name for global.
543 2019-02-26 Tom de Vries <tdevries@suse.de>
545 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
546 * Makefile.in: Regenerate.
548 2019-02-12 Tom de Vries <tdevries@suse.de>
550 PR libbacktrace/81983
551 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
553 2019-02-10 Tom de Vries <tdevries@suse.de>
555 * Makefile.am (BUILDTESTS): Add btest_lto.
556 * Makefile.in: Regenerate.
557 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
558 __attribute__((noclone)).
560 2019-02-08 Tom de Vries <tdevries@suse.de>
562 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
563 * print.c (backtrace_print): Same.
564 * simple.c (backtrace_simple): Same.
566 2019-02-08 Tom de Vries <tdevries@suse.de>
568 PR libbacktrace/78063
569 * dwarf.c (build_address_map): Keep all parsed units.
570 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
572 2019-01-31 Tom de Vries <tdevries@suse.de>
574 PR libbacktrace/89136
575 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
576 'debugaltlink_name_len =+ 1'.
578 2019-01-29 Tom de Vries <tdevries@suse.de>
580 * install-debuginfo-for-buildid.sh.in: New script.
581 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
582 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
583 * Makefile.in: Regenerate.
584 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
585 (READELF): Set with AC_CHECK_PROG.
586 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
587 * configure: Regenerate.
588 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
589 (elf_open_debugfile_by_buildid): ... here.
591 2019-01-29 Tom de Vries <tdevries@suse.de>
593 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
595 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
596 (check_PROGRAMS): Add BUILDTESTS.
597 * Makefile.in: Regenerate.
599 2019-01-28 Tom de Vries <tdevries@suse.de>
601 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
602 Use $< to access prerequisite.
603 * Makefile.in: Regenerate.
605 2019-01-25 Nathan Sidwell <nathan@acm.org>
607 * elf.c (elf_add): Pass "" filename to recursive call with
610 2019-01-25 Tom de Vries <tdevries@suse.de>
612 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
614 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
615 * Makefile.in: Regenerate.
617 2019-01-25 Tom de Vries <tdevries@suse.de>
619 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
620 (TESTS): Rename dtest to btest_gnudebuglink.
621 * Makefile.in: Regenerate.
623 2019-01-23 Tom de Vries <tdevries@suse.de>
625 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
626 (units_search, find_unit): Use size_t for offset.
627 (build_address_map): Use size_t for unit_offset.
629 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
631 * allocfail.c (main): Increase portability of printf statement.
633 2019-01-18 Ian Lance Taylor <iant@golang.org>
635 PR libbacktrace/88890
636 * mmapio.c (backtrace_get_view): Change size parameter to
637 uint64_t. Check that value fits in size_t.
638 * read.c (backtrace_get_view): Likewise.
639 * internal.h (backtrace_get_view): Update declaration.
640 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
642 2019-01-17 Tom de Vries <tdevries@suse.de>
644 PR libbacktrace/82857
645 * configure.ac (DWZ): Set with AC_CHECK_PROG.
646 (HAVE_DWZ): Set with AM_CONDITIONAL.
647 * configure: Regenerate.
648 * Makefile.am (TESTS): Add btest_dwz.
649 * Makefile.in: Regenerate.
651 2019-01-17 Tom de Vries <tdevries@suse.de>
653 PR libbacktrace/82857
654 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
655 (read_attribute): Handle DW_FORM_GNU_ref_alt using
656 ATTR_VAL_REF_ALT_INFO.
657 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
659 2019-01-17 Tom de Vries <tdevries@suse.de>
661 * dwarf.c (struct unit): Add low_offset and high_offset fields.
662 (struct unit_vector): New type.
663 (struct dwarf_data): Add units and units_counts fields.
664 (find_unit): New function.
665 (find_address_ranges): Add and handle unit_tag parameter.
666 (build_address_map): Add and handle units_vec parameter.
667 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
670 2019-01-17 Tom de Vries <tdevries@suse.de>
672 PR libbacktrace/82857
673 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
676 2019-01-17 Tom de Vries <tdevries@suse.de>
678 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
679 (read_attribute): Add altlink parameter. Handle missing altlink for
680 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
681 (find_address_ranges, build_address_map, build_dwarf_data): Add and
682 handle altlink parameter.
683 (read_referenced_name, read_function_entry): Add argument to
686 2019-01-17 Tom de Vries <tdevries@suse.de>
688 * dwarf.c (struct dwarf_data): Add altlink field.
689 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
690 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
691 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
692 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
693 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
694 * xcoff.c (xcoff_add): Same.
696 2019-01-17 Tom de Vries <tdevries@suse.de>
698 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
699 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
700 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
701 argument to backtrace_dwarf_add call.
702 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
703 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
704 * xcoff.c (xcoff_add): Same.
706 2019-01-17 Tom de Vries <tdevries@suse.de>
708 * elf.c (elf_add): Add and handle with_buildid_data and
709 with_buildid_size parameters. Handle .gnu_debugaltlink section.
710 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
712 2019-01-16 Tom de Vries <tdevries@suse.de>
714 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
716 (read_referenced_name): ... here, and ...
717 (read_function_entry): ... here.
719 2019-01-16 Tom de Vries <tdevries@suse.de>
721 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
723 (read_function_entry): Same. Don't allow name found via
724 DW_AT_abstract_origin or case DW_AT_specification to override linkage
727 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
731 * backtrace.h: Mechanically replace "can not" with "cannot".
733 2019-01-01 Jakub Jelinek <jakub@redhat.com>
735 Update copyright years.
737 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
739 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
741 * Makefile.in: Regenerate.
743 2018-12-28 Tom de Vries <tdevries@suse.de>
745 * dwarf.c (build_address_map): Reuse unused units.
747 2018-12-28 Tom de Vries <tdevries@suse.de>
749 * dwarf.c (build_address_map): Simplify by removing local variable
752 2018-12-28 Ian Lance Taylor <iant@golang.org>
753 Tom de Vries <tdevries@suse.de>
755 PR libbacktrace/88063
756 * dwarf.c (free_unit_addrs_vector): Remove.
757 (build_address_map): Keep track of allocated units in vector. Free
758 allocated units and corresponding abbrevs upon failure. Remove now
759 redundant call to free_unit_addrs_vector. Free addrs vector upon
760 failure. Free allocated unit vector.
762 2018-12-28 Tom de Vries <tdevries@suse.de>
764 * dwarf.c (build_address_map): Free addrs vector upon failure.
766 2018-12-14 Tom de Vries <tdevries@suse.de>
769 * allocfail.sh: Remove "set -o pipefail".
771 2018-12-12 Tom de Vries <tdevries@suse.de>
773 * Makefile.am (TESTS): Add allocfail.sh.
774 (check_PROGRAMS): Add allocfail.
775 * Makefile.in: Regenerate.
776 * instrumented_alloc.c: New file. Redefine malloc and realloc.
778 * allocfail.c: New file.
779 * allocfail.sh: New file.
781 2018-11-30 Tom de Vries <tdevries@suse.de>
783 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
784 test_xcoff_64, test_pecoff and test_unknown.
785 * Makefile.in: Regenerate.
786 * test_format.c: New file.
788 2018-11-30 Tom de Vries <tdevries@suse.de>
790 * Makefile.am : Add _with_alloc version for each test in
792 * Makefile.in: Regenerate.
794 2018-11-30 Tom de Vries <tdevries@suse.de>
796 * internal.h (backtrace_vector_free): New static inline fuction,
798 * dwarf.c (read_line_info): ... here.
800 2018-11-28 Tom de Vries <tdevries@suse.de>
802 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
805 2018-11-27 Tom de Vries <tdevries@suse.de>
807 * mmap.c (backtrace_vector_release): Same.
808 * unittest.c (test1): Add check.
810 2018-11-27 Tom de Vries <tdevries@suse.de>
812 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
814 * Makefile.am (check_PROGRAMS): Add unittest.
815 * Makefile.in: Regenerate.
816 * unittest.c: New file.
818 2018-11-22 Tom de Vries <tdevries@suse.de>
820 * dwarf.c (read_initial_length): Factor out of ...
821 (build_address_map, read_line_info): ... here.
823 2018-11-21 Tom de Vries <tdevries@suse.de>
825 * dwarf.c (read_string): Factor out of ...
826 (read_attribute, read_line_header, read_line_program): ... here.
828 2018-10-31 Joseph Myers <joseph@codesourcery.com>
831 * Makefile.am: Include multilib.am.
832 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
833 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
835 2018-10-05 Ian Lance Taylor <iant@golang.org>
837 PR libbacktrace/87529
838 * backtrace.h: Document that backtrace_create_state should be
841 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
843 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
844 * Makefile.in: Regenerate.
845 * config.h.in: Likewise.
846 * configure: Likewise.
848 2018-08-01 Tony Reix <tony.reix@atos.net>
850 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
851 (struct xcoff_func, struct xcoff_func_vector): New structs.
852 (xcoff_syminfo): Drop leading dot from symbol name.
853 (xcoff_line_compare, xcoff_line_search): Remove.
854 (xcoff_func_compare, xcoff_func_search): New static functions.
855 (xcoff_lookup_pc): Search function table.
856 (xcoff_add_line, xcoff_process_linenos): Remove.
857 (xcoff_initialize_fileline): Build function table.
859 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
862 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
863 checking up to 36 bytes.
865 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
867 * configure: Regenerated.
869 2018-04-19 Jakub Jelinek <jakub@redhat.com>
871 * configure: Regenerated.
873 2018-04-17 Ian Lance Taylor <iant@golang.org>
875 * backtrace.c: Revert last two changes. Don't call mmap
878 2018-04-17 Ian Lance Taylor <iant@golang.org>
880 * backtrace.c: Include backtrace-supported.h before checking
881 BACKTRACE_USES_MALLOC.
883 2018-04-17 Ian Lance Taylor <iant@golang.org>
885 * backtrace.c (backtrace_full): When testing whether we can
886 allocate memory, call mmap directly, and munmap the memory.
888 2018-04-04 Jakub Jelinek <jakub@redhat.com>
891 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
892 big endian, only use 32-bit loads if endianity macros are predefined
893 and indicate big or little endian.
895 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
898 * configure: Regenerate.
900 2018-02-15 Jakub Jelinek <jakub@redhat.com>
903 * elf.c (SHT_PROGBITS): Undefine and define.
905 2018-02-14 Jakub Jelinek <jakub@redhat.com>
908 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
909 (struct elf_ppc64_opd_data): New type.
910 (elf_initialize_syminfo): Add opd argument, handle symbols
911 pointing into the PowerPC64 ELFv1 .opd section.
912 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
913 to structure with .opd data to elf_initialize_syminfo.
915 2018-01-31 Ian Lance Taylor <iant@golang.org>
917 * elf.c (elf_add): Close descriptor if we use a debugfile.
918 * btest.c (check_open_files): New static function.
919 (main): Call check_open_files.
921 2018-01-25 Ian Lance Taylor <iant@golang.org>
923 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
925 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
927 2018-01-25 Ian Lance Taylor <iant@golang.org>
929 * pecoff.c (coff_add): Only release syms_view if it is valid.
931 2018-01-25 Ian Lance Taylor <iant@golang.org>
933 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
935 2018-01-24 Ian Lance Taylor <iant@golang.org>
937 * pecoff.c (coff_add): Use coff_read4, not memcpy.
939 2018-01-24 Ian Lance Taylor <iant@golang.org>
942 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
945 2018-01-19 Tony Reix <tony.reix@atos.net>
947 * xcoff.c (xcoff_incl_compare): New function.
948 (xcoff_incl_search): New function.
949 (xcoff_process_linenos): Use bsearch to find include file.
950 (xcoff_initialize_fileline): Sort include file information.
952 2018-01-16 Ian Lance Taylor <iant@golang.org>
954 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
956 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
957 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
958 (elf_zlib_default_table): Update.
959 (elf_zlib_default_dist_table): New static array.
960 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
962 * ztest.c (struct zlib_test): Add uncompressed_len.
963 (tests): Initialize uncompressed_len field. Add new test case.
964 (test_samples): Use uncompressed_len field.
966 2018-01-03 Jakub Jelinek <jakub@redhat.com>
968 Update copyright years.
970 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
972 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
973 * aclocal.m4: Regenerate.
974 * Makefile.in: Likewise.
975 * configure: Likewise.
977 2017-10-06 Ian Lance Taylor <iant@golang.org>
979 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
980 zlib uncompress function.
982 2017-10-05 Ian Lance Taylor <iant@golang.org>
984 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
985 Read a four byte integer.
986 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
987 boundary before ever calling elf_zlib_fetch.
988 * ztest.c (test_large): Simplify print statements a bit.
990 2017-10-02 Ian Lance Taylor <iant@golang.org>
992 * ztest.c: #include <errno.h>.
993 (TEST_TIMING): Don't define, don't test.
994 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
995 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
996 (ZLIB_CLOCK_GETTIME_ARG): Define.
997 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
998 * Makefile.am: Likewise.
999 * configure, Makefile.in: Rebuild.
1001 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
1004 * Makefile.am: Append the content of clock_gettime_link to
1006 * configure.ac: Test for the case that clock_gettime is in librt.
1007 * Makefile.in: Regenerate.
1008 * configure: Likewise.
1011 * configure.ac: Check for clock_gettime.
1012 * config.h.in: Regenerate.
1013 * configure: Likewise.
1014 * ztest.c (average_time, test_large): Conditionalize test timing
1015 on clock_gettime availability.
1017 2017-09-29 Tony Reix <tony.reix@atos.net>
1019 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1020 (STYP_DWARF, SSUBTYP_DW*): Define.
1021 (enum dwarf_section): Define.
1022 (struct dwsect_info): Define.
1023 (xcoff_add): Look for DWARF sections, pass them to
1024 backtrace_dwarf_add.
1026 2017-09-28 Ian Lance Taylor <iant@golang.org>
1029 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1031 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1032 (b_elf_chdr): Define type.
1033 (enum debug_section): Add ZDEBUG_xxx values.
1034 (debug_section_names): Add names for new sections.
1035 (struct debug_section_info): Add compressed field.
1036 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1037 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1038 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1039 (HUFFMAN_SECONDARY_SHIFT): Define.
1040 (ZDEBUG_TABLE_SIZE): Define.
1041 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1042 (final_next_secondary): New static variable if
1043 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1044 (elf_zlib_inflate_table): New static function.
1045 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1046 function to produce fixed Huffman table.
1047 (elf_zlib_default_table): New static variable.
1048 (elf_zlib_inflate): New static function.
1049 (elf_zlib_verify_checksum): Likewise.
1050 (elf_zlib_inflate_and_verify): Likewise.
1051 (elf_uncompress_zdebug): Likewise.
1052 (elf_uncompress_chdr): Likewise.
1053 (backtrace_uncompress_zdebug): New extern function.
1054 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1055 sections, and uncompress them.
1056 * internal.h (backtrace_compress_zdebug): Declare.
1057 * ztest.c: New file.
1058 * configure.ac: Check for -lz and check whether the linker
1059 supports --compress-debug-sections.
1060 * Makefile.am (ztest_SOURCES): New variable.
1061 (ztest_CFLAGS, ztest_LDADD): New variables.
1062 (check_PROGRAMS): Add ztest.
1063 (ctestg_SOURCES): New variable.
1064 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1065 (ctesta_SOURCES): New variable.
1066 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1067 (check_PROGRAMS): Add ctestg and ctesta.
1068 * configure, config.h.in, Makefile.in: Rebuild.
1070 2017-09-22 Ian Lance Taylor <iant@golang.org>
1073 * configure.ac: Check for lstat and readlink.
1074 * elf.c (lstat, readlink): Provide dummy versions if real versions
1076 * configure, config.h.in: Rebuild.
1078 2017-09-21 Ian Lance Taylor <iant@google.com>
1081 * elf.c (backtrace_initialize): Set pd.exe_filename.
1083 2017-09-20 Ian Lance Taylor <iant@golang.org>
1084 Denis Khalikov <d.khalikov@partner.samsung.com>
1087 Support for external debug info.
1088 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1089 (S_ISLNK): Define if not defined.
1090 (xstrnlen): Define if strnlen is not available.
1091 (b_elf_note): Define type.
1092 (NT_GNU_BUILD_ID): Define macro.
1093 (elf_crc32, elf_crc32_file): New static functions.
1094 (elf_is_symlink, elf_readlink): New static functions.
1095 (elf_open_debugfile_by_buildid): New static function.
1096 (elf_try_debugfile): New static function.
1097 (elf_find_debugfile_by_debuglink): New static function.
1098 (elf_open_debugfile_by_debuglink): New static function.
1099 (elf_add): Add filename and debuginfo parameters. Adjust all
1100 callers. Look for external debug info notes, and try to fetch
1101 debug info from external file.
1102 (struct phdr_data): Add exe_filename field.
1103 (phdr_callback): Pass filename to elf_add.
1104 (backtrace_initialize): Add filename parameter.
1105 * internal.h (backtrace_initialize): Add filename parameter.
1106 * fileline.c (fileline_initialize): Pass filename to
1107 backtrace_initialize.
1108 * pecoff.c (fileline_initialize): Add unused filename parameter.
1109 * unknown.c (fileline_initialize): Likewise.
1110 * xcoff.c (fileline_initialize): Likewise.
1111 * configure.ac: Check for objcopy --add-gnu-debuglink.
1112 * Makefile.am (dtest): New test target.
1113 * configure, Makefile.in: Rebuild.
1115 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1118 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1119 * Makefile.in: Regenerate.
1121 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1124 * libbacktrace/Makefile.in
1125 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1127 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
1130 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1132 2017-07-28 Tony Reix <tony.reix@atos.net>
1134 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1136 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1138 * fileline.c (fileline_initialize): Print pid_t as long.
1140 2017-07-26 Tony Reix <tony.reix@atos.net>
1142 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1143 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1144 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1145 * configure, config.h.in: Regenerate.
1147 2017-07-21 Tony Reix <tony.reix@atos.net>
1149 * filetype.awk: Add AIX XCOFF type detection.
1150 * configure.ac: Recognize xcoff format.
1151 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1152 * fileline.c: Include <unistd.h>.
1153 (fileline_initialize): Add case for AIX procfs.
1154 * xcoff.c: New file.
1155 * configure, Makefile.in: Rebuild.
1157 2017-06-21 Richard Biener <rguenther@suse.de>
1159 * configure.ac: Add AC_SYS_LARGEFILE.
1160 * config.h.in: Regenerate.
1161 * configure: Likewise.
1163 2017-06-11 Ian Lance Taylor <iant@golang.org>
1165 * elf.c (backtrace_initialize): Always set *fileline_fn.
1166 * ttest.c: New file.
1167 * btest.c: Move support functions into testlib.c. Change calls to
1168 check to pass file name.
1169 * testlib.c: New file, copied from (part of) btest.c.
1170 * testlib.h: New file, declarations for testlib.c.
1171 * edtest.c: Use testlib.h and testlib.c.
1172 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1173 * Makefile.am (btest_SOURCES): Add testlib.c.
1174 (edtest_SOURCES): Likewise.
1175 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1176 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1177 * configure, Makefile.in: Rebuild.
1179 2017-05-19 Than McIntosh <thanm@google.com>
1181 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1182 (read_line_header): Don't allocate dirs if dirs_count == 0.
1183 * edtest.c: New file.
1184 * edtest2.c: New file.
1185 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1186 (check_PROGRAMS): Add edtest.
1187 (edtest2_build.c, gen_edtest2_build): New targets.
1188 * Makefile.in: Rebuild.
1190 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1192 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1193 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1195 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1197 Update copyright years.
1199 2016-11-15 Matthias Klose <doko@ubuntu.com>
1201 * configure: Regenerate.
1203 2016-09-11 Carlos Liam <carlos@aarzee.me>
1205 * all: Remove meaningless trailing whitespace.
1207 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1210 * elf.c (phdr_callback) [__i386__]: Add
1211 __attribute__((__force_align_arg_pointer__)).
1213 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1215 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1216 avoid possible crash.
1217 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1218 missing debug info anymore.
1220 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
1222 * mmap.c (MAP_FAILED): Define if not defined.
1224 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1226 Update copyright years.
1228 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1230 * configure.ac: Specify that DJGPP do not have mmap
1231 even when sys/mman.h exists.
1232 * configure: Regenerate
1234 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1236 PR libgfortran/68115
1237 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1238 * configure: Regenerate.
1239 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1242 2015-09-17 Ian Lance Taylor <iant@google.com>
1244 * posix.c (backtrace_open): Cast second argument of open() to int.
1246 2015-09-11 Ian Lance Taylor <iant@google.com>
1248 * Makefile.am (backtrace.lo): Depend on internal.h.
1249 (sort.lo, stest.lo): Add explicit dependencies.
1250 * Makefile.in: Rebuild.
1252 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
1254 * backtrace.c: #include <sys/types.h>.
1256 2015-09-08 Ian Lance Taylor <iant@google.com>
1259 * backtrace.c: #include "internal.h".
1260 (struct backtrace_data): Add can_alloc field.
1261 (unwind): If can_alloc is false, don't try to get file/line
1263 (backtrace_full): Set can_alloc field in bdata.
1264 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1266 * mmap.c (backtrace_alloc): Likewise.
1267 * internal.h: Update comments for backtrace_alloc and
1270 2015-09-08 Ian Lance Taylor <iant@google.com>
1273 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1275 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1277 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1278 * configure: Regenerate.
1280 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1282 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1283 Remove setting PIC_FLAG when building as target library.
1284 * configure: Regenerate.
1286 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
1288 * configure.ac: Only compile with -fPIC if the target
1290 * configure: Regenerate.
1292 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1294 * configure.ac: Set have_mmap to no on spu-*-* targets.
1295 * configure: Regenerate.
1297 2015-08-13 Ian Lance Taylor <iant@google.com>
1299 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1302 2015-06-11 Martin Sebor <msebor@redhat.com>
1305 * dwarf.c (struct line): Add new field idx.
1306 (line_compare): Use it.
1308 (read_line_info): Reset it.
1310 2015-05-29 Tristan Gingold <gingold@adacore.com>
1312 * pecoff.c: New file.
1313 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1314 * Makefile.in: Regenerate.
1315 * filetype.awk: Detect pecoff.
1316 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1318 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1320 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1321 * configure: Regenerate.
1322 * pecoff.c: New file.
1324 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1326 * Makefile.in: Regenerated with automake-1.11.6.
1327 * aclocal.m4: Likewise.
1328 * configure: Likewise.
1330 2015-01-24 Matthias Klose <doko@ubuntu.com>
1332 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1333 * configure: Regenerate.
1335 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1337 Update copyright years.
1339 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1342 * configure: Regenerated.
1344 2014-11-11 David Malcolm <dmalcolm@redhat.com>
1346 * ChangeLog.jit: New.
1348 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1351 * configure: Regenerate.
1353 2014-10-23 Ian Lance Taylor <iant@google.com>
1355 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1356 Fix to return void *.
1358 2014-05-08 Ian Lance Taylor <iant@google.com>
1360 * mmap.c (backtrace_free): If freeing a large aligned block of
1361 memory, call munmap rather than holding onto it.
1362 (backtrace_vector_grow): When growing a vector, double the number
1363 of pages requested. When releasing the old version of a grown
1364 vector, pass the correct size to backtrace_free.
1366 2014-03-07 Ian Lance Taylor <iant@google.com>
1368 * sort.c (backtrace_qsort): Use middle element as pivot.
1370 2014-03-06 Ian Lance Taylor <iant@google.com>
1373 * stest.c: New file.
1374 * internal.h (backtrace_qsort): Declare.
1375 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1376 (read_line_info, read_function_entry): Likewise.
1377 (read_function_info, build_dwarf_data): Likewise.
1378 * elf.c (elf_initialize_syminfo): Likewise.
1379 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1380 (stest_SOURCES, stest_LDADD): Define.
1381 (check_PROGRAMS): Add stest.
1383 2014-02-07 Misty De Meo <misty@brew.sh>
1386 * configure.ac: Use AC_LINK_IFELSE in check for
1388 * configure: Regenerate.
1390 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1392 Update copyright years
1394 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1396 * elf.c (ET_DYN): Undefine and define again.
1397 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1398 return early -1 without closing the descriptor.
1399 (struct phdr_data): Add exe_descriptor.
1400 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1401 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1402 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1404 (backtrace_initialize): Adjust call to elf_add. If it returns
1405 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1407 2013-12-05 Ian Lance Taylor <iant@google.com>
1409 * alloc.c (backtrace_vector_finish): Add error_callback and data
1410 parameters. Call backtrace_vector_release. Return address base.
1411 * mmap.c (backtrace_vector_finish): Add error_callback and data
1412 parameters. Return address base.
1413 * dwarf.c (read_function_info): Get new address base from
1414 backtrace_vector_finish.
1415 * internal.h (backtrace_vector_finish): Update declaration.
1417 2013-11-27 Ian Lance Taylor <iant@google.com>
1419 * dwarf.c (find_address_ranges): New static function, broken out
1420 of build_address_map.
1421 (build_address_map): Call it.
1422 * btest.c (check): Check for missing filename or function, rather
1424 (f3): Check that enough frames were returned.
1426 2013-11-19 Jakub Jelinek <jakub@redhat.com>
1428 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1429 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1431 * btest.c (struct symdata): Add size field.
1432 (callback_three): Add symsize argument. Copy it to the data->size
1434 (f23): Set symdata.size to 0.
1435 (test5): Likewise. If sizeof (int) > 1, lookup address of
1436 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1439 * atomic.c: Include sys/types.h.
1441 2013-11-18 Ian Lance Taylor <iant@google.com>
1443 * configure.ac: Check for support of __atomic extensions.
1444 * internal.h: Declare or #define atomic functions for use in
1446 * atomic.c: New file.
1447 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1448 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1449 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1450 (backtrace_initialize): Likewise.
1451 * fileline.c (fileline_initialize): Likewise.
1452 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1453 * configure, config.h.in, Makefile.in: Rebuild.
1455 2013-11-18 Jakub Jelinek <jakub@redhat.com>
1457 * elf.c (SHN_UNDEF): Define.
1458 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1459 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1460 (elf_add): Adjust caller.
1462 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1464 2013-11-16 Ian Lance Taylor <iant@google.com>
1466 * backtrace.h (backtrace_create_state): Correct comment about
1469 2013-11-15 Ian Lance Taylor <iant@google.com>
1471 * backtrace.h (backtrace_syminfo): Update comment and parameter
1472 name to take any address, not just a PC value.
1473 * elf.c (STT_OBJECT): Define.
1474 (elf_nosyms): Rename parameter pc to addr.
1475 (elf_symbol_search): Rename local variable pc to addr.
1476 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1477 (elf_syminfo): Rename parameter pc to addr.
1478 * btest.c (global): New global variable.
1482 2013-10-17 Ian Lance Taylor <iant@google.com>
1484 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1487 2013-10-15 David Malcolm <dmalcolm@redhat.com>
1489 * configure.ac: Add --enable-host-shared, setting up
1490 pre-existing PIC_FLAG variable within Makefile.am et al.
1491 * configure: Regenerate.
1493 2013-09-20 Alan Modra <amodra@gmail.com>
1495 * configure: Regenerate.
1497 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1499 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1501 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1503 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1504 dl_iterate_phdr callbacks.
1506 2013-03-25 Ian Lance Taylor <iant@google.com>
1508 * alloc.c: #include <sys/types.h>.
1511 2013-01-31 Ian Lance Taylor <iant@google.com>
1513 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1514 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1516 2013-01-25 Jakub Jelinek <jakub@redhat.com>
1519 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1520 attribute was not seen.
1522 2013-01-16 Ian Lance Taylor <iant@google.com>
1524 * dwarf.c (struct unit): Add filename and abs_filename fields.
1525 (build_address_map): Set new fields when reading unit.
1526 (dwarf_lookup_pc): If we don't find an entry in the line table,
1527 just return the main file name.
1529 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1531 Update copyright years.
1533 2013-01-01 Ian Lance Taylor <iant@google.com>
1536 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1537 $(MULTIBUILDTOP)/../../gcc/include.
1538 * Makefile.in: Rebuild.
1540 2013-01-01 Ian Lance Taylor <iant@google.com>
1543 * mmap.c (backtrace_alloc): Don't call sync functions if not
1545 (backtrace_free): Likewise.
1547 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1549 * mmapio.c: Define MAP_FAILED if not defined.
1551 2012-12-11 Jakub Jelinek <jakub@redhat.com>
1554 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1555 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1556 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1558 * Makefile.in: Regenerated.
1559 * configure: Regenerated.
1561 2012-12-07 Jakub Jelinek <jakub@redhat.com>
1564 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1565 * Makefile.in: Regenerated.
1567 2012-11-20 Ian Lance Taylor <iant@google.com>
1569 * dwarf.c (read_attribute): Always clear val.
1571 2012-11-13 Ian Lance Taylor <iant@google.com>
1574 * configure.ac: Only add -Werror if building a target library.
1575 * configure: Rebuild.
1577 2012-11-12 Ian Lance Taylor <iant@google.com>
1578 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579 Gerald Pfeifer <gerald@pfeifer.com>
1581 * configure.ac: Check for getexecname.
1582 * fileline.c: #include <errno.h>. Define getexecname if not
1584 (fileline_initialize): Try to find the executable in a few
1586 * print.c (error_callback): Only print the filename if it came
1587 from the backtrace state.
1588 * configure, config.h.in: Rebuild.
1590 2012-10-29 Ian Lance Taylor <iant@google.com>
1592 * mmap.c (backtrace_vector_release): Correct last patch: add
1595 2012-10-29 Ian Lance Taylor <iant@google.com>
1597 * mmap.c (backtrace_vector_release): Make sure freed block is
1598 aligned on 8-byte boundary.
1600 2012-10-26 Ian Lance Taylor <iant@google.com>
1603 * posix.c (backtrace_open): Add does_not_exist parameter.
1604 * elf.c (phdr_callback): Do not warn if shared library could not
1606 * fileline.c (fileline_initialize): Update calls to
1608 * internal.h (backtrace_open): Update declaration.
1610 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1613 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1614 * configure: Regenerate.
1616 2012-10-24 Ian Lance Taylor <iant@google.com>
1619 * configure.ac: Check whether -funwind-tables option works.
1620 * configure: Rebuild.
1622 2012-10-11 Ian Lance Taylor <iant@google.com>
1624 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1625 * configure: Rebuild.
1627 2012-10-10 Ian Lance Taylor <iant@google.com>
1629 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1632 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1634 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1636 2012-10-09 Ian Lance Taylor <iant@google.com>
1638 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1639 (backtrace_dwarf_add): Likewise.
1641 2012-10-09 Ian Lance Taylor <iant@google.com>
1643 Add support for tracing through shared libraries.
1644 * configure.ac: Check for link.h and dl_iterate_phdr.
1645 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1646 ELF macros before #defining them.
1647 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1649 (struct elf_syminfo_data): Add next field.
1650 (elf_initialize_syminfo): Initialize next field.
1651 (elf_add_syminfo_data): New static function.
1652 (elf_add): New static function, broken out of
1653 backtrace_initialize. Call backtrace_dwarf_add instead of
1654 backtrace_dwarf_initialize.
1655 (struct phdr_data): Define.
1656 (phdr_callback): New static function.
1657 (backtrace_initialize): Call elf_add.
1658 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1659 (add_unit_addr): Add base_address parameter. Change all callers.
1660 (add_unit_ranges, build_address_map): Likewise.
1661 (add_line): Add ddata parameter. Change all callers.
1662 (read_line_program, add_function_range): Likewise.
1663 (dwarf_lookup_pc): New static function, broken out of
1665 (dwarf_fileline): Call dwarf_lookup_pc.
1666 (build_dwarf_data): New static function.
1667 (backtrace_dwarf_add): New function.
1668 (backtrace_dwarf_initialize): Remove.
1669 * internal.h (backtrace_dwarf_initialize): Don't declare.
1670 (backtrace_dwarf_add): Declare.
1671 * configure, config.h.in: Rebuild.
1673 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1675 * btest.c (f23): Avoid uninitialized variable warning.
1677 2012-10-04 Ian Lance Taylor <iant@google.com>
1679 * dwarf.c: If the system header files do not declare strnlen,
1680 provide our own version.
1682 2012-10-03 Ian Lance Taylor <iant@google.com>
1684 * dwarf.c (read_uleb128): Fix overflow test.
1685 (read_sleb128): Likewise.
1686 (build_address_map): Don't change unit_buf.start.
1688 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1691 * configure.ac (EXTRA_FLAGS): New.
1692 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1693 * configure, Makefile.in: Regenerate.
1695 2012-09-29 Ian Lance Taylor <iant@google.com>
1698 * fileline.c (fileline_initialize): Pass errnum as -1 when
1699 reporting that we could not read executable information after a
1702 2012-09-27 Ian Lance Taylor <iant@google.com>
1705 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1706 * Makefile.am: Add dependencies for all objects.
1707 * configure, aclocal.m4, Makefile.in: Rebuild.
1709 2012-09-27 Ian Lance Taylor <iant@google.com>
1712 * elf.c (backtrace_initialize): Set *fileln_fn, not
1715 2012-09-19 Ian Lance Taylor <iant@google.com>
1717 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1718 as a target library.
1719 * configure: Rebuild.
1721 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1722 Ian Lance Taylor <iant@google.com>
1724 * configure.ac (GCC_HEADER_STDINT): Invoke.
1725 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1726 * btest.c: Don't include <stdint.h>.
1727 * dwarf.c: Likewise.
1728 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1730 2012-09-18 Ian Lance Taylor <iant@google.com>
1733 * Makefile.am (AM_CPPFLAGS): Define.
1734 (AM_CFLAGS): Remove -I options.
1735 * Makefile.in: Rebuild.
1737 2012-09-18 Ian Lance Taylor <iant@google.com>
1739 * posix.c (O_BINARY): Define if not defined.
1740 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1741 HAVE_FCNTL is defined.
1742 * configure.ac: Test for the fcntl function.
1743 * configure, config.h.in: Rebuild.
1745 2012-09-18 Ian Lance Taylor <iant@google.com>
1747 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1749 2012-09-18 Ian Lance Taylor <iant@google.com>
1751 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1753 2012-09-18 Ian Lance Taylor <iant@google.com>
1755 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1756 * mmapio.c: Don't define _GNU_SOURCE.
1757 * configure, config.h.in: Rebuild.
1759 2012-09-18 Ian Lance Taylor <iant@google.com>
1761 * configure.ac: Check whether strnlen is declared.
1762 * dwarf.c: Declare strnlen if not declared.
1763 * configure, config.h.in: Rebuild.
1765 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1767 * fileline.c: Include <stdlib.h>.
1770 2012-09-17 Ian Lance Taylor <iant@google.com>
1773 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1776 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1779 * nounwind.c (backtrace_simple): Add state parameter.
1781 2012-09-17 Ian Lance Taylor <iant@google.com>
1784 * unknown.c (unknown_fileline): Add state parameter, remove
1785 fileline_data parameter, name error_callback parameter.
1786 (backtrace_initialize): Add state parameter.
1788 2012-09-17 Ian Lance Taylor <iant@google.com>
1790 * Initial implementation.
1792 Copyright (C) 2012-2021 Free Software Foundation, Inc.
1794 Copying and distribution of this file, with or without modification,
1795 are permitted in any medium without royalty provided the copyright
1796 notice and this notice are preserved.