1 2022-04-05 Ian Lance Taylor <iant@golang.org>
3 * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in
6 2022-02-17 Ian Lance Taylor <iant@golang.org>
8 * dwarf.c (find_address_ranges): Handle skeleton units.
9 (read_function_entry): Likewise.
11 2022-02-16 Ian Lance Taylor <iant@golang.org>
13 * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit.
15 2022-02-03 David Seifert <soap@gentoo.org>
16 Jakub Jelinek <jakub@redhat.com>
18 * configure.ac: Support --disable-werror.
19 * configure: Regenerate.
21 2021-12-28 Francois-Xavier Coudert <fxcoudert@gmail.com>
23 PR libbacktrace/103822
24 * Makefile.am: Fix newline.
25 * Makefile.in: Regenerate.
27 2021-11-12 Martin Liska <mliska@suse.cz>
29 PR libbacktrace/103167
30 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
31 (elf_uncompress_lzma): Likewise.
32 * xztest.c (test_samples): memcpy only if v > 0.
34 2021-10-22 Martin Liska <mliska@suse.cz>
37 * btest.c (MIN_DESCRIPTOR): New.
38 (MAX_DESCRIPTOR): Likewise.
39 (check_available_files): Likewise.
40 (check_open_files): Check only file descriptors that
41 were not available at the entry.
42 (main): Call check_available_files.
44 2021-08-13 Sergei Trofimovich <siarheit@google.com>
46 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
49 2021-06-28 Clément Chigot <clement.chigot@atos.net>
51 * xcoff.c (SSUBTYP_DWRNGES): New define.
52 (xcoff_add): Use correct XCOFF DWARF section subtype
53 for DEBUG_RANGES. Remove lineoff workaround.
55 (xcoff_initialize_syminfo): Adapt to new base_address.
56 (xcoff_lookup_pc): Likewise.
57 (xcoff_initialize_fileline): Likewise.
59 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
62 * configure: Regenerated.
64 2021-03-03 Ian Lance Taylor <iant@golang.org>
66 * dwarf.c (read_line_program): Don't special case file 0.
67 (read_function_entry): Likewise.
69 2021-03-02 Ian Lance Taylor <iant@golang.org>
72 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
74 * backtrace.h: Update backtrace_error_callback comment.
76 2021-02-12 Ian Lance Taylor <iant@golang.org>
78 * configure.ac: Check for objcopy --add-gnu-debuglink by using
80 * configure: Regenerate
82 2021-01-18 Ian Lance Taylor <iant@golang.org>
84 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
85 * Makefile.in: Regenerate.
86 * configure: Regenerate.
88 2021-01-18 Ian Lance Taylor <iant@golang.org>
91 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
93 (read_line_program): Remove parameter u, change caller. Don't
94 subtract one from dirs and filenames index.
95 (read_function_entry): Don't subtract one from filenames index.
97 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
99 * configure: Re-generate.
101 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
104 * configure: Regenerate.
106 2020-12-02 Ian Lance Taylor <iant@golang.org>
108 * dwarf.c (resolve_string): Use > rather than >= to check whether
109 string index extends past buffer.
110 (resolve_addr_index): Similarly for address index.
112 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
114 * configure: Regenerate.
116 2020-10-20 Ian Lance Taylor <iant@golang.org>
118 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
119 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
121 2020-09-28 Ian Lance Taylor <iant@golang.org>
123 PR libbacktrace/97082
124 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
125 * Makefile.in: Regenerate.
127 2020-09-28 Ian Lance Taylor <iant@golang.org>
129 PR libbacktrace/97227
130 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
131 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
132 * configure: Regenerate.
133 * Makefile.in: Regenerate.
135 2020-09-23 Ian Lance Taylor <iant@golang.org>
137 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
139 (dwarf_lookup_pc): Likewise.
141 2020-09-17 Ian Lance Taylor <iant@golang.org>
143 PR libbacktrace/97080
144 * fileline.c (backtrace_syminfo_to_full_callback): New function.
145 (backtrace_syminfo_to_full_error_callback): New function.
146 * elf.c (elf_nodebug): Call syminfo_fn if possible.
147 * internal.h (struct backtrace_call_full): Define.
148 (backtrace_syminfo_to_full_callback): Declare.
149 (backtrace_syminfo_to_full_error_callback): Declare.
150 * mtest.c (f3): Only check all[i] if data.index permits.
152 2020-09-16 Iain Sandoe <iain@sandoe.co.uk>
154 * macho.c (MACH_O_CPU_TYPE_PPC): New.
155 (MACH_O_CPU_TYPE_PPC64): New.
156 Add compile-tests for powerpc to the Mach-O variants.
158 2020-09-14 Ian Lance Taylor <iant@golang.org>
160 PR libbacktrace/93608
161 Add support for MiniDebugInfo.
162 * elf.c (struct elf_view): Define. Replace most uses of
163 backtrace_view with elf_view.
164 (elf_get_view): New static functions. Replace most calls of
165 backtrace_get_view with elf_get_view.
166 (elf_release_view): New static functions. Replace most calls of
167 backtrace_release_view with elf_release_view.
168 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
170 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
171 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
172 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
173 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
174 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
175 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
176 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
177 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
178 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
179 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
180 (LZMA_PROB_DIST_ALIGN_LEN): Define.
181 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
182 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
183 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
184 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
185 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
186 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
187 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
188 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
189 (LZMA_PROB_REP_LEN_MID_LEN): Define.
190 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
191 (LZMA_PROB_LITERAL_LEN): Define.
192 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
193 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
194 (LZMA_PROB_IS_REP2_OFFSET): Define.
195 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
196 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
197 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
198 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
199 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
200 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
201 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
202 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
203 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
204 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
205 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
206 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
207 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
208 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
209 (LZMA_PROB_LITERAL_OFFSET): Define.
210 (LZMA_PROB_TOTAL_COUNT): Define.
211 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
212 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
213 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
214 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
215 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
216 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
217 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
218 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
219 (elf_lzma_varint): New static function.
220 (elf_lzma_range_normalize): New static function.
221 (elf_lzma_bit, elf_lzma_integer): New static functions.
222 (elf_lzma_reverse_integer): New static function.
223 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
224 (elf_uncompress_lzma): New static function.
225 (backtrace_uncompress_lzma): New function.
226 (elf_add): Add memory and memory_size parameters. Change all
227 callers. Look for .gnu_debugdata section, and, if found,
228 decompress it and use it for symbols and debug info. Permit the
229 descriptor parameter to be -1.
230 * internal.h (backtrace_uncompress_lzma): Declare.
232 * xztest.c: New file.
233 * configure.ac: Check for nm, xz, and comm programs. Check for
235 (HAVE_MINIDEBUG): Define.
236 * Makefile.am (mtest_SOURCES): Define.
237 (mtest_CFLAGS, mtest_LDADD): Define.
238 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
239 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
240 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
241 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
242 (xztest_alloc_LDADD): Define.
243 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
244 (CLEANFILES): Add files created by minidebug pattern.
245 (btest.lo): Correct INCDIR reference.
246 (mtest.lo, xztest.lo, ztest.lo): New targets.
247 * configure: Regenerate.
248 * config.h.in: Regenerate.
249 * Makefile.in: Regenerate.
251 2020-09-09 Ian Lance Taylor <iant@golang.org>
253 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
254 (coff_add): Determine and pass is_64.
256 2020-09-09 Ian Lance Taylor <iant@golang.org>
258 PR libbacktrace/96973
259 * fileline.c (macho_get_executable_path): New static function.
260 (fileline_initialize): Call macho_get_executable_path.
262 2020-09-09 Ian Lance Taylor <iant@golang.org>
264 * dwarf.c (function_addrs_search): Compare against the next entry
265 low address, not the high address.
266 (unit_addrs_search): Likewise.
267 (build_address_map): Add a trailing unit_addrs.
268 (read_function_entry): Add a trailing function_addrs.
269 (read_function_info): Likewise.
270 (report_inlined_functions): Search backward for function_addrs
272 (dwarf_lookup_pc): Search backward for unit_addrs and
273 function_addrs matches.
275 2020-09-08 Ian Lance Taylor <iant@golang.org>
277 * simple.c (simple_unwind): Correct comment spelling.
279 2020-09-08 Ian Lance Taylor <iant@golang.org>
281 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
282 correct length when freeing diralc.
284 2020-09-08 Ian Lance Taylor <iant@golang.org>
286 PR libbacktrace/96973
287 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
289 2020-09-08 Ian Lance Taylor <iant@golang.org>
291 PR libbacktrace/96971
292 * filetype.awk: Only match magic number at start of line.
294 2020-08-24 Ian Lance Taylor <iant@golang.org>
296 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
297 (MACH_O_MH_CIGAM_FAT_64): Define.
298 (struct macho_fat_arch_64): Define.
299 (macho_add_fat): Add and use is_64 parameter.
300 (macho_add): Recognize 64-bit fat files.
302 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
305 * configure: Regenerated.
307 2020-07-08 Ian Lance Taylor <iant@golang.org>
309 * configure.ac: Test linker support for DWARF5
310 * configure: Regenerate
312 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
315 * configure: Regenerated.
317 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
320 * configure: Regenerated.
322 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
324 * configure: Regenerated.
326 2020-05-13 Ian Lance Taylor <iant@golang.org>
328 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
330 2020-05-13 Ian Lance Taylor <iant@golang.org>
333 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
335 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
337 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
338 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
339 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
341 * Makefile.in: Regenerated.
342 * configure: Likewise.
344 2020-05-11 Ian Lance Taylor <iant@golang.org>
346 PR libbacktrace/95012
347 * configure.ac: Check for getpagesize declaration.
348 * mmap.c: Declare getpagesize if necessary.
349 * mmapio.c: Likewise.
350 * configure: Regenerate.
351 * config.h.in: Regenerate.
352 * Makefile.in: Regenerate.
354 2020-05-09 Roland McGrath <mcgrathr@google.com>
356 * elf.c (elf_add): Bail early if there are no section headers at all.
358 2020-05-09 Ian Lance Taylor <iant@golang.org>
360 * elf.c (elf_add): Don't free strtab if an error occurs after
361 recording symbol information.
363 2020-05-09 Ian Lance Taylor <iant@golang.org>
365 PR libbacktrace/88745
367 * filetype.awk: Recognize Mach-O files.
368 * Makefile.am (FORMAT_FILES): Add macho.c.
369 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
370 (%.dSYM): New pattern target.
371 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
372 (test_macho_LDADD): New target.
373 (BUILDTESTS): Add test_macho.
374 (macho.lo): Add dependencies.
375 * configure.ac: Recognize macho file type. Check for
376 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
377 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
378 * Makefile.in: Regenerate.
379 * configure: Regenerate.
380 * config.h.in: Regenerate.
382 2020-05-09 Ian Lance Taylor <iant@golang.org>
384 * read.c (backtrace_get_view): Support short read.
386 2020-05-09 Ian Lance Taylor <iant@golang.org>
388 * elf.c (elf_add): If debug sections are very large or far apart,
389 read them individually rather than as a single view.
391 2020-05-08 Ian Lance Taylor <iant@golang.org>
393 * fileline.c (sysctl_exec_name): New static function.
394 (sysctl_exec_name1): New macro or static function.
395 (sysctl_exec_name2): Likewise.
396 (fileline_initialize): Try sysctl_exec_name[12].
397 * configure.ac: Check for sysctl args to fetch executable name.
398 * configure: Regenerate.
399 * config.h.in: Regenerate.
401 2020-02-15 Ian Lance Taylor <iant@golang.org>
403 * ztest.c (test_large): Update file to current libgo test file.
405 2020-02-03 Ian Lance Taylor <iant@golang.org>
407 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
408 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
409 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
410 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
411 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
412 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
413 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
414 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
415 (stest_alloc_CFLAGS): Likewise.
416 * Makefile.in: Regenerate.
417 * ztest.c (error_callback_compress): Mark vdata unused.
418 (test_large): Add casts to avoid warnings.
420 2020-01-01 Jakub Jelinek <jakub@redhat.com>
422 Update copyright years.
424 2019-12-13 Ian Lance Taylor <iant@golang.org>
427 * dwarf.c (struct attr): Add val field.
428 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
429 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
430 (struct line_header): Add addrsize field.
431 (struct line_header_format): Define.
432 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
434 (read_uint24): New static function.
435 (read_attribute): Add implicit_val parameter. Replace dwarf_str
436 and dwarf_str_size parameters with dwarf_sections parameter. Add
437 support for new DWARF 5 forms. Change all callers.
438 (resolve_string): New static function.
439 (resolve_addr_index): Likewise.
440 (read_abbrevs): Support DW_FORM_implicit_const.
441 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
442 and ranges_is_index fields.
443 (update_pcrange): Support DWARF 5 encodings.
444 (add_high_low_range): New static function, split out of
446 (add_ranges_from_ranges): Likewise.
447 (add_ranges_from_rnglists): New static function.
448 (add_ranges): Just call new helper functions.
449 (find_address_ranges): Use resolve_string for strings, after
450 reading all attributes. Handle new DWARF 5 attributes.
451 (build_address_map): Support DWARF 5 compilation units.
452 (read_v2_paths): New static function, split out of
454 (read_lnct): New static function.
455 (read_line_header_format_entries): Likewise.
456 (read_line_header): Add ddata parameter. Support DWARF 5 line
457 headers. Call new helper functions. Change all callers.
458 (read_line_program): Use addrsize from line program header. Don't
459 special case directory index 0 for DWARF 5.
460 (read_referenced_name): Use resolve_string.
461 (read_function_entry): Handle DWARF 5 encodings. Use
463 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
464 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
465 * elf.c (dwarf_section_names): Add new section names.
466 * pecoff.c (dwarf_section_names): Likewise.
467 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
469 * configure.ac: Define HAVE_DWARF5 automake conditional.
470 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
471 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
472 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
473 (dwarf5_alloc_LDADD): Likewise.
474 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
475 (CLEANFILES, clean-local): Define.
477 2019-12-08 Ian Lance Taylor <iant@golang.org>
479 * dwarf.c (struct pcrange): Define.
480 (update_pcrange, add_ranges): New static functions.
481 (add_unit_addr): Change signature to work with add_ranges. Don't
482 add base_address here.
483 (add_unit_ranges): Remove.
484 (find_address_ranges): Replace str/ranges parameters with
485 dwarf_sections. Use update_pcrange and add_ranges. Change all
487 (add_function_range): Change signature to work with add_ranges.
488 Don't add base_address here.
489 (add_function_ranges): Remove.
490 (read_function_entry): Use update_pcrange and add_ranges.
492 2019-12-04 Ian Lance Taylor <iant@golang.org>
494 * edtest.c (test1): Add noclone attribute.
496 2019-12-04 Ian Lance Taylor <iant@golang.org>
498 * internal.h (enum dwarf_section): Define.
499 (struct dwarf_sections): Define.
500 (backtrace_dwarf_add): Update declaration to replace specific
501 section parameters with dwarf_sections parameter.
502 * dwarf.c (struct dwarf_data): Replace specific section fields
503 with dwarf_sections field.
504 (read_attribute): Use dwarf_sections with altlink.
505 (build_address_map): Replace specific section parameters with
506 dwarf_sections parameter. Change all callers.
507 (read_line_info): Use dwarf_sections with ddata.
508 (read_referenced_name): Likewise.
509 (add_function_ranges): Likewise.
510 (read_function_entry): Likewise.
511 (read_function_info): Likewise.
512 (build_dwarf_data): Replace specific section parameters with
513 dwarf_sections parameter. Change all callers.
514 (backtrace_dwarf_add): Likewise.
515 * elf.c (enum debug_section): Remove.
516 (dwarf_section_names): Remove .zdebug names.
517 (elf_add): Track zsections separately. Build dwarf_sections.
518 * pecoff.c (enum debug_section): Remove.
519 (struct debug_section_info): Remove data field.
520 (coff_add): Build dwarf_sections.
521 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
522 references with DEBUG_xxx references.
523 (xcoff_add): Build dwarf_sections.
525 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
527 * configure: Regenerate.
529 2019-09-26 Ian Lance Taylor <iant@golang.org>
531 PR libbacktrace/91908
532 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
533 __sync_bool_compare_and_swap to void.
534 * xcoff.c (backtrace_initialize): Likewise.
536 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
538 * configure.ac: Remove references to spu.
539 * configure: Regenerate.
541 2019-05-24 Clement Chigot <clement.chigot@atos.net>
543 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
545 * Makefile.in: Regenerate.
547 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
549 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
551 * configure: Regenerate.
553 2019-03-11 Ian Lance Taylor <iant@golang.org>
555 PR libbacktrace/89669
556 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
558 * Makefile.in: Regenerate.
560 2019-02-26 Tom de Vries <tdevries@suse.de>
562 * btest.c (test5): Allow global.* as minimal symbol name for global.
564 2019-02-26 Tom de Vries <tdevries@suse.de>
566 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
567 * Makefile.in: Regenerate.
569 2019-02-12 Tom de Vries <tdevries@suse.de>
571 PR libbacktrace/81983
572 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
574 2019-02-10 Tom de Vries <tdevries@suse.de>
576 * Makefile.am (BUILDTESTS): Add btest_lto.
577 * Makefile.in: Regenerate.
578 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
579 __attribute__((noclone)).
581 2019-02-08 Tom de Vries <tdevries@suse.de>
583 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
584 * print.c (backtrace_print): Same.
585 * simple.c (backtrace_simple): Same.
587 2019-02-08 Tom de Vries <tdevries@suse.de>
589 PR libbacktrace/78063
590 * dwarf.c (build_address_map): Keep all parsed units.
591 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
593 2019-01-31 Tom de Vries <tdevries@suse.de>
595 PR libbacktrace/89136
596 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
597 'debugaltlink_name_len =+ 1'.
599 2019-01-29 Tom de Vries <tdevries@suse.de>
601 * install-debuginfo-for-buildid.sh.in: New script.
602 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
603 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
604 * Makefile.in: Regenerate.
605 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
606 (READELF): Set with AC_CHECK_PROG.
607 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
608 * configure: Regenerate.
609 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
610 (elf_open_debugfile_by_buildid): ... here.
612 2019-01-29 Tom de Vries <tdevries@suse.de>
614 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
616 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
617 (check_PROGRAMS): Add BUILDTESTS.
618 * Makefile.in: Regenerate.
620 2019-01-28 Tom de Vries <tdevries@suse.de>
622 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
623 Use $< to access prerequisite.
624 * Makefile.in: Regenerate.
626 2019-01-25 Nathan Sidwell <nathan@acm.org>
628 * elf.c (elf_add): Pass "" filename to recursive call with
631 2019-01-25 Tom de Vries <tdevries@suse.de>
633 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
635 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
636 * Makefile.in: Regenerate.
638 2019-01-25 Tom de Vries <tdevries@suse.de>
640 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
641 (TESTS): Rename dtest to btest_gnudebuglink.
642 * Makefile.in: Regenerate.
644 2019-01-23 Tom de Vries <tdevries@suse.de>
646 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
647 (units_search, find_unit): Use size_t for offset.
648 (build_address_map): Use size_t for unit_offset.
650 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
652 * allocfail.c (main): Increase portability of printf statement.
654 2019-01-18 Ian Lance Taylor <iant@golang.org>
656 PR libbacktrace/88890
657 * mmapio.c (backtrace_get_view): Change size parameter to
658 uint64_t. Check that value fits in size_t.
659 * read.c (backtrace_get_view): Likewise.
660 * internal.h (backtrace_get_view): Update declaration.
661 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
663 2019-01-17 Tom de Vries <tdevries@suse.de>
665 PR libbacktrace/82857
666 * configure.ac (DWZ): Set with AC_CHECK_PROG.
667 (HAVE_DWZ): Set with AM_CONDITIONAL.
668 * configure: Regenerate.
669 * Makefile.am (TESTS): Add btest_dwz.
670 * Makefile.in: Regenerate.
672 2019-01-17 Tom de Vries <tdevries@suse.de>
674 PR libbacktrace/82857
675 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
676 (read_attribute): Handle DW_FORM_GNU_ref_alt using
677 ATTR_VAL_REF_ALT_INFO.
678 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
680 2019-01-17 Tom de Vries <tdevries@suse.de>
682 * dwarf.c (struct unit): Add low_offset and high_offset fields.
683 (struct unit_vector): New type.
684 (struct dwarf_data): Add units and units_counts fields.
685 (find_unit): New function.
686 (find_address_ranges): Add and handle unit_tag parameter.
687 (build_address_map): Add and handle units_vec parameter.
688 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
691 2019-01-17 Tom de Vries <tdevries@suse.de>
693 PR libbacktrace/82857
694 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
697 2019-01-17 Tom de Vries <tdevries@suse.de>
699 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
700 (read_attribute): Add altlink parameter. Handle missing altlink for
701 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
702 (find_address_ranges, build_address_map, build_dwarf_data): Add and
703 handle altlink parameter.
704 (read_referenced_name, read_function_entry): Add argument to
707 2019-01-17 Tom de Vries <tdevries@suse.de>
709 * dwarf.c (struct dwarf_data): Add altlink field.
710 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
711 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
712 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
713 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
714 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
715 * xcoff.c (xcoff_add): Same.
717 2019-01-17 Tom de Vries <tdevries@suse.de>
719 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
720 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
721 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
722 argument to backtrace_dwarf_add call.
723 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
724 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
725 * xcoff.c (xcoff_add): Same.
727 2019-01-17 Tom de Vries <tdevries@suse.de>
729 * elf.c (elf_add): Add and handle with_buildid_data and
730 with_buildid_size parameters. Handle .gnu_debugaltlink section.
731 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
733 2019-01-16 Tom de Vries <tdevries@suse.de>
735 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
737 (read_referenced_name): ... here, and ...
738 (read_function_entry): ... here.
740 2019-01-16 Tom de Vries <tdevries@suse.de>
742 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
744 (read_function_entry): Same. Don't allow name found via
745 DW_AT_abstract_origin or case DW_AT_specification to override linkage
748 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
752 * backtrace.h: Mechanically replace "can not" with "cannot".
754 2019-01-01 Jakub Jelinek <jakub@redhat.com>
756 Update copyright years.
758 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
760 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
762 * Makefile.in: Regenerate.
764 2018-12-28 Tom de Vries <tdevries@suse.de>
766 * dwarf.c (build_address_map): Reuse unused units.
768 2018-12-28 Tom de Vries <tdevries@suse.de>
770 * dwarf.c (build_address_map): Simplify by removing local variable
773 2018-12-28 Ian Lance Taylor <iant@golang.org>
774 Tom de Vries <tdevries@suse.de>
776 PR libbacktrace/88063
777 * dwarf.c (free_unit_addrs_vector): Remove.
778 (build_address_map): Keep track of allocated units in vector. Free
779 allocated units and corresponding abbrevs upon failure. Remove now
780 redundant call to free_unit_addrs_vector. Free addrs vector upon
781 failure. Free allocated unit vector.
783 2018-12-28 Tom de Vries <tdevries@suse.de>
785 * dwarf.c (build_address_map): Free addrs vector upon failure.
787 2018-12-14 Tom de Vries <tdevries@suse.de>
790 * allocfail.sh: Remove "set -o pipefail".
792 2018-12-12 Tom de Vries <tdevries@suse.de>
794 * Makefile.am (TESTS): Add allocfail.sh.
795 (check_PROGRAMS): Add allocfail.
796 * Makefile.in: Regenerate.
797 * instrumented_alloc.c: New file. Redefine malloc and realloc.
799 * allocfail.c: New file.
800 * allocfail.sh: New file.
802 2018-11-30 Tom de Vries <tdevries@suse.de>
804 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
805 test_xcoff_64, test_pecoff and test_unknown.
806 * Makefile.in: Regenerate.
807 * test_format.c: New file.
809 2018-11-30 Tom de Vries <tdevries@suse.de>
811 * Makefile.am : Add _with_alloc version for each test in
813 * Makefile.in: Regenerate.
815 2018-11-30 Tom de Vries <tdevries@suse.de>
817 * internal.h (backtrace_vector_free): New static inline fuction,
819 * dwarf.c (read_line_info): ... here.
821 2018-11-28 Tom de Vries <tdevries@suse.de>
823 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
826 2018-11-27 Tom de Vries <tdevries@suse.de>
828 * mmap.c (backtrace_vector_release): Same.
829 * unittest.c (test1): Add check.
831 2018-11-27 Tom de Vries <tdevries@suse.de>
833 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
835 * Makefile.am (check_PROGRAMS): Add unittest.
836 * Makefile.in: Regenerate.
837 * unittest.c: New file.
839 2018-11-22 Tom de Vries <tdevries@suse.de>
841 * dwarf.c (read_initial_length): Factor out of ...
842 (build_address_map, read_line_info): ... here.
844 2018-11-21 Tom de Vries <tdevries@suse.de>
846 * dwarf.c (read_string): Factor out of ...
847 (read_attribute, read_line_header, read_line_program): ... here.
849 2018-10-31 Joseph Myers <joseph@codesourcery.com>
852 * Makefile.am: Include multilib.am.
853 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
854 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
856 2018-10-05 Ian Lance Taylor <iant@golang.org>
858 PR libbacktrace/87529
859 * backtrace.h: Document that backtrace_create_state should be
862 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
864 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
865 * Makefile.in: Regenerate.
866 * config.h.in: Likewise.
867 * configure: Likewise.
869 2018-08-01 Tony Reix <tony.reix@atos.net>
871 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
872 (struct xcoff_func, struct xcoff_func_vector): New structs.
873 (xcoff_syminfo): Drop leading dot from symbol name.
874 (xcoff_line_compare, xcoff_line_search): Remove.
875 (xcoff_func_compare, xcoff_func_search): New static functions.
876 (xcoff_lookup_pc): Search function table.
877 (xcoff_add_line, xcoff_process_linenos): Remove.
878 (xcoff_initialize_fileline): Build function table.
880 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
883 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
884 checking up to 36 bytes.
886 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
888 * configure: Regenerated.
890 2018-04-19 Jakub Jelinek <jakub@redhat.com>
892 * configure: Regenerated.
894 2018-04-17 Ian Lance Taylor <iant@golang.org>
896 * backtrace.c: Revert last two changes. Don't call mmap
899 2018-04-17 Ian Lance Taylor <iant@golang.org>
901 * backtrace.c: Include backtrace-supported.h before checking
902 BACKTRACE_USES_MALLOC.
904 2018-04-17 Ian Lance Taylor <iant@golang.org>
906 * backtrace.c (backtrace_full): When testing whether we can
907 allocate memory, call mmap directly, and munmap the memory.
909 2018-04-04 Jakub Jelinek <jakub@redhat.com>
912 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
913 big endian, only use 32-bit loads if endianity macros are predefined
914 and indicate big or little endian.
916 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
919 * configure: Regenerate.
921 2018-02-15 Jakub Jelinek <jakub@redhat.com>
924 * elf.c (SHT_PROGBITS): Undefine and define.
926 2018-02-14 Jakub Jelinek <jakub@redhat.com>
929 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
930 (struct elf_ppc64_opd_data): New type.
931 (elf_initialize_syminfo): Add opd argument, handle symbols
932 pointing into the PowerPC64 ELFv1 .opd section.
933 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
934 to structure with .opd data to elf_initialize_syminfo.
936 2018-01-31 Ian Lance Taylor <iant@golang.org>
938 * elf.c (elf_add): Close descriptor if we use a debugfile.
939 * btest.c (check_open_files): New static function.
940 (main): Call check_open_files.
942 2018-01-25 Ian Lance Taylor <iant@golang.org>
944 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
946 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
948 2018-01-25 Ian Lance Taylor <iant@golang.org>
950 * pecoff.c (coff_add): Only release syms_view if it is valid.
952 2018-01-25 Ian Lance Taylor <iant@golang.org>
954 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
956 2018-01-24 Ian Lance Taylor <iant@golang.org>
958 * pecoff.c (coff_add): Use coff_read4, not memcpy.
960 2018-01-24 Ian Lance Taylor <iant@golang.org>
963 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
966 2018-01-19 Tony Reix <tony.reix@atos.net>
968 * xcoff.c (xcoff_incl_compare): New function.
969 (xcoff_incl_search): New function.
970 (xcoff_process_linenos): Use bsearch to find include file.
971 (xcoff_initialize_fileline): Sort include file information.
973 2018-01-16 Ian Lance Taylor <iant@golang.org>
975 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
977 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
978 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
979 (elf_zlib_default_table): Update.
980 (elf_zlib_default_dist_table): New static array.
981 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
983 * ztest.c (struct zlib_test): Add uncompressed_len.
984 (tests): Initialize uncompressed_len field. Add new test case.
985 (test_samples): Use uncompressed_len field.
987 2018-01-03 Jakub Jelinek <jakub@redhat.com>
989 Update copyright years.
991 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
993 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
994 * aclocal.m4: Regenerate.
995 * Makefile.in: Likewise.
996 * configure: Likewise.
998 2017-10-06 Ian Lance Taylor <iant@golang.org>
1000 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
1001 zlib uncompress function.
1003 2017-10-05 Ian Lance Taylor <iant@golang.org>
1005 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
1006 Read a four byte integer.
1007 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
1008 boundary before ever calling elf_zlib_fetch.
1009 * ztest.c (test_large): Simplify print statements a bit.
1011 2017-10-02 Ian Lance Taylor <iant@golang.org>
1013 * ztest.c: #include <errno.h>.
1014 (TEST_TIMING): Don't define, don't test.
1015 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
1016 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
1017 (ZLIB_CLOCK_GETTIME_ARG): Define.
1018 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
1019 * Makefile.am: Likewise.
1020 * configure, Makefile.in: Rebuild.
1022 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
1025 * Makefile.am: Append the content of clock_gettime_link to
1027 * configure.ac: Test for the case that clock_gettime is in librt.
1028 * Makefile.in: Regenerate.
1029 * configure: Likewise.
1032 * configure.ac: Check for clock_gettime.
1033 * config.h.in: Regenerate.
1034 * configure: Likewise.
1035 * ztest.c (average_time, test_large): Conditionalize test timing
1036 on clock_gettime availability.
1038 2017-09-29 Tony Reix <tony.reix@atos.net>
1040 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1041 (STYP_DWARF, SSUBTYP_DW*): Define.
1042 (enum dwarf_section): Define.
1043 (struct dwsect_info): Define.
1044 (xcoff_add): Look for DWARF sections, pass them to
1045 backtrace_dwarf_add.
1047 2017-09-28 Ian Lance Taylor <iant@golang.org>
1050 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1052 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1053 (b_elf_chdr): Define type.
1054 (enum debug_section): Add ZDEBUG_xxx values.
1055 (debug_section_names): Add names for new sections.
1056 (struct debug_section_info): Add compressed field.
1057 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1058 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1059 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1060 (HUFFMAN_SECONDARY_SHIFT): Define.
1061 (ZDEBUG_TABLE_SIZE): Define.
1062 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1063 (final_next_secondary): New static variable if
1064 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1065 (elf_zlib_inflate_table): New static function.
1066 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1067 function to produce fixed Huffman table.
1068 (elf_zlib_default_table): New static variable.
1069 (elf_zlib_inflate): New static function.
1070 (elf_zlib_verify_checksum): Likewise.
1071 (elf_zlib_inflate_and_verify): Likewise.
1072 (elf_uncompress_zdebug): Likewise.
1073 (elf_uncompress_chdr): Likewise.
1074 (backtrace_uncompress_zdebug): New extern function.
1075 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1076 sections, and uncompress them.
1077 * internal.h (backtrace_compress_zdebug): Declare.
1078 * ztest.c: New file.
1079 * configure.ac: Check for -lz and check whether the linker
1080 supports --compress-debug-sections.
1081 * Makefile.am (ztest_SOURCES): New variable.
1082 (ztest_CFLAGS, ztest_LDADD): New variables.
1083 (check_PROGRAMS): Add ztest.
1084 (ctestg_SOURCES): New variable.
1085 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1086 (ctesta_SOURCES): New variable.
1087 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1088 (check_PROGRAMS): Add ctestg and ctesta.
1089 * configure, config.h.in, Makefile.in: Rebuild.
1091 2017-09-22 Ian Lance Taylor <iant@golang.org>
1094 * configure.ac: Check for lstat and readlink.
1095 * elf.c (lstat, readlink): Provide dummy versions if real versions
1097 * configure, config.h.in: Rebuild.
1099 2017-09-21 Ian Lance Taylor <iant@google.com>
1102 * elf.c (backtrace_initialize): Set pd.exe_filename.
1104 2017-09-20 Ian Lance Taylor <iant@golang.org>
1105 Denis Khalikov <d.khalikov@partner.samsung.com>
1108 Support for external debug info.
1109 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1110 (S_ISLNK): Define if not defined.
1111 (xstrnlen): Define if strnlen is not available.
1112 (b_elf_note): Define type.
1113 (NT_GNU_BUILD_ID): Define macro.
1114 (elf_crc32, elf_crc32_file): New static functions.
1115 (elf_is_symlink, elf_readlink): New static functions.
1116 (elf_open_debugfile_by_buildid): New static function.
1117 (elf_try_debugfile): New static function.
1118 (elf_find_debugfile_by_debuglink): New static function.
1119 (elf_open_debugfile_by_debuglink): New static function.
1120 (elf_add): Add filename and debuginfo parameters. Adjust all
1121 callers. Look for external debug info notes, and try to fetch
1122 debug info from external file.
1123 (struct phdr_data): Add exe_filename field.
1124 (phdr_callback): Pass filename to elf_add.
1125 (backtrace_initialize): Add filename parameter.
1126 * internal.h (backtrace_initialize): Add filename parameter.
1127 * fileline.c (fileline_initialize): Pass filename to
1128 backtrace_initialize.
1129 * pecoff.c (fileline_initialize): Add unused filename parameter.
1130 * unknown.c (fileline_initialize): Likewise.
1131 * xcoff.c (fileline_initialize): Likewise.
1132 * configure.ac: Check for objcopy --add-gnu-debuglink.
1133 * Makefile.am (dtest): New test target.
1134 * configure, Makefile.in: Rebuild.
1136 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1139 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1140 * Makefile.in: Regenerate.
1142 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1145 * libbacktrace/Makefile.in
1146 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1148 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
1151 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1153 2017-07-28 Tony Reix <tony.reix@atos.net>
1155 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1157 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1159 * fileline.c (fileline_initialize): Print pid_t as long.
1161 2017-07-26 Tony Reix <tony.reix@atos.net>
1163 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1164 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1165 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1166 * configure, config.h.in: Regenerate.
1168 2017-07-21 Tony Reix <tony.reix@atos.net>
1170 * filetype.awk: Add AIX XCOFF type detection.
1171 * configure.ac: Recognize xcoff format.
1172 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1173 * fileline.c: Include <unistd.h>.
1174 (fileline_initialize): Add case for AIX procfs.
1175 * xcoff.c: New file.
1176 * configure, Makefile.in: Rebuild.
1178 2017-06-21 Richard Biener <rguenther@suse.de>
1180 * configure.ac: Add AC_SYS_LARGEFILE.
1181 * config.h.in: Regenerate.
1182 * configure: Likewise.
1184 2017-06-11 Ian Lance Taylor <iant@golang.org>
1186 * elf.c (backtrace_initialize): Always set *fileline_fn.
1187 * ttest.c: New file.
1188 * btest.c: Move support functions into testlib.c. Change calls to
1189 check to pass file name.
1190 * testlib.c: New file, copied from (part of) btest.c.
1191 * testlib.h: New file, declarations for testlib.c.
1192 * edtest.c: Use testlib.h and testlib.c.
1193 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1194 * Makefile.am (btest_SOURCES): Add testlib.c.
1195 (edtest_SOURCES): Likewise.
1196 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1197 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1198 * configure, Makefile.in: Rebuild.
1200 2017-05-19 Than McIntosh <thanm@google.com>
1202 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1203 (read_line_header): Don't allocate dirs if dirs_count == 0.
1204 * edtest.c: New file.
1205 * edtest2.c: New file.
1206 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1207 (check_PROGRAMS): Add edtest.
1208 (edtest2_build.c, gen_edtest2_build): New targets.
1209 * Makefile.in: Rebuild.
1211 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1213 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1214 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1216 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1218 Update copyright years.
1220 2016-11-15 Matthias Klose <doko@ubuntu.com>
1222 * configure: Regenerate.
1224 2016-09-11 Carlos Liam <carlos@aarzee.me>
1226 * all: Remove meaningless trailing whitespace.
1228 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1231 * elf.c (phdr_callback) [__i386__]: Add
1232 __attribute__((__force_align_arg_pointer__)).
1234 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1236 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1237 avoid possible crash.
1238 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1239 missing debug info anymore.
1241 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
1243 * mmap.c (MAP_FAILED): Define if not defined.
1245 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1247 Update copyright years.
1249 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1251 * configure.ac: Specify that DJGPP do not have mmap
1252 even when sys/mman.h exists.
1253 * configure: Regenerate
1255 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1257 PR libgfortran/68115
1258 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1259 * configure: Regenerate.
1260 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1263 2015-09-17 Ian Lance Taylor <iant@google.com>
1265 * posix.c (backtrace_open): Cast second argument of open() to int.
1267 2015-09-11 Ian Lance Taylor <iant@google.com>
1269 * Makefile.am (backtrace.lo): Depend on internal.h.
1270 (sort.lo, stest.lo): Add explicit dependencies.
1271 * Makefile.in: Rebuild.
1273 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
1275 * backtrace.c: #include <sys/types.h>.
1277 2015-09-08 Ian Lance Taylor <iant@google.com>
1280 * backtrace.c: #include "internal.h".
1281 (struct backtrace_data): Add can_alloc field.
1282 (unwind): If can_alloc is false, don't try to get file/line
1284 (backtrace_full): Set can_alloc field in bdata.
1285 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1287 * mmap.c (backtrace_alloc): Likewise.
1288 * internal.h: Update comments for backtrace_alloc and
1291 2015-09-08 Ian Lance Taylor <iant@google.com>
1294 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1296 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1298 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1299 * configure: Regenerate.
1301 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1303 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1304 Remove setting PIC_FLAG when building as target library.
1305 * configure: Regenerate.
1307 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
1309 * configure.ac: Only compile with -fPIC if the target
1311 * configure: Regenerate.
1313 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1315 * configure.ac: Set have_mmap to no on spu-*-* targets.
1316 * configure: Regenerate.
1318 2015-08-13 Ian Lance Taylor <iant@google.com>
1320 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1323 2015-06-11 Martin Sebor <msebor@redhat.com>
1326 * dwarf.c (struct line): Add new field idx.
1327 (line_compare): Use it.
1329 (read_line_info): Reset it.
1331 2015-05-29 Tristan Gingold <gingold@adacore.com>
1333 * pecoff.c: New file.
1334 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1335 * Makefile.in: Regenerate.
1336 * filetype.awk: Detect pecoff.
1337 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1339 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1341 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1342 * configure: Regenerate.
1343 * pecoff.c: New file.
1345 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1347 * Makefile.in: Regenerated with automake-1.11.6.
1348 * aclocal.m4: Likewise.
1349 * configure: Likewise.
1351 2015-01-24 Matthias Klose <doko@ubuntu.com>
1353 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1354 * configure: Regenerate.
1356 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1358 Update copyright years.
1360 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1363 * configure: Regenerated.
1365 2014-11-11 David Malcolm <dmalcolm@redhat.com>
1367 * ChangeLog.jit: New.
1369 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1372 * configure: Regenerate.
1374 2014-10-23 Ian Lance Taylor <iant@google.com>
1376 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1377 Fix to return void *.
1379 2014-05-08 Ian Lance Taylor <iant@google.com>
1381 * mmap.c (backtrace_free): If freeing a large aligned block of
1382 memory, call munmap rather than holding onto it.
1383 (backtrace_vector_grow): When growing a vector, double the number
1384 of pages requested. When releasing the old version of a grown
1385 vector, pass the correct size to backtrace_free.
1387 2014-03-07 Ian Lance Taylor <iant@google.com>
1389 * sort.c (backtrace_qsort): Use middle element as pivot.
1391 2014-03-06 Ian Lance Taylor <iant@google.com>
1394 * stest.c: New file.
1395 * internal.h (backtrace_qsort): Declare.
1396 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1397 (read_line_info, read_function_entry): Likewise.
1398 (read_function_info, build_dwarf_data): Likewise.
1399 * elf.c (elf_initialize_syminfo): Likewise.
1400 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1401 (stest_SOURCES, stest_LDADD): Define.
1402 (check_PROGRAMS): Add stest.
1404 2014-02-07 Misty De Meo <misty@brew.sh>
1407 * configure.ac: Use AC_LINK_IFELSE in check for
1409 * configure: Regenerate.
1411 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1413 Update copyright years
1415 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1417 * elf.c (ET_DYN): Undefine and define again.
1418 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1419 return early -1 without closing the descriptor.
1420 (struct phdr_data): Add exe_descriptor.
1421 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1422 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1423 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1425 (backtrace_initialize): Adjust call to elf_add. If it returns
1426 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1428 2013-12-05 Ian Lance Taylor <iant@google.com>
1430 * alloc.c (backtrace_vector_finish): Add error_callback and data
1431 parameters. Call backtrace_vector_release. Return address base.
1432 * mmap.c (backtrace_vector_finish): Add error_callback and data
1433 parameters. Return address base.
1434 * dwarf.c (read_function_info): Get new address base from
1435 backtrace_vector_finish.
1436 * internal.h (backtrace_vector_finish): Update declaration.
1438 2013-11-27 Ian Lance Taylor <iant@google.com>
1440 * dwarf.c (find_address_ranges): New static function, broken out
1441 of build_address_map.
1442 (build_address_map): Call it.
1443 * btest.c (check): Check for missing filename or function, rather
1445 (f3): Check that enough frames were returned.
1447 2013-11-19 Jakub Jelinek <jakub@redhat.com>
1449 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1450 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1452 * btest.c (struct symdata): Add size field.
1453 (callback_three): Add symsize argument. Copy it to the data->size
1455 (f23): Set symdata.size to 0.
1456 (test5): Likewise. If sizeof (int) > 1, lookup address of
1457 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1460 * atomic.c: Include sys/types.h.
1462 2013-11-18 Ian Lance Taylor <iant@google.com>
1464 * configure.ac: Check for support of __atomic extensions.
1465 * internal.h: Declare or #define atomic functions for use in
1467 * atomic.c: New file.
1468 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1469 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1470 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1471 (backtrace_initialize): Likewise.
1472 * fileline.c (fileline_initialize): Likewise.
1473 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1474 * configure, config.h.in, Makefile.in: Rebuild.
1476 2013-11-18 Jakub Jelinek <jakub@redhat.com>
1478 * elf.c (SHN_UNDEF): Define.
1479 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1480 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1481 (elf_add): Adjust caller.
1483 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1485 2013-11-16 Ian Lance Taylor <iant@google.com>
1487 * backtrace.h (backtrace_create_state): Correct comment about
1490 2013-11-15 Ian Lance Taylor <iant@google.com>
1492 * backtrace.h (backtrace_syminfo): Update comment and parameter
1493 name to take any address, not just a PC value.
1494 * elf.c (STT_OBJECT): Define.
1495 (elf_nosyms): Rename parameter pc to addr.
1496 (elf_symbol_search): Rename local variable pc to addr.
1497 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1498 (elf_syminfo): Rename parameter pc to addr.
1499 * btest.c (global): New global variable.
1503 2013-10-17 Ian Lance Taylor <iant@google.com>
1505 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1508 2013-10-15 David Malcolm <dmalcolm@redhat.com>
1510 * configure.ac: Add --enable-host-shared, setting up
1511 pre-existing PIC_FLAG variable within Makefile.am et al.
1512 * configure: Regenerate.
1514 2013-09-20 Alan Modra <amodra@gmail.com>
1516 * configure: Regenerate.
1518 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1520 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1522 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1524 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1525 dl_iterate_phdr callbacks.
1527 2013-03-25 Ian Lance Taylor <iant@google.com>
1529 * alloc.c: #include <sys/types.h>.
1532 2013-01-31 Ian Lance Taylor <iant@google.com>
1534 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1535 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1537 2013-01-25 Jakub Jelinek <jakub@redhat.com>
1540 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1541 attribute was not seen.
1543 2013-01-16 Ian Lance Taylor <iant@google.com>
1545 * dwarf.c (struct unit): Add filename and abs_filename fields.
1546 (build_address_map): Set new fields when reading unit.
1547 (dwarf_lookup_pc): If we don't find an entry in the line table,
1548 just return the main file name.
1550 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1552 Update copyright years.
1554 2013-01-01 Ian Lance Taylor <iant@google.com>
1557 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1558 $(MULTIBUILDTOP)/../../gcc/include.
1559 * Makefile.in: Rebuild.
1561 2013-01-01 Ian Lance Taylor <iant@google.com>
1564 * mmap.c (backtrace_alloc): Don't call sync functions if not
1566 (backtrace_free): Likewise.
1568 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1570 * mmapio.c: Define MAP_FAILED if not defined.
1572 2012-12-11 Jakub Jelinek <jakub@redhat.com>
1575 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1576 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1577 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1579 * Makefile.in: Regenerated.
1580 * configure: Regenerated.
1582 2012-12-07 Jakub Jelinek <jakub@redhat.com>
1585 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1586 * Makefile.in: Regenerated.
1588 2012-11-20 Ian Lance Taylor <iant@google.com>
1590 * dwarf.c (read_attribute): Always clear val.
1592 2012-11-13 Ian Lance Taylor <iant@google.com>
1595 * configure.ac: Only add -Werror if building a target library.
1596 * configure: Rebuild.
1598 2012-11-12 Ian Lance Taylor <iant@google.com>
1599 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600 Gerald Pfeifer <gerald@pfeifer.com>
1602 * configure.ac: Check for getexecname.
1603 * fileline.c: #include <errno.h>. Define getexecname if not
1605 (fileline_initialize): Try to find the executable in a few
1607 * print.c (error_callback): Only print the filename if it came
1608 from the backtrace state.
1609 * configure, config.h.in: Rebuild.
1611 2012-10-29 Ian Lance Taylor <iant@google.com>
1613 * mmap.c (backtrace_vector_release): Correct last patch: add
1616 2012-10-29 Ian Lance Taylor <iant@google.com>
1618 * mmap.c (backtrace_vector_release): Make sure freed block is
1619 aligned on 8-byte boundary.
1621 2012-10-26 Ian Lance Taylor <iant@google.com>
1624 * posix.c (backtrace_open): Add does_not_exist parameter.
1625 * elf.c (phdr_callback): Do not warn if shared library could not
1627 * fileline.c (fileline_initialize): Update calls to
1629 * internal.h (backtrace_open): Update declaration.
1631 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1634 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1635 * configure: Regenerate.
1637 2012-10-24 Ian Lance Taylor <iant@google.com>
1640 * configure.ac: Check whether -funwind-tables option works.
1641 * configure: Rebuild.
1643 2012-10-11 Ian Lance Taylor <iant@google.com>
1645 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1646 * configure: Rebuild.
1648 2012-10-10 Ian Lance Taylor <iant@google.com>
1650 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1653 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1655 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1657 2012-10-09 Ian Lance Taylor <iant@google.com>
1659 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1660 (backtrace_dwarf_add): Likewise.
1662 2012-10-09 Ian Lance Taylor <iant@google.com>
1664 Add support for tracing through shared libraries.
1665 * configure.ac: Check for link.h and dl_iterate_phdr.
1666 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1667 ELF macros before #defining them.
1668 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1670 (struct elf_syminfo_data): Add next field.
1671 (elf_initialize_syminfo): Initialize next field.
1672 (elf_add_syminfo_data): New static function.
1673 (elf_add): New static function, broken out of
1674 backtrace_initialize. Call backtrace_dwarf_add instead of
1675 backtrace_dwarf_initialize.
1676 (struct phdr_data): Define.
1677 (phdr_callback): New static function.
1678 (backtrace_initialize): Call elf_add.
1679 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1680 (add_unit_addr): Add base_address parameter. Change all callers.
1681 (add_unit_ranges, build_address_map): Likewise.
1682 (add_line): Add ddata parameter. Change all callers.
1683 (read_line_program, add_function_range): Likewise.
1684 (dwarf_lookup_pc): New static function, broken out of
1686 (dwarf_fileline): Call dwarf_lookup_pc.
1687 (build_dwarf_data): New static function.
1688 (backtrace_dwarf_add): New function.
1689 (backtrace_dwarf_initialize): Remove.
1690 * internal.h (backtrace_dwarf_initialize): Don't declare.
1691 (backtrace_dwarf_add): Declare.
1692 * configure, config.h.in: Rebuild.
1694 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1696 * btest.c (f23): Avoid uninitialized variable warning.
1698 2012-10-04 Ian Lance Taylor <iant@google.com>
1700 * dwarf.c: If the system header files do not declare strnlen,
1701 provide our own version.
1703 2012-10-03 Ian Lance Taylor <iant@google.com>
1705 * dwarf.c (read_uleb128): Fix overflow test.
1706 (read_sleb128): Likewise.
1707 (build_address_map): Don't change unit_buf.start.
1709 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1712 * configure.ac (EXTRA_FLAGS): New.
1713 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1714 * configure, Makefile.in: Regenerate.
1716 2012-09-29 Ian Lance Taylor <iant@google.com>
1719 * fileline.c (fileline_initialize): Pass errnum as -1 when
1720 reporting that we could not read executable information after a
1723 2012-09-27 Ian Lance Taylor <iant@google.com>
1726 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1727 * Makefile.am: Add dependencies for all objects.
1728 * configure, aclocal.m4, Makefile.in: Rebuild.
1730 2012-09-27 Ian Lance Taylor <iant@google.com>
1733 * elf.c (backtrace_initialize): Set *fileln_fn, not
1736 2012-09-19 Ian Lance Taylor <iant@google.com>
1738 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1739 as a target library.
1740 * configure: Rebuild.
1742 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743 Ian Lance Taylor <iant@google.com>
1745 * configure.ac (GCC_HEADER_STDINT): Invoke.
1746 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1747 * btest.c: Don't include <stdint.h>.
1748 * dwarf.c: Likewise.
1749 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1751 2012-09-18 Ian Lance Taylor <iant@google.com>
1754 * Makefile.am (AM_CPPFLAGS): Define.
1755 (AM_CFLAGS): Remove -I options.
1756 * Makefile.in: Rebuild.
1758 2012-09-18 Ian Lance Taylor <iant@google.com>
1760 * posix.c (O_BINARY): Define if not defined.
1761 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1762 HAVE_FCNTL is defined.
1763 * configure.ac: Test for the fcntl function.
1764 * configure, config.h.in: Rebuild.
1766 2012-09-18 Ian Lance Taylor <iant@google.com>
1768 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1770 2012-09-18 Ian Lance Taylor <iant@google.com>
1772 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1774 2012-09-18 Ian Lance Taylor <iant@google.com>
1776 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1777 * mmapio.c: Don't define _GNU_SOURCE.
1778 * configure, config.h.in: Rebuild.
1780 2012-09-18 Ian Lance Taylor <iant@google.com>
1782 * configure.ac: Check whether strnlen is declared.
1783 * dwarf.c: Declare strnlen if not declared.
1784 * configure, config.h.in: Rebuild.
1786 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1788 * fileline.c: Include <stdlib.h>.
1791 2012-09-17 Ian Lance Taylor <iant@google.com>
1794 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1797 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1800 * nounwind.c (backtrace_simple): Add state parameter.
1802 2012-09-17 Ian Lance Taylor <iant@google.com>
1805 * unknown.c (unknown_fileline): Add state parameter, remove
1806 fileline_data parameter, name error_callback parameter.
1807 (backtrace_initialize): Add state parameter.
1809 2012-09-17 Ian Lance Taylor <iant@google.com>
1811 * Initial implementation.
1813 Copyright (C) 2012-2022 Free Software Foundation, Inc.
1815 Copying and distribution of this file, with or without modification,
1816 are permitted in any medium without royalty provided the copyright
1817 notice and this notice are preserved.