1 2022-05-06 Release Manager
5 2022-04-05 Ian Lance Taylor <iant@golang.org>
7 * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in
10 2022-02-17 Ian Lance Taylor <iant@golang.org>
12 * dwarf.c (find_address_ranges): Handle skeleton units.
13 (read_function_entry): Likewise.
15 2022-02-16 Ian Lance Taylor <iant@golang.org>
17 * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit.
19 2022-02-03 David Seifert <soap@gentoo.org>
20 Jakub Jelinek <jakub@redhat.com>
22 * configure.ac: Support --disable-werror.
23 * configure: Regenerate.
25 2021-12-28 Francois-Xavier Coudert <fxcoudert@gmail.com>
27 PR libbacktrace/103822
28 * Makefile.am: Fix newline.
29 * Makefile.in: Regenerate.
31 2021-11-12 Martin Liska <mliska@suse.cz>
33 PR libbacktrace/103167
34 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
35 (elf_uncompress_lzma): Likewise.
36 * xztest.c (test_samples): memcpy only if v > 0.
38 2021-10-22 Martin Liska <mliska@suse.cz>
41 * btest.c (MIN_DESCRIPTOR): New.
42 (MAX_DESCRIPTOR): Likewise.
43 (check_available_files): Likewise.
44 (check_open_files): Check only file descriptors that
45 were not available at the entry.
46 (main): Call check_available_files.
48 2021-08-13 Sergei Trofimovich <siarheit@google.com>
50 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
53 2021-06-28 Clément Chigot <clement.chigot@atos.net>
55 * xcoff.c (SSUBTYP_DWRNGES): New define.
56 (xcoff_add): Use correct XCOFF DWARF section subtype
57 for DEBUG_RANGES. Remove lineoff workaround.
59 (xcoff_initialize_syminfo): Adapt to new base_address.
60 (xcoff_lookup_pc): Likewise.
61 (xcoff_initialize_fileline): Likewise.
63 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
66 * configure: Regenerated.
68 2021-03-03 Ian Lance Taylor <iant@golang.org>
70 * dwarf.c (read_line_program): Don't special case file 0.
71 (read_function_entry): Likewise.
73 2021-03-02 Ian Lance Taylor <iant@golang.org>
76 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
78 * backtrace.h: Update backtrace_error_callback comment.
80 2021-02-12 Ian Lance Taylor <iant@golang.org>
82 * configure.ac: Check for objcopy --add-gnu-debuglink by using
84 * configure: Regenerate
86 2021-01-18 Ian Lance Taylor <iant@golang.org>
88 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
89 * Makefile.in: Regenerate.
90 * configure: Regenerate.
92 2021-01-18 Ian Lance Taylor <iant@golang.org>
95 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
97 (read_line_program): Remove parameter u, change caller. Don't
98 subtract one from dirs and filenames index.
99 (read_function_entry): Don't subtract one from filenames index.
101 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
103 * configure: Re-generate.
105 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
108 * configure: Regenerate.
110 2020-12-02 Ian Lance Taylor <iant@golang.org>
112 * dwarf.c (resolve_string): Use > rather than >= to check whether
113 string index extends past buffer.
114 (resolve_addr_index): Similarly for address index.
116 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
118 * configure: Regenerate.
120 2020-10-20 Ian Lance Taylor <iant@golang.org>
122 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
123 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
125 2020-09-28 Ian Lance Taylor <iant@golang.org>
127 PR libbacktrace/97082
128 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
129 * Makefile.in: Regenerate.
131 2020-09-28 Ian Lance Taylor <iant@golang.org>
133 PR libbacktrace/97227
134 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
135 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
136 * configure: Regenerate.
137 * Makefile.in: Regenerate.
139 2020-09-23 Ian Lance Taylor <iant@golang.org>
141 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
143 (dwarf_lookup_pc): Likewise.
145 2020-09-17 Ian Lance Taylor <iant@golang.org>
147 PR libbacktrace/97080
148 * fileline.c (backtrace_syminfo_to_full_callback): New function.
149 (backtrace_syminfo_to_full_error_callback): New function.
150 * elf.c (elf_nodebug): Call syminfo_fn if possible.
151 * internal.h (struct backtrace_call_full): Define.
152 (backtrace_syminfo_to_full_callback): Declare.
153 (backtrace_syminfo_to_full_error_callback): Declare.
154 * mtest.c (f3): Only check all[i] if data.index permits.
156 2020-09-16 Iain Sandoe <iain@sandoe.co.uk>
158 * macho.c (MACH_O_CPU_TYPE_PPC): New.
159 (MACH_O_CPU_TYPE_PPC64): New.
160 Add compile-tests for powerpc to the Mach-O variants.
162 2020-09-14 Ian Lance Taylor <iant@golang.org>
164 PR libbacktrace/93608
165 Add support for MiniDebugInfo.
166 * elf.c (struct elf_view): Define. Replace most uses of
167 backtrace_view with elf_view.
168 (elf_get_view): New static functions. Replace most calls of
169 backtrace_get_view with elf_get_view.
170 (elf_release_view): New static functions. Replace most calls of
171 backtrace_release_view with elf_release_view.
172 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
174 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
175 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
176 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
177 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
178 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
179 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
180 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
181 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
182 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
183 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
184 (LZMA_PROB_DIST_ALIGN_LEN): Define.
185 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
186 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
187 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
188 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
189 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
190 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
191 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
192 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
193 (LZMA_PROB_REP_LEN_MID_LEN): Define.
194 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
195 (LZMA_PROB_LITERAL_LEN): Define.
196 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
197 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
198 (LZMA_PROB_IS_REP2_OFFSET): Define.
199 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
200 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
201 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
202 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
203 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
204 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
205 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
206 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
207 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
208 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
209 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
210 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
211 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
212 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
213 (LZMA_PROB_LITERAL_OFFSET): Define.
214 (LZMA_PROB_TOTAL_COUNT): Define.
215 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
216 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
217 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
218 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
219 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
220 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
221 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
222 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
223 (elf_lzma_varint): New static function.
224 (elf_lzma_range_normalize): New static function.
225 (elf_lzma_bit, elf_lzma_integer): New static functions.
226 (elf_lzma_reverse_integer): New static function.
227 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
228 (elf_uncompress_lzma): New static function.
229 (backtrace_uncompress_lzma): New function.
230 (elf_add): Add memory and memory_size parameters. Change all
231 callers. Look for .gnu_debugdata section, and, if found,
232 decompress it and use it for symbols and debug info. Permit the
233 descriptor parameter to be -1.
234 * internal.h (backtrace_uncompress_lzma): Declare.
236 * xztest.c: New file.
237 * configure.ac: Check for nm, xz, and comm programs. Check for
239 (HAVE_MINIDEBUG): Define.
240 * Makefile.am (mtest_SOURCES): Define.
241 (mtest_CFLAGS, mtest_LDADD): Define.
242 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
243 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
244 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
245 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
246 (xztest_alloc_LDADD): Define.
247 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
248 (CLEANFILES): Add files created by minidebug pattern.
249 (btest.lo): Correct INCDIR reference.
250 (mtest.lo, xztest.lo, ztest.lo): New targets.
251 * configure: Regenerate.
252 * config.h.in: Regenerate.
253 * Makefile.in: Regenerate.
255 2020-09-09 Ian Lance Taylor <iant@golang.org>
257 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
258 (coff_add): Determine and pass is_64.
260 2020-09-09 Ian Lance Taylor <iant@golang.org>
262 PR libbacktrace/96973
263 * fileline.c (macho_get_executable_path): New static function.
264 (fileline_initialize): Call macho_get_executable_path.
266 2020-09-09 Ian Lance Taylor <iant@golang.org>
268 * dwarf.c (function_addrs_search): Compare against the next entry
269 low address, not the high address.
270 (unit_addrs_search): Likewise.
271 (build_address_map): Add a trailing unit_addrs.
272 (read_function_entry): Add a trailing function_addrs.
273 (read_function_info): Likewise.
274 (report_inlined_functions): Search backward for function_addrs
276 (dwarf_lookup_pc): Search backward for unit_addrs and
277 function_addrs matches.
279 2020-09-08 Ian Lance Taylor <iant@golang.org>
281 * simple.c (simple_unwind): Correct comment spelling.
283 2020-09-08 Ian Lance Taylor <iant@golang.org>
285 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
286 correct length when freeing diralc.
288 2020-09-08 Ian Lance Taylor <iant@golang.org>
290 PR libbacktrace/96973
291 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
293 2020-09-08 Ian Lance Taylor <iant@golang.org>
295 PR libbacktrace/96971
296 * filetype.awk: Only match magic number at start of line.
298 2020-08-24 Ian Lance Taylor <iant@golang.org>
300 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
301 (MACH_O_MH_CIGAM_FAT_64): Define.
302 (struct macho_fat_arch_64): Define.
303 (macho_add_fat): Add and use is_64 parameter.
304 (macho_add): Recognize 64-bit fat files.
306 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
309 * configure: Regenerated.
311 2020-07-08 Ian Lance Taylor <iant@golang.org>
313 * configure.ac: Test linker support for DWARF5
314 * configure: Regenerate
316 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
319 * configure: Regenerated.
321 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
324 * configure: Regenerated.
326 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
328 * configure: Regenerated.
330 2020-05-13 Ian Lance Taylor <iant@golang.org>
332 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
334 2020-05-13 Ian Lance Taylor <iant@golang.org>
337 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
339 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
341 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
342 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
343 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
345 * Makefile.in: Regenerated.
346 * configure: Likewise.
348 2020-05-11 Ian Lance Taylor <iant@golang.org>
350 PR libbacktrace/95012
351 * configure.ac: Check for getpagesize declaration.
352 * mmap.c: Declare getpagesize if necessary.
353 * mmapio.c: Likewise.
354 * configure: Regenerate.
355 * config.h.in: Regenerate.
356 * Makefile.in: Regenerate.
358 2020-05-09 Roland McGrath <mcgrathr@google.com>
360 * elf.c (elf_add): Bail early if there are no section headers at all.
362 2020-05-09 Ian Lance Taylor <iant@golang.org>
364 * elf.c (elf_add): Don't free strtab if an error occurs after
365 recording symbol information.
367 2020-05-09 Ian Lance Taylor <iant@golang.org>
369 PR libbacktrace/88745
371 * filetype.awk: Recognize Mach-O files.
372 * Makefile.am (FORMAT_FILES): Add macho.c.
373 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
374 (%.dSYM): New pattern target.
375 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
376 (test_macho_LDADD): New target.
377 (BUILDTESTS): Add test_macho.
378 (macho.lo): Add dependencies.
379 * configure.ac: Recognize macho file type. Check for
380 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
381 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
382 * Makefile.in: Regenerate.
383 * configure: Regenerate.
384 * config.h.in: Regenerate.
386 2020-05-09 Ian Lance Taylor <iant@golang.org>
388 * read.c (backtrace_get_view): Support short read.
390 2020-05-09 Ian Lance Taylor <iant@golang.org>
392 * elf.c (elf_add): If debug sections are very large or far apart,
393 read them individually rather than as a single view.
395 2020-05-08 Ian Lance Taylor <iant@golang.org>
397 * fileline.c (sysctl_exec_name): New static function.
398 (sysctl_exec_name1): New macro or static function.
399 (sysctl_exec_name2): Likewise.
400 (fileline_initialize): Try sysctl_exec_name[12].
401 * configure.ac: Check for sysctl args to fetch executable name.
402 * configure: Regenerate.
403 * config.h.in: Regenerate.
405 2020-02-15 Ian Lance Taylor <iant@golang.org>
407 * ztest.c (test_large): Update file to current libgo test file.
409 2020-02-03 Ian Lance Taylor <iant@golang.org>
411 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
412 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
413 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
414 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
415 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
416 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
417 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
418 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
419 (stest_alloc_CFLAGS): Likewise.
420 * Makefile.in: Regenerate.
421 * ztest.c (error_callback_compress): Mark vdata unused.
422 (test_large): Add casts to avoid warnings.
424 2020-01-01 Jakub Jelinek <jakub@redhat.com>
426 Update copyright years.
428 2019-12-13 Ian Lance Taylor <iant@golang.org>
431 * dwarf.c (struct attr): Add val field.
432 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
433 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
434 (struct line_header): Add addrsize field.
435 (struct line_header_format): Define.
436 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
438 (read_uint24): New static function.
439 (read_attribute): Add implicit_val parameter. Replace dwarf_str
440 and dwarf_str_size parameters with dwarf_sections parameter. Add
441 support for new DWARF 5 forms. Change all callers.
442 (resolve_string): New static function.
443 (resolve_addr_index): Likewise.
444 (read_abbrevs): Support DW_FORM_implicit_const.
445 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
446 and ranges_is_index fields.
447 (update_pcrange): Support DWARF 5 encodings.
448 (add_high_low_range): New static function, split out of
450 (add_ranges_from_ranges): Likewise.
451 (add_ranges_from_rnglists): New static function.
452 (add_ranges): Just call new helper functions.
453 (find_address_ranges): Use resolve_string for strings, after
454 reading all attributes. Handle new DWARF 5 attributes.
455 (build_address_map): Support DWARF 5 compilation units.
456 (read_v2_paths): New static function, split out of
458 (read_lnct): New static function.
459 (read_line_header_format_entries): Likewise.
460 (read_line_header): Add ddata parameter. Support DWARF 5 line
461 headers. Call new helper functions. Change all callers.
462 (read_line_program): Use addrsize from line program header. Don't
463 special case directory index 0 for DWARF 5.
464 (read_referenced_name): Use resolve_string.
465 (read_function_entry): Handle DWARF 5 encodings. Use
467 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
468 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
469 * elf.c (dwarf_section_names): Add new section names.
470 * pecoff.c (dwarf_section_names): Likewise.
471 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
473 * configure.ac: Define HAVE_DWARF5 automake conditional.
474 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
475 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
476 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
477 (dwarf5_alloc_LDADD): Likewise.
478 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
479 (CLEANFILES, clean-local): Define.
481 2019-12-08 Ian Lance Taylor <iant@golang.org>
483 * dwarf.c (struct pcrange): Define.
484 (update_pcrange, add_ranges): New static functions.
485 (add_unit_addr): Change signature to work with add_ranges. Don't
486 add base_address here.
487 (add_unit_ranges): Remove.
488 (find_address_ranges): Replace str/ranges parameters with
489 dwarf_sections. Use update_pcrange and add_ranges. Change all
491 (add_function_range): Change signature to work with add_ranges.
492 Don't add base_address here.
493 (add_function_ranges): Remove.
494 (read_function_entry): Use update_pcrange and add_ranges.
496 2019-12-04 Ian Lance Taylor <iant@golang.org>
498 * edtest.c (test1): Add noclone attribute.
500 2019-12-04 Ian Lance Taylor <iant@golang.org>
502 * internal.h (enum dwarf_section): Define.
503 (struct dwarf_sections): Define.
504 (backtrace_dwarf_add): Update declaration to replace specific
505 section parameters with dwarf_sections parameter.
506 * dwarf.c (struct dwarf_data): Replace specific section fields
507 with dwarf_sections field.
508 (read_attribute): Use dwarf_sections with altlink.
509 (build_address_map): Replace specific section parameters with
510 dwarf_sections parameter. Change all callers.
511 (read_line_info): Use dwarf_sections with ddata.
512 (read_referenced_name): Likewise.
513 (add_function_ranges): Likewise.
514 (read_function_entry): Likewise.
515 (read_function_info): Likewise.
516 (build_dwarf_data): Replace specific section parameters with
517 dwarf_sections parameter. Change all callers.
518 (backtrace_dwarf_add): Likewise.
519 * elf.c (enum debug_section): Remove.
520 (dwarf_section_names): Remove .zdebug names.
521 (elf_add): Track zsections separately. Build dwarf_sections.
522 * pecoff.c (enum debug_section): Remove.
523 (struct debug_section_info): Remove data field.
524 (coff_add): Build dwarf_sections.
525 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
526 references with DEBUG_xxx references.
527 (xcoff_add): Build dwarf_sections.
529 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
531 * configure: Regenerate.
533 2019-09-26 Ian Lance Taylor <iant@golang.org>
535 PR libbacktrace/91908
536 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
537 __sync_bool_compare_and_swap to void.
538 * xcoff.c (backtrace_initialize): Likewise.
540 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
542 * configure.ac: Remove references to spu.
543 * configure: Regenerate.
545 2019-05-24 Clement Chigot <clement.chigot@atos.net>
547 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
549 * Makefile.in: Regenerate.
551 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
555 * configure: Regenerate.
557 2019-03-11 Ian Lance Taylor <iant@golang.org>
559 PR libbacktrace/89669
560 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
562 * Makefile.in: Regenerate.
564 2019-02-26 Tom de Vries <tdevries@suse.de>
566 * btest.c (test5): Allow global.* as minimal symbol name for global.
568 2019-02-26 Tom de Vries <tdevries@suse.de>
570 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
571 * Makefile.in: Regenerate.
573 2019-02-12 Tom de Vries <tdevries@suse.de>
575 PR libbacktrace/81983
576 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
578 2019-02-10 Tom de Vries <tdevries@suse.de>
580 * Makefile.am (BUILDTESTS): Add btest_lto.
581 * Makefile.in: Regenerate.
582 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
583 __attribute__((noclone)).
585 2019-02-08 Tom de Vries <tdevries@suse.de>
587 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
588 * print.c (backtrace_print): Same.
589 * simple.c (backtrace_simple): Same.
591 2019-02-08 Tom de Vries <tdevries@suse.de>
593 PR libbacktrace/78063
594 * dwarf.c (build_address_map): Keep all parsed units.
595 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
597 2019-01-31 Tom de Vries <tdevries@suse.de>
599 PR libbacktrace/89136
600 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
601 'debugaltlink_name_len =+ 1'.
603 2019-01-29 Tom de Vries <tdevries@suse.de>
605 * install-debuginfo-for-buildid.sh.in: New script.
606 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
607 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
608 * Makefile.in: Regenerate.
609 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
610 (READELF): Set with AC_CHECK_PROG.
611 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
612 * configure: Regenerate.
613 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
614 (elf_open_debugfile_by_buildid): ... here.
616 2019-01-29 Tom de Vries <tdevries@suse.de>
618 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
620 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
621 (check_PROGRAMS): Add BUILDTESTS.
622 * Makefile.in: Regenerate.
624 2019-01-28 Tom de Vries <tdevries@suse.de>
626 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
627 Use $< to access prerequisite.
628 * Makefile.in: Regenerate.
630 2019-01-25 Nathan Sidwell <nathan@acm.org>
632 * elf.c (elf_add): Pass "" filename to recursive call with
635 2019-01-25 Tom de Vries <tdevries@suse.de>
637 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
639 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
640 * Makefile.in: Regenerate.
642 2019-01-25 Tom de Vries <tdevries@suse.de>
644 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
645 (TESTS): Rename dtest to btest_gnudebuglink.
646 * Makefile.in: Regenerate.
648 2019-01-23 Tom de Vries <tdevries@suse.de>
650 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
651 (units_search, find_unit): Use size_t for offset.
652 (build_address_map): Use size_t for unit_offset.
654 2019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
656 * allocfail.c (main): Increase portability of printf statement.
658 2019-01-18 Ian Lance Taylor <iant@golang.org>
660 PR libbacktrace/88890
661 * mmapio.c (backtrace_get_view): Change size parameter to
662 uint64_t. Check that value fits in size_t.
663 * read.c (backtrace_get_view): Likewise.
664 * internal.h (backtrace_get_view): Update declaration.
665 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
667 2019-01-17 Tom de Vries <tdevries@suse.de>
669 PR libbacktrace/82857
670 * configure.ac (DWZ): Set with AC_CHECK_PROG.
671 (HAVE_DWZ): Set with AM_CONDITIONAL.
672 * configure: Regenerate.
673 * Makefile.am (TESTS): Add btest_dwz.
674 * Makefile.in: Regenerate.
676 2019-01-17 Tom de Vries <tdevries@suse.de>
678 PR libbacktrace/82857
679 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
680 (read_attribute): Handle DW_FORM_GNU_ref_alt using
681 ATTR_VAL_REF_ALT_INFO.
682 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
684 2019-01-17 Tom de Vries <tdevries@suse.de>
686 * dwarf.c (struct unit): Add low_offset and high_offset fields.
687 (struct unit_vector): New type.
688 (struct dwarf_data): Add units and units_counts fields.
689 (find_unit): New function.
690 (find_address_ranges): Add and handle unit_tag parameter.
691 (build_address_map): Add and handle units_vec parameter.
692 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
695 2019-01-17 Tom de Vries <tdevries@suse.de>
697 PR libbacktrace/82857
698 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
701 2019-01-17 Tom de Vries <tdevries@suse.de>
703 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
704 (read_attribute): Add altlink parameter. Handle missing altlink for
705 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
706 (find_address_ranges, build_address_map, build_dwarf_data): Add and
707 handle altlink parameter.
708 (read_referenced_name, read_function_entry): Add argument to
711 2019-01-17 Tom de Vries <tdevries@suse.de>
713 * dwarf.c (struct dwarf_data): Add altlink field.
714 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
715 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
716 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
717 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
718 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
719 * xcoff.c (xcoff_add): Same.
721 2019-01-17 Tom de Vries <tdevries@suse.de>
723 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
724 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
725 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
726 argument to backtrace_dwarf_add call.
727 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
728 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
729 * xcoff.c (xcoff_add): Same.
731 2019-01-17 Tom de Vries <tdevries@suse.de>
733 * elf.c (elf_add): Add and handle with_buildid_data and
734 with_buildid_size parameters. Handle .gnu_debugaltlink section.
735 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
737 2019-01-16 Tom de Vries <tdevries@suse.de>
739 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
741 (read_referenced_name): ... here, and ...
742 (read_function_entry): ... here.
744 2019-01-16 Tom de Vries <tdevries@suse.de>
746 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
748 (read_function_entry): Same. Don't allow name found via
749 DW_AT_abstract_origin or case DW_AT_specification to override linkage
752 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
756 * backtrace.h: Mechanically replace "can not" with "cannot".
758 2019-01-01 Jakub Jelinek <jakub@redhat.com>
760 Update copyright years.
762 2018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
764 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
766 * Makefile.in: Regenerate.
768 2018-12-28 Tom de Vries <tdevries@suse.de>
770 * dwarf.c (build_address_map): Reuse unused units.
772 2018-12-28 Tom de Vries <tdevries@suse.de>
774 * dwarf.c (build_address_map): Simplify by removing local variable
777 2018-12-28 Ian Lance Taylor <iant@golang.org>
778 Tom de Vries <tdevries@suse.de>
780 PR libbacktrace/88063
781 * dwarf.c (free_unit_addrs_vector): Remove.
782 (build_address_map): Keep track of allocated units in vector. Free
783 allocated units and corresponding abbrevs upon failure. Remove now
784 redundant call to free_unit_addrs_vector. Free addrs vector upon
785 failure. Free allocated unit vector.
787 2018-12-28 Tom de Vries <tdevries@suse.de>
789 * dwarf.c (build_address_map): Free addrs vector upon failure.
791 2018-12-14 Tom de Vries <tdevries@suse.de>
794 * allocfail.sh: Remove "set -o pipefail".
796 2018-12-12 Tom de Vries <tdevries@suse.de>
798 * Makefile.am (TESTS): Add allocfail.sh.
799 (check_PROGRAMS): Add allocfail.
800 * Makefile.in: Regenerate.
801 * instrumented_alloc.c: New file. Redefine malloc and realloc.
803 * allocfail.c: New file.
804 * allocfail.sh: New file.
806 2018-11-30 Tom de Vries <tdevries@suse.de>
808 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
809 test_xcoff_64, test_pecoff and test_unknown.
810 * Makefile.in: Regenerate.
811 * test_format.c: New file.
813 2018-11-30 Tom de Vries <tdevries@suse.de>
815 * Makefile.am : Add _with_alloc version for each test in
817 * Makefile.in: Regenerate.
819 2018-11-30 Tom de Vries <tdevries@suse.de>
821 * internal.h (backtrace_vector_free): New static inline fuction,
823 * dwarf.c (read_line_info): ... here.
825 2018-11-28 Tom de Vries <tdevries@suse.de>
827 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
830 2018-11-27 Tom de Vries <tdevries@suse.de>
832 * mmap.c (backtrace_vector_release): Same.
833 * unittest.c (test1): Add check.
835 2018-11-27 Tom de Vries <tdevries@suse.de>
837 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
839 * Makefile.am (check_PROGRAMS): Add unittest.
840 * Makefile.in: Regenerate.
841 * unittest.c: New file.
843 2018-11-22 Tom de Vries <tdevries@suse.de>
845 * dwarf.c (read_initial_length): Factor out of ...
846 (build_address_map, read_line_info): ... here.
848 2018-11-21 Tom de Vries <tdevries@suse.de>
850 * dwarf.c (read_string): Factor out of ...
851 (read_attribute, read_line_header, read_line_program): ... here.
853 2018-10-31 Joseph Myers <joseph@codesourcery.com>
856 * Makefile.am: Include multilib.am.
857 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
858 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
860 2018-10-05 Ian Lance Taylor <iant@golang.org>
862 PR libbacktrace/87529
863 * backtrace.h: Document that backtrace_create_state should be
866 2018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
868 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
869 * Makefile.in: Regenerate.
870 * config.h.in: Likewise.
871 * configure: Likewise.
873 2018-08-01 Tony Reix <tony.reix@atos.net>
875 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
876 (struct xcoff_func, struct xcoff_func_vector): New structs.
877 (xcoff_syminfo): Drop leading dot from symbol name.
878 (xcoff_line_compare, xcoff_line_search): Remove.
879 (xcoff_func_compare, xcoff_func_search): New static functions.
880 (xcoff_lookup_pc): Search function table.
881 (xcoff_add_line, xcoff_process_linenos): Remove.
882 (xcoff_initialize_fileline): Build function table.
884 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
887 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
888 checking up to 36 bytes.
890 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
892 * configure: Regenerated.
894 2018-04-19 Jakub Jelinek <jakub@redhat.com>
896 * configure: Regenerated.
898 2018-04-17 Ian Lance Taylor <iant@golang.org>
900 * backtrace.c: Revert last two changes. Don't call mmap
903 2018-04-17 Ian Lance Taylor <iant@golang.org>
905 * backtrace.c: Include backtrace-supported.h before checking
906 BACKTRACE_USES_MALLOC.
908 2018-04-17 Ian Lance Taylor <iant@golang.org>
910 * backtrace.c (backtrace_full): When testing whether we can
911 allocate memory, call mmap directly, and munmap the memory.
913 2018-04-04 Jakub Jelinek <jakub@redhat.com>
916 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
917 big endian, only use 32-bit loads if endianity macros are predefined
918 and indicate big or little endian.
920 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
923 * configure: Regenerate.
925 2018-02-15 Jakub Jelinek <jakub@redhat.com>
928 * elf.c (SHT_PROGBITS): Undefine and define.
930 2018-02-14 Jakub Jelinek <jakub@redhat.com>
933 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
934 (struct elf_ppc64_opd_data): New type.
935 (elf_initialize_syminfo): Add opd argument, handle symbols
936 pointing into the PowerPC64 ELFv1 .opd section.
937 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
938 to structure with .opd data to elf_initialize_syminfo.
940 2018-01-31 Ian Lance Taylor <iant@golang.org>
942 * elf.c (elf_add): Close descriptor if we use a debugfile.
943 * btest.c (check_open_files): New static function.
944 (main): Call check_open_files.
946 2018-01-25 Ian Lance Taylor <iant@golang.org>
948 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
950 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
952 2018-01-25 Ian Lance Taylor <iant@golang.org>
954 * pecoff.c (coff_add): Only release syms_view if it is valid.
956 2018-01-25 Ian Lance Taylor <iant@golang.org>
958 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
960 2018-01-24 Ian Lance Taylor <iant@golang.org>
962 * pecoff.c (coff_add): Use coff_read4, not memcpy.
964 2018-01-24 Ian Lance Taylor <iant@golang.org>
967 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
970 2018-01-19 Tony Reix <tony.reix@atos.net>
972 * xcoff.c (xcoff_incl_compare): New function.
973 (xcoff_incl_search): New function.
974 (xcoff_process_linenos): Use bsearch to find include file.
975 (xcoff_initialize_fileline): Sort include file information.
977 2018-01-16 Ian Lance Taylor <iant@golang.org>
979 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
981 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
982 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
983 (elf_zlib_default_table): Update.
984 (elf_zlib_default_dist_table): New static array.
985 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
987 * ztest.c (struct zlib_test): Add uncompressed_len.
988 (tests): Initialize uncompressed_len field. Add new test case.
989 (test_samples): Use uncompressed_len field.
991 2018-01-03 Jakub Jelinek <jakub@redhat.com>
993 Update copyright years.
995 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
997 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
998 * aclocal.m4: Regenerate.
999 * Makefile.in: Likewise.
1000 * configure: Likewise.
1002 2017-10-06 Ian Lance Taylor <iant@golang.org>
1004 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
1005 zlib uncompress function.
1007 2017-10-05 Ian Lance Taylor <iant@golang.org>
1009 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
1010 Read a four byte integer.
1011 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
1012 boundary before ever calling elf_zlib_fetch.
1013 * ztest.c (test_large): Simplify print statements a bit.
1015 2017-10-02 Ian Lance Taylor <iant@golang.org>
1017 * ztest.c: #include <errno.h>.
1018 (TEST_TIMING): Don't define, don't test.
1019 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
1020 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
1021 (ZLIB_CLOCK_GETTIME_ARG): Define.
1022 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
1023 * Makefile.am: Likewise.
1024 * configure, Makefile.in: Rebuild.
1026 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
1029 * Makefile.am: Append the content of clock_gettime_link to
1031 * configure.ac: Test for the case that clock_gettime is in librt.
1032 * Makefile.in: Regenerate.
1033 * configure: Likewise.
1036 * configure.ac: Check for clock_gettime.
1037 * config.h.in: Regenerate.
1038 * configure: Likewise.
1039 * ztest.c (average_time, test_large): Conditionalize test timing
1040 on clock_gettime availability.
1042 2017-09-29 Tony Reix <tony.reix@atos.net>
1044 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1045 (STYP_DWARF, SSUBTYP_DW*): Define.
1046 (enum dwarf_section): Define.
1047 (struct dwsect_info): Define.
1048 (xcoff_add): Look for DWARF sections, pass them to
1049 backtrace_dwarf_add.
1051 2017-09-28 Ian Lance Taylor <iant@golang.org>
1054 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1056 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1057 (b_elf_chdr): Define type.
1058 (enum debug_section): Add ZDEBUG_xxx values.
1059 (debug_section_names): Add names for new sections.
1060 (struct debug_section_info): Add compressed field.
1061 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1062 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1063 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1064 (HUFFMAN_SECONDARY_SHIFT): Define.
1065 (ZDEBUG_TABLE_SIZE): Define.
1066 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1067 (final_next_secondary): New static variable if
1068 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1069 (elf_zlib_inflate_table): New static function.
1070 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1071 function to produce fixed Huffman table.
1072 (elf_zlib_default_table): New static variable.
1073 (elf_zlib_inflate): New static function.
1074 (elf_zlib_verify_checksum): Likewise.
1075 (elf_zlib_inflate_and_verify): Likewise.
1076 (elf_uncompress_zdebug): Likewise.
1077 (elf_uncompress_chdr): Likewise.
1078 (backtrace_uncompress_zdebug): New extern function.
1079 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1080 sections, and uncompress them.
1081 * internal.h (backtrace_compress_zdebug): Declare.
1082 * ztest.c: New file.
1083 * configure.ac: Check for -lz and check whether the linker
1084 supports --compress-debug-sections.
1085 * Makefile.am (ztest_SOURCES): New variable.
1086 (ztest_CFLAGS, ztest_LDADD): New variables.
1087 (check_PROGRAMS): Add ztest.
1088 (ctestg_SOURCES): New variable.
1089 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1090 (ctesta_SOURCES): New variable.
1091 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1092 (check_PROGRAMS): Add ctestg and ctesta.
1093 * configure, config.h.in, Makefile.in: Rebuild.
1095 2017-09-22 Ian Lance Taylor <iant@golang.org>
1098 * configure.ac: Check for lstat and readlink.
1099 * elf.c (lstat, readlink): Provide dummy versions if real versions
1101 * configure, config.h.in: Rebuild.
1103 2017-09-21 Ian Lance Taylor <iant@google.com>
1106 * elf.c (backtrace_initialize): Set pd.exe_filename.
1108 2017-09-20 Ian Lance Taylor <iant@golang.org>
1109 Denis Khalikov <d.khalikov@partner.samsung.com>
1112 Support for external debug info.
1113 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1114 (S_ISLNK): Define if not defined.
1115 (xstrnlen): Define if strnlen is not available.
1116 (b_elf_note): Define type.
1117 (NT_GNU_BUILD_ID): Define macro.
1118 (elf_crc32, elf_crc32_file): New static functions.
1119 (elf_is_symlink, elf_readlink): New static functions.
1120 (elf_open_debugfile_by_buildid): New static function.
1121 (elf_try_debugfile): New static function.
1122 (elf_find_debugfile_by_debuglink): New static function.
1123 (elf_open_debugfile_by_debuglink): New static function.
1124 (elf_add): Add filename and debuginfo parameters. Adjust all
1125 callers. Look for external debug info notes, and try to fetch
1126 debug info from external file.
1127 (struct phdr_data): Add exe_filename field.
1128 (phdr_callback): Pass filename to elf_add.
1129 (backtrace_initialize): Add filename parameter.
1130 * internal.h (backtrace_initialize): Add filename parameter.
1131 * fileline.c (fileline_initialize): Pass filename to
1132 backtrace_initialize.
1133 * pecoff.c (fileline_initialize): Add unused filename parameter.
1134 * unknown.c (fileline_initialize): Likewise.
1135 * xcoff.c (fileline_initialize): Likewise.
1136 * configure.ac: Check for objcopy --add-gnu-debuglink.
1137 * Makefile.am (dtest): New test target.
1138 * configure, Makefile.in: Rebuild.
1140 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1143 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1144 * Makefile.in: Regenerate.
1146 2017-09-12 Steve Ellcey <sellcey@cavium.com>
1149 * libbacktrace/Makefile.in
1150 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1152 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
1155 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1157 2017-07-28 Tony Reix <tony.reix@atos.net>
1159 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1161 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1163 * fileline.c (fileline_initialize): Print pid_t as long.
1165 2017-07-26 Tony Reix <tony.reix@atos.net>
1167 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1168 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1169 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1170 * configure, config.h.in: Regenerate.
1172 2017-07-21 Tony Reix <tony.reix@atos.net>
1174 * filetype.awk: Add AIX XCOFF type detection.
1175 * configure.ac: Recognize xcoff format.
1176 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1177 * fileline.c: Include <unistd.h>.
1178 (fileline_initialize): Add case for AIX procfs.
1179 * xcoff.c: New file.
1180 * configure, Makefile.in: Rebuild.
1182 2017-06-21 Richard Biener <rguenther@suse.de>
1184 * configure.ac: Add AC_SYS_LARGEFILE.
1185 * config.h.in: Regenerate.
1186 * configure: Likewise.
1188 2017-06-11 Ian Lance Taylor <iant@golang.org>
1190 * elf.c (backtrace_initialize): Always set *fileline_fn.
1191 * ttest.c: New file.
1192 * btest.c: Move support functions into testlib.c. Change calls to
1193 check to pass file name.
1194 * testlib.c: New file, copied from (part of) btest.c.
1195 * testlib.h: New file, declarations for testlib.c.
1196 * edtest.c: Use testlib.h and testlib.c.
1197 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1198 * Makefile.am (btest_SOURCES): Add testlib.c.
1199 (edtest_SOURCES): Likewise.
1200 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1201 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1202 * configure, Makefile.in: Rebuild.
1204 2017-05-19 Than McIntosh <thanm@google.com>
1206 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1207 (read_line_header): Don't allocate dirs if dirs_count == 0.
1208 * edtest.c: New file.
1209 * edtest2.c: New file.
1210 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1211 (check_PROGRAMS): Add edtest.
1212 (edtest2_build.c, gen_edtest2_build): New targets.
1213 * Makefile.in: Rebuild.
1215 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1217 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1218 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1220 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1222 Update copyright years.
1224 2016-11-15 Matthias Klose <doko@ubuntu.com>
1226 * configure: Regenerate.
1228 2016-09-11 Carlos Liam <carlos@aarzee.me>
1230 * all: Remove meaningless trailing whitespace.
1232 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1235 * elf.c (phdr_callback) [__i386__]: Add
1236 __attribute__((__force_align_arg_pointer__)).
1238 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1240 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1241 avoid possible crash.
1242 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1243 missing debug info anymore.
1245 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
1247 * mmap.c (MAP_FAILED): Define if not defined.
1249 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1251 Update copyright years.
1253 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1255 * configure.ac: Specify that DJGPP do not have mmap
1256 even when sys/mman.h exists.
1257 * configure: Regenerate
1259 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1261 PR libgfortran/68115
1262 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1263 * configure: Regenerate.
1264 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1267 2015-09-17 Ian Lance Taylor <iant@google.com>
1269 * posix.c (backtrace_open): Cast second argument of open() to int.
1271 2015-09-11 Ian Lance Taylor <iant@google.com>
1273 * Makefile.am (backtrace.lo): Depend on internal.h.
1274 (sort.lo, stest.lo): Add explicit dependencies.
1275 * Makefile.in: Rebuild.
1277 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
1279 * backtrace.c: #include <sys/types.h>.
1281 2015-09-08 Ian Lance Taylor <iant@google.com>
1284 * backtrace.c: #include "internal.h".
1285 (struct backtrace_data): Add can_alloc field.
1286 (unwind): If can_alloc is false, don't try to get file/line
1288 (backtrace_full): Set can_alloc field in bdata.
1289 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1291 * mmap.c (backtrace_alloc): Likewise.
1292 * internal.h: Update comments for backtrace_alloc and
1295 2015-09-08 Ian Lance Taylor <iant@google.com>
1298 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1300 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1302 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1303 * configure: Regenerate.
1305 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1307 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1308 Remove setting PIC_FLAG when building as target library.
1309 * configure: Regenerate.
1311 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
1313 * configure.ac: Only compile with -fPIC if the target
1315 * configure: Regenerate.
1317 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1319 * configure.ac: Set have_mmap to no on spu-*-* targets.
1320 * configure: Regenerate.
1322 2015-08-13 Ian Lance Taylor <iant@google.com>
1324 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1327 2015-06-11 Martin Sebor <msebor@redhat.com>
1330 * dwarf.c (struct line): Add new field idx.
1331 (line_compare): Use it.
1333 (read_line_info): Reset it.
1335 2015-05-29 Tristan Gingold <gingold@adacore.com>
1337 * pecoff.c: New file.
1338 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1339 * Makefile.in: Regenerate.
1340 * filetype.awk: Detect pecoff.
1341 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1343 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1345 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1346 * configure: Regenerate.
1347 * pecoff.c: New file.
1349 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1351 * Makefile.in: Regenerated with automake-1.11.6.
1352 * aclocal.m4: Likewise.
1353 * configure: Likewise.
1355 2015-01-24 Matthias Klose <doko@ubuntu.com>
1357 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1358 * configure: Regenerate.
1360 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1362 Update copyright years.
1364 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1367 * configure: Regenerated.
1369 2014-11-11 David Malcolm <dmalcolm@redhat.com>
1371 * ChangeLog.jit: New.
1373 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1376 * configure: Regenerate.
1378 2014-10-23 Ian Lance Taylor <iant@google.com>
1380 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1381 Fix to return void *.
1383 2014-05-08 Ian Lance Taylor <iant@google.com>
1385 * mmap.c (backtrace_free): If freeing a large aligned block of
1386 memory, call munmap rather than holding onto it.
1387 (backtrace_vector_grow): When growing a vector, double the number
1388 of pages requested. When releasing the old version of a grown
1389 vector, pass the correct size to backtrace_free.
1391 2014-03-07 Ian Lance Taylor <iant@google.com>
1393 * sort.c (backtrace_qsort): Use middle element as pivot.
1395 2014-03-06 Ian Lance Taylor <iant@google.com>
1398 * stest.c: New file.
1399 * internal.h (backtrace_qsort): Declare.
1400 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1401 (read_line_info, read_function_entry): Likewise.
1402 (read_function_info, build_dwarf_data): Likewise.
1403 * elf.c (elf_initialize_syminfo): Likewise.
1404 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1405 (stest_SOURCES, stest_LDADD): Define.
1406 (check_PROGRAMS): Add stest.
1408 2014-02-07 Misty De Meo <misty@brew.sh>
1411 * configure.ac: Use AC_LINK_IFELSE in check for
1413 * configure: Regenerate.
1415 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1417 Update copyright years
1419 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1421 * elf.c (ET_DYN): Undefine and define again.
1422 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1423 return early -1 without closing the descriptor.
1424 (struct phdr_data): Add exe_descriptor.
1425 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1426 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1427 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1429 (backtrace_initialize): Adjust call to elf_add. If it returns
1430 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1432 2013-12-05 Ian Lance Taylor <iant@google.com>
1434 * alloc.c (backtrace_vector_finish): Add error_callback and data
1435 parameters. Call backtrace_vector_release. Return address base.
1436 * mmap.c (backtrace_vector_finish): Add error_callback and data
1437 parameters. Return address base.
1438 * dwarf.c (read_function_info): Get new address base from
1439 backtrace_vector_finish.
1440 * internal.h (backtrace_vector_finish): Update declaration.
1442 2013-11-27 Ian Lance Taylor <iant@google.com>
1444 * dwarf.c (find_address_ranges): New static function, broken out
1445 of build_address_map.
1446 (build_address_map): Call it.
1447 * btest.c (check): Check for missing filename or function, rather
1449 (f3): Check that enough frames were returned.
1451 2013-11-19 Jakub Jelinek <jakub@redhat.com>
1453 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1454 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1456 * btest.c (struct symdata): Add size field.
1457 (callback_three): Add symsize argument. Copy it to the data->size
1459 (f23): Set symdata.size to 0.
1460 (test5): Likewise. If sizeof (int) > 1, lookup address of
1461 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1464 * atomic.c: Include sys/types.h.
1466 2013-11-18 Ian Lance Taylor <iant@google.com>
1468 * configure.ac: Check for support of __atomic extensions.
1469 * internal.h: Declare or #define atomic functions for use in
1471 * atomic.c: New file.
1472 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1473 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1474 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1475 (backtrace_initialize): Likewise.
1476 * fileline.c (fileline_initialize): Likewise.
1477 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1478 * configure, config.h.in, Makefile.in: Rebuild.
1480 2013-11-18 Jakub Jelinek <jakub@redhat.com>
1482 * elf.c (SHN_UNDEF): Define.
1483 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1484 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1485 (elf_add): Adjust caller.
1487 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1489 2013-11-16 Ian Lance Taylor <iant@google.com>
1491 * backtrace.h (backtrace_create_state): Correct comment about
1494 2013-11-15 Ian Lance Taylor <iant@google.com>
1496 * backtrace.h (backtrace_syminfo): Update comment and parameter
1497 name to take any address, not just a PC value.
1498 * elf.c (STT_OBJECT): Define.
1499 (elf_nosyms): Rename parameter pc to addr.
1500 (elf_symbol_search): Rename local variable pc to addr.
1501 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1502 (elf_syminfo): Rename parameter pc to addr.
1503 * btest.c (global): New global variable.
1507 2013-10-17 Ian Lance Taylor <iant@google.com>
1509 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1512 2013-10-15 David Malcolm <dmalcolm@redhat.com>
1514 * configure.ac: Add --enable-host-shared, setting up
1515 pre-existing PIC_FLAG variable within Makefile.am et al.
1516 * configure: Regenerate.
1518 2013-09-20 Alan Modra <amodra@gmail.com>
1520 * configure: Regenerate.
1522 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1524 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1526 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
1528 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1529 dl_iterate_phdr callbacks.
1531 2013-03-25 Ian Lance Taylor <iant@google.com>
1533 * alloc.c: #include <sys/types.h>.
1536 2013-01-31 Ian Lance Taylor <iant@google.com>
1538 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1539 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1541 2013-01-25 Jakub Jelinek <jakub@redhat.com>
1544 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1545 attribute was not seen.
1547 2013-01-16 Ian Lance Taylor <iant@google.com>
1549 * dwarf.c (struct unit): Add filename and abs_filename fields.
1550 (build_address_map): Set new fields when reading unit.
1551 (dwarf_lookup_pc): If we don't find an entry in the line table,
1552 just return the main file name.
1554 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1556 Update copyright years.
1558 2013-01-01 Ian Lance Taylor <iant@google.com>
1561 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1562 $(MULTIBUILDTOP)/../../gcc/include.
1563 * Makefile.in: Rebuild.
1565 2013-01-01 Ian Lance Taylor <iant@google.com>
1568 * mmap.c (backtrace_alloc): Don't call sync functions if not
1570 (backtrace_free): Likewise.
1572 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1574 * mmapio.c: Define MAP_FAILED if not defined.
1576 2012-12-11 Jakub Jelinek <jakub@redhat.com>
1579 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1580 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1581 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1583 * Makefile.in: Regenerated.
1584 * configure: Regenerated.
1586 2012-12-07 Jakub Jelinek <jakub@redhat.com>
1589 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1590 * Makefile.in: Regenerated.
1592 2012-11-20 Ian Lance Taylor <iant@google.com>
1594 * dwarf.c (read_attribute): Always clear val.
1596 2012-11-13 Ian Lance Taylor <iant@google.com>
1599 * configure.ac: Only add -Werror if building a target library.
1600 * configure: Rebuild.
1602 2012-11-12 Ian Lance Taylor <iant@google.com>
1603 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1604 Gerald Pfeifer <gerald@pfeifer.com>
1606 * configure.ac: Check for getexecname.
1607 * fileline.c: #include <errno.h>. Define getexecname if not
1609 (fileline_initialize): Try to find the executable in a few
1611 * print.c (error_callback): Only print the filename if it came
1612 from the backtrace state.
1613 * configure, config.h.in: Rebuild.
1615 2012-10-29 Ian Lance Taylor <iant@google.com>
1617 * mmap.c (backtrace_vector_release): Correct last patch: add
1620 2012-10-29 Ian Lance Taylor <iant@google.com>
1622 * mmap.c (backtrace_vector_release): Make sure freed block is
1623 aligned on 8-byte boundary.
1625 2012-10-26 Ian Lance Taylor <iant@google.com>
1628 * posix.c (backtrace_open): Add does_not_exist parameter.
1629 * elf.c (phdr_callback): Do not warn if shared library could not
1631 * fileline.c (fileline_initialize): Update calls to
1633 * internal.h (backtrace_open): Update declaration.
1635 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1638 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1639 * configure: Regenerate.
1641 2012-10-24 Ian Lance Taylor <iant@google.com>
1644 * configure.ac: Check whether -funwind-tables option works.
1645 * configure: Rebuild.
1647 2012-10-11 Ian Lance Taylor <iant@google.com>
1649 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1650 * configure: Rebuild.
1652 2012-10-10 Ian Lance Taylor <iant@google.com>
1654 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1657 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1659 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1661 2012-10-09 Ian Lance Taylor <iant@google.com>
1663 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1664 (backtrace_dwarf_add): Likewise.
1666 2012-10-09 Ian Lance Taylor <iant@google.com>
1668 Add support for tracing through shared libraries.
1669 * configure.ac: Check for link.h and dl_iterate_phdr.
1670 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1671 ELF macros before #defining them.
1672 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1674 (struct elf_syminfo_data): Add next field.
1675 (elf_initialize_syminfo): Initialize next field.
1676 (elf_add_syminfo_data): New static function.
1677 (elf_add): New static function, broken out of
1678 backtrace_initialize. Call backtrace_dwarf_add instead of
1679 backtrace_dwarf_initialize.
1680 (struct phdr_data): Define.
1681 (phdr_callback): New static function.
1682 (backtrace_initialize): Call elf_add.
1683 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1684 (add_unit_addr): Add base_address parameter. Change all callers.
1685 (add_unit_ranges, build_address_map): Likewise.
1686 (add_line): Add ddata parameter. Change all callers.
1687 (read_line_program, add_function_range): Likewise.
1688 (dwarf_lookup_pc): New static function, broken out of
1690 (dwarf_fileline): Call dwarf_lookup_pc.
1691 (build_dwarf_data): New static function.
1692 (backtrace_dwarf_add): New function.
1693 (backtrace_dwarf_initialize): Remove.
1694 * internal.h (backtrace_dwarf_initialize): Don't declare.
1695 (backtrace_dwarf_add): Declare.
1696 * configure, config.h.in: Rebuild.
1698 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1700 * btest.c (f23): Avoid uninitialized variable warning.
1702 2012-10-04 Ian Lance Taylor <iant@google.com>
1704 * dwarf.c: If the system header files do not declare strnlen,
1705 provide our own version.
1707 2012-10-03 Ian Lance Taylor <iant@google.com>
1709 * dwarf.c (read_uleb128): Fix overflow test.
1710 (read_sleb128): Likewise.
1711 (build_address_map): Don't change unit_buf.start.
1713 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
1716 * configure.ac (EXTRA_FLAGS): New.
1717 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1718 * configure, Makefile.in: Regenerate.
1720 2012-09-29 Ian Lance Taylor <iant@google.com>
1723 * fileline.c (fileline_initialize): Pass errnum as -1 when
1724 reporting that we could not read executable information after a
1727 2012-09-27 Ian Lance Taylor <iant@google.com>
1730 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1731 * Makefile.am: Add dependencies for all objects.
1732 * configure, aclocal.m4, Makefile.in: Rebuild.
1734 2012-09-27 Ian Lance Taylor <iant@google.com>
1737 * elf.c (backtrace_initialize): Set *fileln_fn, not
1740 2012-09-19 Ian Lance Taylor <iant@google.com>
1742 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1743 as a target library.
1744 * configure: Rebuild.
1746 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1747 Ian Lance Taylor <iant@google.com>
1749 * configure.ac (GCC_HEADER_STDINT): Invoke.
1750 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1751 * btest.c: Don't include <stdint.h>.
1752 * dwarf.c: Likewise.
1753 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1755 2012-09-18 Ian Lance Taylor <iant@google.com>
1758 * Makefile.am (AM_CPPFLAGS): Define.
1759 (AM_CFLAGS): Remove -I options.
1760 * Makefile.in: Rebuild.
1762 2012-09-18 Ian Lance Taylor <iant@google.com>
1764 * posix.c (O_BINARY): Define if not defined.
1765 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1766 HAVE_FCNTL is defined.
1767 * configure.ac: Test for the fcntl function.
1768 * configure, config.h.in: Rebuild.
1770 2012-09-18 Ian Lance Taylor <iant@google.com>
1772 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1774 2012-09-18 Ian Lance Taylor <iant@google.com>
1776 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1778 2012-09-18 Ian Lance Taylor <iant@google.com>
1780 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1781 * mmapio.c: Don't define _GNU_SOURCE.
1782 * configure, config.h.in: Rebuild.
1784 2012-09-18 Ian Lance Taylor <iant@google.com>
1786 * configure.ac: Check whether strnlen is declared.
1787 * dwarf.c: Declare strnlen if not declared.
1788 * configure, config.h.in: Rebuild.
1790 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1792 * fileline.c: Include <stdlib.h>.
1795 2012-09-17 Ian Lance Taylor <iant@google.com>
1798 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1801 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1804 * nounwind.c (backtrace_simple): Add state parameter.
1806 2012-09-17 Ian Lance Taylor <iant@google.com>
1809 * unknown.c (unknown_fileline): Add state parameter, remove
1810 fileline_data parameter, name error_callback parameter.
1811 (backtrace_initialize): Add state parameter.
1813 2012-09-17 Ian Lance Taylor <iant@google.com>
1815 * Initial implementation.
1817 Copyright (C) 2012-2022 Free Software Foundation, Inc.
1819 Copying and distribution of this file, with or without modification,
1820 are permitted in any medium without royalty provided the copyright
1821 notice and this notice are preserved.