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