Debian Codegraph @

libbacktrace/ChangeLog

raw
1 2026-06-12 Release Manager
2
3 * GCC 15.3.0 released.
4
5 2025-08-08 Release Manager
6
7 * GCC 15.2.0 released.
8
9 2025-04-25 Release Manager
10
11 * GCC 15.1.0 released.
12
13 2025-04-10 John David Anglin <[email protected]>
14
15 * fileline.c (hpux_get_executable_path): New.
16 (fileline_initialize): Add pass to get hpux executable path.
17
18 2025-04-09 Richard Biener <[email protected]>
19
20 PR bootstrap/119680
21 * configure.ac (--enable-host-pie): Handle by setting PIC_FLAG
22 to -fPIE.
23 * configure: Regenerate.
24
25 2025-04-07 Jonathan Wakely <[email protected]>
26
27 * atomic.c (backtrace_atomic_store_int): Use int for old value.
28
29 2025-02-10 Ian Lance Taylor <[email protected]>
30
31 * elf.c (elf_uncompress_lzma_block): Add casts to avoid
32 potentially shifting a value farther than its type size.
33
34 2025-01-30 Ian Lance Taylor <[email protected]>
35
36 * elf.c (elf_fetch_bits): Add casts to avoid potentially shifting
37 a value farther than its type size.
38 (elf_fetch_bits_backward): Likewise.
39 (elf_uncompress_lzma_block): Likewise.
40 (elf_uncompress_lzma): Likewise.
41
42 2025-01-28 Richard Earnshaw <[email protected]>
43
44 * configure.ac: Always check if the compiler supports __sync
45 operations.
46 * configure: Regenerated.
47
48 2024-12-14 Ian Lance Taylor <[email protected]>
49
50 PR libbacktrace/117812
51 * zstdtest.c (test_large): Use 3 rather than ZSTD_CLEVEL_DEFAULT
52
53 2024-11-29 Ian Lance Taylor <[email protected]>
54
55 * fileline.c: Use WIN32_LEAN_AND_MEAN, not WIN32_MEAN_AND_LEAN.
56 * pecoff.c: Likewise.
57
58 2024-10-25 Ian Lance Taylor <[email protected]>
59
60 * macho.c (dwarf_section_names): Add __debug_addr and
61 __debug_line_str.
62
63 2024-10-18 Ian Lance Taylor <[email protected]>
64
65 * dwarf.c (resolve_unit_addrs_overlap_walk): New static function.
66 (resolve_unit_addrs_overlap): New static function.
67 (build_dwarf_data): Call resolve_unit_addrs_overlap.
68
69 2024-08-05 Ian Lance Taylor <[email protected]>
70
71 * configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wpointer-arith.
72 * pecoff.c (coff_add): Cast void pointers.
73 * xcoff.c (xcoff_add): Likewise.
74 * configure: Regenerate.
75
76 2024-07-30 Ian Lance Taylor <[email protected]>
77
78 * pecoff.c (LDR_DLL_NOTIFICATION): Put function modifier
79 inside parentheses.
80 (LDR_REGISTER_FUNCTION): Likewise.
81
82 2024-07-18 Ian Lance Taylor <[email protected]>
83
84 * internal.h: Use __has_attribute to check for fallthrough
85 attribute.
86 * elf.c (elf_zstd_decompress): Use ATTRIBUTE_FALLTHROUGH rather
87 than a FALLTHROUGH comment.
88
89 2024-07-18 Ian Lance Taylor <[email protected]>
90
91 * print.c (print_syminfo_callback): Add cast to avoid warning.
92
93 2024-07-18 Ian Lance Taylor <[email protected]>
94
95 * print.c (print_syminfo_callback): New static function.
96 (print_callback): Call backtrace_syminfo if there is no function
97 or file name.
98
99 2024-07-18 Ian Lance Taylor <[email protected]>
100
101 * README: Add notes about dl_iterate_phdr.
102
103 2024-07-17 Ian Lance Taylor <[email protected]>
104
105 * xcoff.c (struct xcoff_fileline_data): Change base_address field
106 to struct libbacktrace_base_address.
107 (xcoff_initialize_syminfo): Change base_address to struct
108 libbacktrace_base_address. Use libbacktrace_add_base.
109 (xcoff_initialize_fileline): Likewise.
110 (xcoff_lookup_pc): Use libbacktrace_add_base.
111 (xcoff_add): Change base_address to struct
112 libbacktrace_base_address.
113 (xcoff_armem_add, xcoff_add_shared_libs): Likewise.
114 (backtrace_initialize): Likewise.
115 * Makefile.am (xcoff.lo): Remove unused target.
116 (xcoff_32.lo, xcoff_64.lo): New targets.
117 * Makefile.in: Regenerate.
118
119 2024-07-16 Ian Lance Taylor <[email protected]>
120
121 * internal.h: If FDPIC, #include <link.h> and/or <sys/link.h>.
122 (libbacktrace_using_fdpic): Define.
123 (struct libbacktrace_base_address): Define.
124 (libbacktrace_add_base): Define.
125 (backtrace_dwarf_add): Change base_address to struct
126 libbacktrace_base_address.
127 * dwarf.c (struct dwarf_data): Change base_address to struct
128 libbacktrace_base_address.
129 (add_ranges, find_address_ranges, build_ddress_map): Likewise.
130 (build_dwarf_data, build_dwarf_add): Likewise.
131 (add_low_high_range): Change base_address to struct
132 libbacktrace_base_address. Use libbacktrace_add_base.
133 (add_ranges_from_ranges, add_ranges_from_rnglists): Likewise.
134 (add_line): Use libbacktrace_add_base.
135 * elf.c (elf_initialize_syminfo): Change base_address to struct
136 libbacktrace_base_address. Use libbacktrace_add_base.
137 (elf_add): Change base_address to struct
138 libbacktrace_base_address.
139 (phdr_callback): Likewise. Initialize base_address.m.
140 (backtrace_initialize): If using FDPIC, don't call elf_add with
141 main executable; always use dl_iterate_phdr.
142 * macho.c (macho_add_symtab): Change base_address to struct
143 libbacktrace_base_address. Use libbacktrace_add_base.
144 (macho_syminfo): Change base_address to struct
145 libbacktrace_base_address.
146 (macho_add_fat, macho_add_dsym, macho_add): Likewise.
147 (backtrace_initialize): Likewise. Initialize base_address.m.
148 * pecoff.c (coff_initialize_syminfo): Change base_address to
149 struct libbacktrace_base_address. Use libbacktrace_add_base.
150 (coff_add): Change base_address to struct
151 libbacktrace_base_address. Initialize base_address.m.
152
153 2024-07-12 Ian Lance Taylor <[email protected]>
154
155 * elf.c (elf_add): Don't use .gnu_debugdata if we are already
156 reading a debuginfo file.
157 * Makefile.am (m2test_*): New test targets.
158 (CHECK_PROGRAMS): Add m2test.
159 (MAKETESTS): Add m2test_minidebug2.
160 (%_minidebug2): New pattern.
161 (CLEANFILES): Remove minidebug2 files.
162 * Makefile.in: Regenerate.
163
164 2024-07-12 Ian Lance Taylor <[email protected]>
165
166 * btest.c (test5): Don't fail if symbol size is 0.
167 * mtest.c (test5): Likewise.
168
169 2024-07-12 Ian Lance Taylor <[email protected]>
170
171 * macho.c (MACH_O_N_EXT): Don't define.
172 (MACH_O_N_UNDF): Define.
173 (macho_defined_symbol): Don't discard N_EXT symbols. Do
174 discard N_UNDF symbols.
175
176 2024-07-11 Ian Lance Taylor <[email protected]>
177
178 * btest.c (test1, test3): Add optnone attribute.
179 * edtest.c (test1): Likewise.
180 * mtest.c (test1, test3): Likewise.
181 * configure.ac: Use -Wno-attributes and -Wno-unknown-attributes.
182 * configure: Regenerate.
183
184 2024-07-11 Ian Lance Taylor <[email protected]>
185
186 * elf.c (elf_nodebug): Suggest -g.
187 * macho.c (macho_nodebug): Suggest -g and dsymutil.
188 * pecoff.c (coff_nodebug): Suggest -g.
189
190 2024-07-11 Ian Lance Taylor <[email protected]>
191
192 * dwarf.c: Remove trailing whitespace.
193 * macho.c: Likewise.
194
195 2024-06-16 Ian Lance Taylor <[email protected]>
196
197 * elf.c (elf_fetch_bits_backward) Don't fail if no bits are
198 available.
199
200 2024-05-03 Ian Lance Taylor <[email protected]>
201
202 * pecoff.c (struct dll_notification_data): Define.
203 (LDR_DLL_NOTIFICATION): New typedef.
204 (LDR_REGISTER_FUNCTION): New typedef.
205 (struct dll_notification_context): Define.
206 (dll_notification): New static function.
207 (backtrace_initialize): Register DLL notification.
208
209 2024-04-28 Ian Lance Taylor <[email protected]>
210
211 * configure.ac: Checked for tlhelp32.h
212 * pecoff.c: Include <tlhelp32.h> if available.
213 (backtrace_initialize): Use tlhelp32 api for a snapshot to
214 detect loaded modules.
215 (coff_add): New argument for the module handle of the file,
216 to get the base address.
217 * configure, config.h.in: Regenerate.
218
219 2024-04-23 Ian Lance Taylor <[email protected]>
220
221 * configure.ac: Test --compress-debug-sections=zlib-gnu and
222 --compress-debug-sections=zlib-gabi separately, setting new
223 automake conditionals.
224 * Makefile.am (ctestg, ctestg_alloc): Only build if
225 HAVE_COMPRESSED_DEBUG_ZLIB_GNU.
226 (ctesta, ctesta_alloc): Only build if
227 HAVE_COMPRESSED_DEBUG_ZLIB_GABI.
228 (ctestzstd_alloc): New test if HAVE_COMPRESSED_DEBUG_ZSTD.
229 * configure, Makefile.in: Regenerate.
230
231 2024-03-08 Ian Lance Taylor <[email protected]>
232
233 * elf.c (elf_uncompress_chdr): Don't assume compressed section is
234 aligned.
235
236 2024-03-02 Ian Lance Taylor <[email protected]>
237
238 * Makefile.am (libbacktrace_testing_ldflags): Define.
239 (*_LDFLAGS): Add $(libbacktrace_testing_ldflags) for test
240 programs.
241 * Makefile.in: Regenerate
242
243 2024-03-02 Ian Lance Taylor <[email protected]>
244
245 * elf.c (elf_uncompress_lzma_block): Skip all header padding bytes
246 and verify that they are zero.
247
248 2024-03-02 Ian Lance Taylor <[email protected]>
249
250 PR libbacktrace/114201
251 * elf.c (elf_add): Add caller_opd parameter. Change all callers.
252 Release opd data after all recursive calls.
253
254 2024-03-01 Ian Lance Taylor <[email protected]>
255
256 * elf.c (elf_add): Add the symbol table from a debuginfo file.
257 * Makefile.am (MAKETESTS): Add buildidfull and gnudebuglinkfull
258 variants of buildid and gnudebuglink tests.
259 (%_gnudebuglinkfull, %_buildidfull): New patterns.
260 * Makefile.in: Regenerate.
261
262 2023-11-30 Ian Lance Taylor <[email protected]>
263
264 * pecoff.c: Include <windows.h> if available.
265 (coff_add): On Windows call GetModuleHandle to get base address.
266
267 2023-11-29 Ian Lance Taylor <[email protected]>
268
269 * fileline.c: Include <windows.h> if available.
270 (windows_get_executable_path): New static function.
271 (fileline_initialize): Call windows_get_executable_path.
272 * configure.ac: Checked for windows.h
273 * configure: Regenerate.
274 * config.h.in: Regenerate.
275
276 2023-10-22 Iain Sandoe <[email protected]>
277
278 * configure: Regenerate.
279 * configure.ac: Handle Darwin rpaths.
280
281 2023-08-07 Nick Alcock <[email protected]>
282
283 * configure: Regenerate.
284
285 2023-08-07 Alexander von Gluck IV <[email protected]>
286
287 * configure: Regenerate.
288
289 2023-08-07 Nick Alcock <[email protected]>
290
291 * configure: Regenerate.
292
293 2023-08-07 Nick Alcock <[email protected]>
294
295 * configure: Regenerate.
296
297 2023-08-07 H.J. Lu <[email protected]>
298
299 * configure: Regenerate.
300
301 2023-08-07 H.J. Lu <[email protected]>
302
303 * configure: Regenerate.
304
305 2023-08-03 Richard Biener <[email protected]>
306
307 * zstdtest.c (test_samples): Properly compute the allocation
308 size for the uncompressed data.
309
310 2023-07-31 Ian Lance Taylor <[email protected]>
311
312 * configure.ac: Check for _pgmptr declaration.
313 * fileline.c (fileline_initialize): Check for _pgmfptr before
314 /proc/self/exec.
315 * configure, config.h.in: Regenerate.
316
317 2023-03-28 Ian Lance Taylor <[email protected]>
318
319 * elf.c (elf_zstd_read_fse): Call elf_fetch_bits after reading
320 bits, not before. Add unlikely for error case.
321 (elf_zstd_offset_table): Regenerate.
322 (elf_zstd_read_huff): Clear 13 entries in weight_mark, not 12.
323 (elf_zstd_read_literals): For a single stream adjust by
324 total_streams_size, not compressed_size.
325
326 2023-01-20 Ian Lance Taylor <[email protected]>
327
328 * dwarf.c (struct function_addrs): Change low and high fields to
329 uintptr_t.
330 (struct unit_addrs): Likewise.
331 (resolve_addr_index): Change address parameter to uintptr_t*.
332 (add_unit_addr): Change lowpc and highpc parameters to uintptr_t.
333 (add_function_range): Likewise.
334 (struct pcrange): Change lowpc and highpc fields to uintptr_t.
335 (add_low_high_range): Change add_range lowpc and highpc parameters
336 to uintptr_t.
337 (add_ranges_from_ranges): Likewise.
338 (add_ranges_from_rnglists): Likewise.
339 (add_low_high_range): Chnage lowpc and highpc variables to
340 uintpr_t.
341 (add_ranges_from_rnglists): Change some local variables to
342 uintptr_t.
343 (add_ranges_from_ranges): Change base parameter to uintptr_t.
344 (add_ranges_from_rnglists): Likewise.
345 (read_function_entry): Likewise.
346 (resolve_addr_index): Add explicit casts to uintptr_t.
347 (update_pcrange): Likewise.
348 (add_ranges_from_ranges): Likewise.
349 (add_ranges_from_rnglists): Likewise.
350 (read_function_entry): Likewise.
351
352 2023-01-17 Martin Liska <[email protected]>
353
354 * Makefile.in: Regenerate.
355
356 2023-01-06 Ian Lance Taylor <[email protected]>
357
358 PR libbacktrace/108297
359 * configure.ac: Test whether linker supports --build-id.
360 * Makefile.am: Only run --build-id tests if supported.
361 * configure, Makefile.in: Regenerate.
362
363 2022-12-17 Ian Lance Taylor <[email protected]>
364
365 * elf.c (elf_fetch_backward_init): New static function.
366 (ZSTD_TABLE_SIZE): Use huffman scratch space size rather than
367 literal size.
368 (ZSTD_TABLE_WORK_LIT_SIZE): Don't define.
369 (elf_zstd_read_huff): Use elf_fetch_backward_init.
370 (elf_zstd_read_literals): New static function.
371 (ZSTD_LIT_RAW, ZSTD_LIT_RLE, ZSTD_LIT_HUFF): Don't define.
372 (struct elf_zstd_literals): Don't define.
373 (elf_zstd_literal_output): Remove static function.
374 (elf_zstd_decompress): Use elf_fetch_backward_init and
375 elf_zstd_read_literals. Rewrite literal copying.<
376
377 2022-12-10 Ian Lance Taylor <[email protected]>
378
379 * elf.c (ZSTD_TABLE_*): Use elf_zstd_fse_baseline_entry.
380 (ZSTD_ENCODE_BASELINE_BITS): Define.
381 (ZSTD_DECODE_BASELINE, ZSTD_DECODE_BASEBITS): Define.
382 (elf_zstd_literal_length_base): New static const array.
383 (elf_zstd_match_length_base): Likewise.
384 (struct elf_zstd_fse_baseline_entry): Define.
385 (elf_zstd_make_literal_baseline_fse): New static function.
386 (elf_zstd_make_offset_baseline_fse): Likewise.
387 (elf_zstd_make_match_baseline_fse): Likewise.
388 (print_table, main): Use elf_zstd_fse_baseline_entry.
389 (elf_zstd_lit_table, elf_zstd_match_table): Likewise.
390 (elf_zstd_offset_table): Likewise.
391 (struct elf_zstd_seq_decode): Likewise. Remove use_rle and rle
392 fields.
393 (elf_zstd_unpack_seq_decode): Use elf_zstd_fse_baseline_entry,
394 taking a conversion function. Convert RLE to FSE.
395 (elf_zstd_literal_length_baseline): Remove.
396 (elf_zstd_literal_length_bits): Remove.
397 (elf_zstd_match_length_baseline): Remove.
398 (elf_zstd_match_length_bits): Remove.
399 (elf_zstd_decompress): Use elf_zstd_fse_baseline_entry. Rewrite
400 and simplify main loop.
401
402 2022-12-08 Ian Lance Taylor <[email protected]>
403
404 * configure.ac: Check for zstd library and
405 --compress-debug-sections=zstd linker option.
406 * Makefile.am (zstdtest_*): New targets.
407 (zstdtest_alloc_*, ctestzstd_*): New targets.
408 (BUILDTESTS): Add zstdtest, zstdtest_alloc, ctestzstd as
409 appropriate.
410 * elf.c (ELFCOMPRESS_ZSTD): Define.
411 (elf_fetch_bits): Rename from elf_zlib_fetch. Update uses.
412 (elf_fetch_bits_backward): New static function.
413 (ZLIB_HUFFMAN_*): Rename from HUFFMAN_*. Update uses.
414 (ZLIB_TABLE_*): Rename from ZDEBUG_TABLE_*. Update uses.
415 (ZSTD_TABLE_*): Define.
416 (struct elf_zstd_fse_entry): Define.
417 (elf_zstd_read_fse): New static function.
418 (elf_zstd_build_fse): Likewise.
419 (lit): Define if BACKTRACE_GENERATE_ZSTD_FSE_TABLES.
420 (match, offset, next, print_table, main): Likewise.
421 (elf_zstd_lit_table): New static const array.
422 (elf_zstd_match_table, elf_zstd_offset_table): Likewise.
423 (elf_zstd_read_huff): New static function.
424 (struct elf_zstd_seq_decode): Define.
425 (elf_zstd_unpack_seq_decode): New static function.
426 (ZSTD_LIT_*): Define.
427 (struct elf_zstd_literals): Define.
428 (elf_zstd_literal_output): New static function.
429 (ZSTD_LITERAL_LENGTH_BASELINE_OFFSET): Define.
430 (elf_zstd_literal_length_baseline): New static const array.
431 (elf_zstd_literal_length_bits): Likewise.
432 (ZSTD_MATCH_LENGTH_BASELINE_OFFSET): Define.
433 (elf_zstd_match_length_baseline): New static const array.
434 (elf_zstd_match_length_bits): Likewise.
435 (elf_zstd_decompress): New static function.
436 (ZDEBUG_TABLE_SIZE): New definition.
437 (elf_uncompress_chdr): Support ELF_COMPRESS_ZSTD.
438 (backtrace_uncompress_zstd): New function.
439 (elf_add): Use ZLIB_TABLE_SIZE for zlib-gnu sections.
440 * internal.h (backtrace_uncompress_zstd): Declare.
441 * zstdtest.c: New file.
442 * configure, config.h.in, Makefile.in: Regenerate.
443
444 2022-10-12 Martin Liska <[email protected]>
445
446 * configure: Regenerate.
447
448 2022-10-11 Olivier Hainque <[email protected]>
449 Olivier Hainque <[email protected]>
450
451 * configure: Regenerate.
452
453 2022-07-08 Ian Lance Taylor <[email protected]>
454
455 * configure.ac: Check for sys/link.h. Use either link.h or
456 sys/link.h when checking for dl_iterate_phdr.
457 * elf.c: Include sys/link.h if available.
458 * configure, config.h.in: Regenerate.
459
460 2022-07-07 Ian Lance Taylor <[email protected]>
461
462 * macho.c (backtrace_initialize) [HAVE_MACH_O_DYLD_H]: Don't exit
463 loop if we can't find debug info for one shared library.
464
465 2022-07-07 Ian Lance Taylor <[email protected]>
466
467 * Makefile.am (MAKETESTS): New variable split out of TESTS.
468 (CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS.
469 * Makefile.in: Regenerate.
470
471 2022-06-27 Ian Lance Taylor <[email protected]>
472
473 * configure.ac: Use grep instead of fgrep.
474 * configure, Makefile.in: Regenerate.
475
476 2022-05-28 Ian Lance Taylor <[email protected]>
477
478 PR libbacktrace/105721
479 * README: Update.
480
481 2022-04-05 Ian Lance Taylor <[email protected]>
482
483 * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in
484 uncompressed block.
485
486 2022-02-17 Ian Lance Taylor <[email protected]>
487
488 * dwarf.c (find_address_ranges): Handle skeleton units.
489 (read_function_entry): Likewise.
490
491 2022-02-16 Ian Lance Taylor <[email protected]>
492
493 * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit.
494
495 2022-02-03 David Seifert <[email protected]>
496 Jakub Jelinek <[email protected]>
497
498 * configure.ac: Support --disable-werror.
499 * configure: Regenerate.
500
501 2021-12-28 Francois-Xavier Coudert <[email protected]>
502
503 PR libbacktrace/103822
504 * Makefile.am: Fix newline.
505 * Makefile.in: Regenerate.
506
507 2021-11-12 Martin Liska <[email protected]>
508
509 PR libbacktrace/103167
510 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
511 (elf_uncompress_lzma): Likewise.
512 * xztest.c (test_samples): memcpy only if v > 0.
513
514 2021-10-22 Martin Liska <[email protected]>
515
516 PR testsuite/102742
517 * btest.c (MIN_DESCRIPTOR): New.
518 (MAX_DESCRIPTOR): Likewise.
519 (check_available_files): Likewise.
520 (check_open_files): Check only file descriptors that
521 were not available at the entry.
522 (main): Call check_available_files.
523
524 2021-08-13 Sergei Trofimovich <[email protected]>
525
526 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
527 output with LANG=C.
528
529 2021-06-28 Clément Chigot <[email protected]>
530
531 * xcoff.c (SSUBTYP_DWRNGES): New define.
532 (xcoff_add): Use correct XCOFF DWARF section subtype
533 for DEBUG_RANGES. Remove lineoff workaround.
534 Adjust base_address.
535 (xcoff_initialize_syminfo): Adapt to new base_address.
536 (xcoff_lookup_pc): Likewise.
537 (xcoff_initialize_fileline): Likewise.
538
539 2021-05-03 H.J. Lu <[email protected]>
540
541 PR bootstrap/99703
542 * configure: Regenerated.
543
544 2021-03-03 Ian Lance Taylor <[email protected]>
545
546 * dwarf.c (read_line_program): Don't special case file 0.
547 (read_function_entry): Likewise.
548
549 2021-03-02 Ian Lance Taylor <[email protected]>
550
551 PR libbacktrace/98818
552 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
553 callers.
554 * backtrace.h: Update backtrace_error_callback comment.
555
556 2021-02-12 Ian Lance Taylor <[email protected]>
557
558 * configure.ac: Check for objcopy --add-gnu-debuglink by using
559 objcopy --help.
560 * configure: Regenerate
561
562 2021-01-18 Ian Lance Taylor <[email protected]>
563
564 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
565 * Makefile.in: Regenerate.
566 * configure: Regenerate.
567
568 2021-01-18 Ian Lance Taylor <[email protected]>
569
570 PR debug/98716
571 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
572 filenames.
573 (read_line_program): Remove parameter u, change caller. Don't
574 subtract one from dirs and filenames index.
575 (read_function_entry): Don't subtract one from filenames index.
576
577 2021-01-05 Samuel Thibault <[email protected]>
578
579 * configure: Re-generate.
580
581 2020-12-05 Iain Sandoe <[email protected]>
582
583 PR target/97865
584 * configure: Regenerate.
585
586 2020-12-02 Ian Lance Taylor <[email protected]>
587
588 * dwarf.c (resolve_string): Use > rather than >= to check whether
589 string index extends past buffer.
590 (resolve_addr_index): Similarly for address index.
591
592 2020-11-29 John David Anglin <[email protected]>
593
594 * configure: Regenerate.
595
596 2020-10-20 Ian Lance Taylor <[email protected]>
597
598 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
599 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
600
601 2020-09-28 Ian Lance Taylor <[email protected]>
602
603 PR libbacktrace/97082
604 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
605 * Makefile.in: Regenerate.
606
607 2020-09-28 Ian Lance Taylor <[email protected]>
608
609 PR libbacktrace/97227
610 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
611 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
612 * configure: Regenerate.
613 * Makefile.in: Regenerate.
614
615 2020-09-23 Ian Lance Taylor <[email protected]>
616
617 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
618 p->low.
619 (dwarf_lookup_pc): Likewise.
620
621 2020-09-17 Ian Lance Taylor <[email protected]>
622
623 PR libbacktrace/97080
624 * fileline.c (backtrace_syminfo_to_full_callback): New function.
625 (backtrace_syminfo_to_full_error_callback): New function.
626 * elf.c (elf_nodebug): Call syminfo_fn if possible.
627 * internal.h (struct backtrace_call_full): Define.
628 (backtrace_syminfo_to_full_callback): Declare.
629 (backtrace_syminfo_to_full_error_callback): Declare.
630 * mtest.c (f3): Only check all[i] if data.index permits.
631
632 2020-09-16 Iain Sandoe <[email protected]>
633
634 * macho.c (MACH_O_CPU_TYPE_PPC): New.
635 (MACH_O_CPU_TYPE_PPC64): New.
636 Add compile-tests for powerpc to the Mach-O variants.
637
638 2020-09-14 Ian Lance Taylor <[email protected]>
639
640 PR libbacktrace/93608
641 Add support for MiniDebugInfo.
642 * elf.c (struct elf_view): Define. Replace most uses of
643 backtrace_view with elf_view.
644 (elf_get_view): New static functions. Replace most calls of
645 backtrace_get_view with elf_get_view.
646 (elf_release_view): New static functions. Replace most calls of
647 backtrace_release_view with elf_release_view.
648 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
649 callers.
650 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
651 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
652 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
653 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
654 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
655 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
656 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
657 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
658 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
659 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
660 (LZMA_PROB_DIST_ALIGN_LEN): Define.
661 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
662 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
663 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
664 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
665 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
666 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
667 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
668 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
669 (LZMA_PROB_REP_LEN_MID_LEN): Define.
670 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
671 (LZMA_PROB_LITERAL_LEN): Define.
672 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
673 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
674 (LZMA_PROB_IS_REP2_OFFSET): Define.
675 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
676 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
677 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
678 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
679 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
680 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
681 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
682 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
683 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
684 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
685 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
686 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
687 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
688 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
689 (LZMA_PROB_LITERAL_OFFSET): Define.
690 (LZMA_PROB_TOTAL_COUNT): Define.
691 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
692 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
693 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
694 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
695 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
696 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
697 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
698 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
699 (elf_lzma_varint): New static function.
700 (elf_lzma_range_normalize): New static function.
701 (elf_lzma_bit, elf_lzma_integer): New static functions.
702 (elf_lzma_reverse_integer): New static function.
703 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
704 (elf_uncompress_lzma): New static function.
705 (backtrace_uncompress_lzma): New function.
706 (elf_add): Add memory and memory_size parameters. Change all
707 callers. Look for .gnu_debugdata section, and, if found,
708 decompress it and use it for symbols and debug info. Permit the
709 descriptor parameter to be -1.
710 * internal.h (backtrace_uncompress_lzma): Declare.
711 * mtest.c: New file.
712 * xztest.c: New file.
713 * configure.ac: Check for nm, xz, and comm programs. Check for
714 liblzma library.
715 (HAVE_MINIDEBUG): Define.
716 * Makefile.am (mtest_SOURCES): Define.
717 (mtest_CFLAGS, mtest_LDADD): Define.
718 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
719 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
720 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
721 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
722 (xztest_alloc_LDADD): Define.
723 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
724 (CLEANFILES): Add files created by minidebug pattern.
725 (btest.lo): Correct INCDIR reference.
726 (mtest.lo, xztest.lo, ztest.lo): New targets.
727 * configure: Regenerate.
728 * config.h.in: Regenerate.
729 * Makefile.in: Regenerate.
730
731 2020-09-09 Ian Lance Taylor <[email protected]>
732
733 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
734 (coff_add): Determine and pass is_64.
735
736 2020-09-09 Ian Lance Taylor <[email protected]>
737
738 PR libbacktrace/96973
739 * fileline.c (macho_get_executable_path): New static function.
740 (fileline_initialize): Call macho_get_executable_path.
741
742 2020-09-09 Ian Lance Taylor <[email protected]>
743
744 * dwarf.c (function_addrs_search): Compare against the next entry
745 low address, not the high address.
746 (unit_addrs_search): Likewise.
747 (build_address_map): Add a trailing unit_addrs.
748 (read_function_entry): Add a trailing function_addrs.
749 (read_function_info): Likewise.
750 (report_inlined_functions): Search backward for function_addrs
751 match.
752 (dwarf_lookup_pc): Search backward for unit_addrs and
753 function_addrs matches.
754
755 2020-09-08 Ian Lance Taylor <[email protected]>
756
757 * simple.c (simple_unwind): Correct comment spelling.
758
759 2020-09-08 Ian Lance Taylor <[email protected]>
760
761 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
762 correct length when freeing diralc.
763
764 2020-09-08 Ian Lance Taylor <[email protected]>
765
766 PR libbacktrace/96973
767 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
768
769 2020-09-08 Ian Lance Taylor <[email protected]>
770
771 PR libbacktrace/96971
772 * filetype.awk: Only match magic number at start of line.
773
774 2020-08-24 Ian Lance Taylor <[email protected]>
775
776 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
777 (MACH_O_MH_CIGAM_FAT_64): Define.
778 (struct macho_fat_arch_64): Define.
779 (macho_add_fat): Add and use is_64 parameter.
780 (macho_add): Recognize 64-bit fat files.
781
782 2020-07-30 H.J. Lu <[email protected]>
783
784 PR bootstrap/96202
785 * configure: Regenerated.
786
787 2020-07-08 Ian Lance Taylor <[email protected]>
788
789 * configure.ac: Test linker support for DWARF5
790 * configure: Regenerate
791
792 2020-05-29 H.J. Lu <[email protected]>
793
794 PR bootstrap/95413
795 * configure: Regenerated.
796
797 2020-05-15 H.J. Lu <[email protected]>
798
799 PR bootstrap/95147
800 * configure: Regenerated.
801
802 2020-05-14 H.J. Lu <[email protected]>
803
804 * configure: Regenerated.
805
806 2020-05-13 Ian Lance Taylor <[email protected]>
807
808 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
809
810 2020-05-13 Ian Lance Taylor <[email protected]>
811
812 PR go/95061
813 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
814
815 2020-05-12 H.J. Lu <[email protected]>
816
817 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
818 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
819 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
820 enabled.
821 * Makefile.in: Regenerated.
822 * configure: Likewise.
823
824 2020-05-11 Ian Lance Taylor <[email protected]>
825
826 PR libbacktrace/95012
827 * configure.ac: Check for getpagesize declaration.
828 * mmap.c: Declare getpagesize if necessary.
829 * mmapio.c: Likewise.
830 * configure: Regenerate.
831 * config.h.in: Regenerate.
832 * Makefile.in: Regenerate.
833
834 2020-05-09 Roland McGrath <[email protected]>
835
836 * elf.c (elf_add): Bail early if there are no section headers at all.
837
838 2020-05-09 Ian Lance Taylor <[email protected]>
839
840 * elf.c (elf_add): Don't free strtab if an error occurs after
841 recording symbol information.
842
843 2020-05-09 Ian Lance Taylor <[email protected]>
844
845 PR libbacktrace/88745
846 * macho.c: New file.
847 * filetype.awk: Recognize Mach-O files.
848 * Makefile.am (FORMAT_FILES): Add macho.c.
849 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
850 (%.dSYM): New pattern target.
851 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
852 (test_macho_LDADD): New target.
853 (BUILDTESTS): Add test_macho.
854 (macho.lo): Add dependencies.
855 * configure.ac: Recognize macho file type. Check for
856 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
857 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
858 * Makefile.in: Regenerate.
859 * configure: Regenerate.
860 * config.h.in: Regenerate.
861
862 2020-05-09 Ian Lance Taylor <[email protected]>
863
864 * read.c (backtrace_get_view): Support short read.
865
866 2020-05-09 Ian Lance Taylor <[email protected]>
867
868 * elf.c (elf_add): If debug sections are very large or far apart,
869 read them individually rather than as a single view.
870
871 2020-05-08 Ian Lance Taylor <[email protected]>
872
873 * fileline.c (sysctl_exec_name): New static function.
874 (sysctl_exec_name1): New macro or static function.
875 (sysctl_exec_name2): Likewise.
876 (fileline_initialize): Try sysctl_exec_name[12].
877 * configure.ac: Check for sysctl args to fetch executable name.
878 * configure: Regenerate.
879 * config.h.in: Regenerate.
880
881 2020-02-15 Ian Lance Taylor <[email protected]>
882
883 * ztest.c (test_large): Update file to current libgo test file.
884
885 2020-02-03 Ian Lance Taylor <[email protected]>
886
887 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
888 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
889 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
890 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
891 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
892 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
893 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
894 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
895 (stest_alloc_CFLAGS): Likewise.
896 * Makefile.in: Regenerate.
897 * ztest.c (error_callback_compress): Mark vdata unused.
898 (test_large): Add casts to avoid warnings.
899
900 2020-01-01 Jakub Jelinek <[email protected]>
901
902 Update copyright years.
903
904 2019-12-13 Ian Lance Taylor <[email protected]>
905
906 Add DWARF 5 support.
907 * dwarf.c (struct attr): Add val field.
908 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
909 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
910 (struct line_header): Add addrsize field.
911 (struct line_header_format): Define.
912 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
913 fields.
914 (read_uint24): New static function.
915 (read_attribute): Add implicit_val parameter. Replace dwarf_str
916 and dwarf_str_size parameters with dwarf_sections parameter. Add
917 support for new DWARF 5 forms. Change all callers.
918 (resolve_string): New static function.
919 (resolve_addr_index): Likewise.
920 (read_abbrevs): Support DW_FORM_implicit_const.
921 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
922 and ranges_is_index fields.
923 (update_pcrange): Support DWARF 5 encodings.
924 (add_high_low_range): New static function, split out of
925 add_ranges.
926 (add_ranges_from_ranges): Likewise.
927 (add_ranges_from_rnglists): New static function.
928 (add_ranges): Just call new helper functions.
929 (find_address_ranges): Use resolve_string for strings, after
930 reading all attributes. Handle new DWARF 5 attributes.
931 (build_address_map): Support DWARF 5 compilation units.
932 (read_v2_paths): New static function, split out of
933 read_line_header.
934 (read_lnct): New static function.
935 (read_line_header_format_entries): Likewise.
936 (read_line_header): Add ddata parameter. Support DWARF 5 line
937 headers. Call new helper functions. Change all callers.
938 (read_line_program): Use addrsize from line program header. Don't
939 special case directory index 0 for DWARF 5.
940 (read_referenced_name): Use resolve_string.
941 (read_function_entry): Handle DWARF 5 encodings. Use
942 resolve_string.
943 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
944 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
945 * elf.c (dwarf_section_names): Add new section names.
946 * pecoff.c (dwarf_section_names): Likewise.
947 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
948 fields.
949 * configure.ac: Define HAVE_DWARF5 automake conditional.
950 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
951 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
952 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
953 (dwarf5_alloc_LDADD): Likewise.
954 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
955 (CLEANFILES, clean-local): Define.
956
957 2019-12-08 Ian Lance Taylor <[email protected]>
958
959 * dwarf.c (struct pcrange): Define.
960 (update_pcrange, add_ranges): New static functions.
961 (add_unit_addr): Change signature to work with add_ranges. Don't
962 add base_address here.
963 (add_unit_ranges): Remove.
964 (find_address_ranges): Replace str/ranges parameters with
965 dwarf_sections. Use update_pcrange and add_ranges. Change all
966 callers.
967 (add_function_range): Change signature to work with add_ranges.
968 Don't add base_address here.
969 (add_function_ranges): Remove.
970 (read_function_entry): Use update_pcrange and add_ranges.
971
972 2019-12-04 Ian Lance Taylor <[email protected]>
973
974 * edtest.c (test1): Add noclone attribute.
975
976 2019-12-04 Ian Lance Taylor <[email protected]>
977
978 * internal.h (enum dwarf_section): Define.
979 (struct dwarf_sections): Define.
980 (backtrace_dwarf_add): Update declaration to replace specific
981 section parameters with dwarf_sections parameter.
982 * dwarf.c (struct dwarf_data): Replace specific section fields
983 with dwarf_sections field.
984 (read_attribute): Use dwarf_sections with altlink.
985 (build_address_map): Replace specific section parameters with
986 dwarf_sections parameter. Change all callers.
987 (read_line_info): Use dwarf_sections with ddata.
988 (read_referenced_name): Likewise.
989 (add_function_ranges): Likewise.
990 (read_function_entry): Likewise.
991 (read_function_info): Likewise.
992 (build_dwarf_data): Replace specific section parameters with
993 dwarf_sections parameter. Change all callers.
994 (backtrace_dwarf_add): Likewise.
995 * elf.c (enum debug_section): Remove.
996 (dwarf_section_names): Remove .zdebug names.
997 (elf_add): Track zsections separately. Build dwarf_sections.
998 * pecoff.c (enum debug_section): Remove.
999 (struct debug_section_info): Remove data field.
1000 (coff_add): Build dwarf_sections.
1001 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
1002 references with DEBUG_xxx references.
1003 (xcoff_add): Build dwarf_sections.
1004
1005 2019-09-27 Maciej W. Rozycki <[email protected]>
1006
1007 * configure: Regenerate.
1008
1009 2019-09-26 Ian Lance Taylor <[email protected]>
1010
1011 PR libbacktrace/91908
1012 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
1013 __sync_bool_compare_and_swap to void.
1014 * xcoff.c (backtrace_initialize): Likewise.
1015
1016 2019-09-03 Ulrich Weigand <[email protected]>
1017
1018 * configure.ac: Remove references to spu.
1019 * configure: Regenerate.
1020
1021 2019-05-24 Clement Chigot <[email protected]>
1022
1023 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
1024 test_elf_64.
1025 * Makefile.in: Regenerate.
1026
1027 2019-05-14 Rainer Orth <[email protected]>
1028
1029 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
1030 handling.
1031 * configure: Regenerate.
1032
1033 2019-03-11 Ian Lance Taylor <[email protected]>
1034
1035 PR libbacktrace/89669
1036 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
1037 HAVE_ELF.
1038 * Makefile.in: Regenerate.
1039
1040 2019-02-26 Tom de Vries <[email protected]>
1041
1042 * btest.c (test5): Allow global.* as minimal symbol name for global.
1043
1044 2019-02-26 Tom de Vries <[email protected]>
1045
1046 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
1047 * Makefile.in: Regenerate.
1048
1049 2019-02-12 Tom de Vries <[email protected]>
1050
1051 PR libbacktrace/81983
1052 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
1053
1054 2019-02-10 Tom de Vries <[email protected]>
1055
1056 * Makefile.am (BUILDTESTS): Add btest_lto.
1057 * Makefile.in: Regenerate.
1058 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
1059 __attribute__((noclone)).
1060
1061 2019-02-08 Tom de Vries <[email protected]>
1062
1063 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
1064 * print.c (backtrace_print): Same.
1065 * simple.c (backtrace_simple): Same.
1066
1067 2019-02-08 Tom de Vries <[email protected]>
1068
1069 PR libbacktrace/78063
1070 * dwarf.c (build_address_map): Keep all parsed units.
1071 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
1072
1073 2019-01-31 Tom de Vries <[email protected]>
1074
1075 PR libbacktrace/89136
1076 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
1077 'debugaltlink_name_len =+ 1'.
1078
1079 2019-01-29 Tom de Vries <[email protected]>
1080
1081 * install-debuginfo-for-buildid.sh.in: New script.
1082 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
1083 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
1084 * Makefile.in: Regenerate.
1085 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
1086 (READELF): Set with AC_CHECK_PROG.
1087 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
1088 * configure: Regenerate.
1089 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
1090 (elf_open_debugfile_by_buildid): ... here.
1091
1092 2019-01-29 Tom de Vries <[email protected]>
1093
1094 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
1095 allocfail.
1096 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
1097 (check_PROGRAMS): Add BUILDTESTS.
1098 * Makefile.in: Regenerate.
1099
1100 2019-01-28 Tom de Vries <[email protected]>
1101
1102 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
1103 Use $< to access prerequisite.
1104 * Makefile.in: Regenerate.
1105
1106 2019-01-25 Nathan Sidwell <[email protected]>
1107
1108 * elf.c (elf_add): Pass "" filename to recursive call with
1109 separated debug.
1110
1111 2019-01-25 Tom de Vries <[email protected]>
1112
1113 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
1114 filename == "".
1115 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
1116 * Makefile.in: Regenerate.
1117
1118 2019-01-25 Tom de Vries <[email protected]>
1119
1120 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
1121 (TESTS): Rename dtest to btest_gnudebuglink.
1122 * Makefile.in: Regenerate.
1123
1124 2019-01-23 Tom de Vries <[email protected]>
1125
1126 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
1127 (units_search, find_unit): Use size_t for offset.
1128 (build_address_map): Use size_t for unit_offset.
1129
1130 2019-01-20 Gerald Pfeifer <[email protected]>
1131
1132 * allocfail.c (main): Increase portability of printf statement.
1133
1134 2019-01-18 Ian Lance Taylor <[email protected]>
1135
1136 PR libbacktrace/88890
1137 * mmapio.c (backtrace_get_view): Change size parameter to
1138 uint64_t. Check that value fits in size_t.
1139 * read.c (backtrace_get_view): Likewise.
1140 * internal.h (backtrace_get_view): Update declaration.
1141 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
1142
1143 2019-01-17 Tom de Vries <[email protected]>
1144
1145 PR libbacktrace/82857
1146 * configure.ac (DWZ): Set with AC_CHECK_PROG.
1147 (HAVE_DWZ): Set with AM_CONDITIONAL.
1148 * configure: Regenerate.
1149 * Makefile.am (TESTS): Add btest_dwz.
1150 * Makefile.in: Regenerate.
1151
1152 2019-01-17 Tom de Vries <[email protected]>
1153
1154 PR libbacktrace/82857
1155 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
1156 (read_attribute): Handle DW_FORM_GNU_ref_alt using
1157 ATTR_VAL_REF_ALT_INFO.
1158 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
1159
1160 2019-01-17 Tom de Vries <[email protected]>
1161
1162 * dwarf.c (struct unit): Add low_offset and high_offset fields.
1163 (struct unit_vector): New type.
1164 (struct dwarf_data): Add units and units_counts fields.
1165 (find_unit): New function.
1166 (find_address_ranges): Add and handle unit_tag parameter.
1167 (build_address_map): Add and handle units_vec parameter.
1168 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
1169 units vector.
1170
1171 2019-01-17 Tom de Vries <[email protected]>
1172
1173 PR libbacktrace/82857
1174 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
1175 using altlink.
1176
1177 2019-01-17 Tom de Vries <[email protected]>
1178
1179 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
1180 (read_attribute): Add altlink parameter. Handle missing altlink for
1181 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
1182 (find_address_ranges, build_address_map, build_dwarf_data): Add and
1183 handle altlink parameter.
1184 (read_referenced_name, read_function_entry): Add argument to
1185 read_attribute call.
1186
1187 2019-01-17 Tom de Vries <[email protected]>
1188
1189 * dwarf.c (struct dwarf_data): Add altlink field.
1190 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
1191 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
1192 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
1193 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
1194 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
1195 * xcoff.c (xcoff_add): Same.
1196
1197 2019-01-17 Tom de Vries <[email protected]>
1198
1199 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
1200 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
1201 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
1202 argument to backtrace_dwarf_add call.
1203 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
1204 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
1205 * xcoff.c (xcoff_add): Same.
1206
1207 2019-01-17 Tom de Vries <[email protected]>
1208
1209 * elf.c (elf_add): Add and handle with_buildid_data and
1210 with_buildid_size parameters. Handle .gnu_debugaltlink section.
1211 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
1212
1213 2019-01-16 Tom de Vries <[email protected]>
1214
1215 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
1216 of ...
1217 (read_referenced_name): ... here, and ...
1218 (read_function_entry): ... here.
1219
1220 2019-01-16 Tom de Vries <[email protected]>
1221
1222 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
1223 name.
1224 (read_function_entry): Same. Don't allow name found via
1225 DW_AT_abstract_origin or case DW_AT_specification to override linkage
1226 name.
1227
1228 2019-01-09 Sandra Loosemore <[email protected]>
1229
1230 PR other/16615
1231
1232 * backtrace.h: Mechanically replace "can not" with "cannot".
1233
1234 2019-01-01 Jakub Jelinek <[email protected]>
1235
1236 Update copyright years.
1237
1238 2018-12-29 Gerald Pfeifer <[email protected]>
1239
1240 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
1241 in sed pattern.
1242 * Makefile.in: Regenerate.
1243
1244 2018-12-28 Tom de Vries <[email protected]>
1245
1246 * dwarf.c (build_address_map): Reuse unused units.
1247
1248 2018-12-28 Tom de Vries <[email protected]>
1249
1250 * dwarf.c (build_address_map): Simplify by removing local variable
1251 abbrevs.
1252
1253 2018-12-28 Ian Lance Taylor <[email protected]>
1254 Tom de Vries <[email protected]>
1255
1256 PR libbacktrace/88063
1257 * dwarf.c (free_unit_addrs_vector): Remove.
1258 (build_address_map): Keep track of allocated units in vector. Free
1259 allocated units and corresponding abbrevs upon failure. Remove now
1260 redundant call to free_unit_addrs_vector. Free addrs vector upon
1261 failure. Free allocated unit vector.
1262
1263 2018-12-28 Tom de Vries <[email protected]>
1264
1265 * dwarf.c (build_address_map): Free addrs vector upon failure.
1266
1267 2018-12-14 Tom de Vries <[email protected]>
1268
1269 PR testsuite/88491
1270 * allocfail.sh: Remove "set -o pipefail".
1271
1272 2018-12-12 Tom de Vries <[email protected]>
1273
1274 * Makefile.am (TESTS): Add allocfail.sh.
1275 (check_PROGRAMS): Add allocfail.
1276 * Makefile.in: Regenerate.
1277 * instrumented_alloc.c: New file. Redefine malloc and realloc.
1278 Include alloc.c.
1279 * allocfail.c: New file.
1280 * allocfail.sh: New file.
1281
1282 2018-11-30 Tom de Vries <[email protected]>
1283
1284 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
1285 test_xcoff_64, test_pecoff and test_unknown.
1286 * Makefile.in: Regenerate.
1287 * test_format.c: New file.
1288
1289 2018-11-30 Tom de Vries <[email protected]>
1290
1291 * Makefile.am : Add _with_alloc version for each test in
1292 check_PROGRAMS.
1293 * Makefile.in: Regenerate.
1294
1295 2018-11-30 Tom de Vries <[email protected]>
1296
1297 * internal.h (backtrace_vector_free): New static inline fuction,
1298 factored out of ...
1299 * dwarf.c (read_line_info): ... here.
1300
1301 2018-11-28 Tom de Vries <[email protected]>
1302
1303 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
1304 failure.
1305
1306 2018-11-27 Tom de Vries <[email protected]>
1307
1308 * mmap.c (backtrace_vector_release): Same.
1309 * unittest.c (test1): Add check.
1310
1311 2018-11-27 Tom de Vries <[email protected]>
1312
1313 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
1314 instead of realloc.
1315 * Makefile.am (check_PROGRAMS): Add unittest.
1316 * Makefile.in: Regenerate.
1317 * unittest.c: New file.
1318
1319 2018-11-22 Tom de Vries <[email protected]>
1320
1321 * dwarf.c (read_initial_length): Factor out of ...
1322 (build_address_map, read_line_info): ... here.
1323
1324 2018-11-21 Tom de Vries <[email protected]>
1325
1326 * dwarf.c (read_string): Factor out of ...
1327 (read_attribute, read_line_header, read_line_program): ... here.
1328
1329 2018-10-31 Joseph Myers <[email protected]>
1330
1331 PR bootstrap/82856
1332 * Makefile.am: Include multilib.am.
1333 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
1334 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1335
1336 2018-10-05 Ian Lance Taylor <[email protected]>
1337
1338 PR libbacktrace/87529
1339 * backtrace.h: Document that backtrace_create_state should be
1340 called only once.
1341
1342 2018-08-05 Iain Buclaw <[email protected]>
1343
1344 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
1345 * Makefile.in: Regenerate.
1346 * config.h.in: Likewise.
1347 * configure: Likewise.
1348
1349 2018-08-01 Tony Reix <[email protected]>
1350
1351 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
1352 (struct xcoff_func, struct xcoff_func_vector): New structs.
1353 (xcoff_syminfo): Drop leading dot from symbol name.
1354 (xcoff_line_compare, xcoff_line_search): Remove.
1355 (xcoff_func_compare, xcoff_func_search): New static functions.
1356 (xcoff_lookup_pc): Search function table.
1357 (xcoff_add_line, xcoff_process_linenos): Remove.
1358 (xcoff_initialize_fileline): Build function table.
1359
1360 2018-06-21 Denis Khalikov <[email protected]>
1361
1362 PR other/86198
1363 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
1364 checking up to 36 bytes.
1365
1366 2018-04-24 H.J. Lu <[email protected]>
1367
1368 * configure: Regenerated.
1369
1370 2018-04-19 Jakub Jelinek <[email protected]>
1371
1372 * configure: Regenerated.
1373
1374 2018-04-17 Ian Lance Taylor <[email protected]>
1375
1376 * backtrace.c: Revert last two changes. Don't call mmap
1377 directly.
1378
1379 2018-04-17 Ian Lance Taylor <[email protected]>
1380
1381 * backtrace.c: Include backtrace-supported.h before checking
1382 BACKTRACE_USES_MALLOC.
1383
1384 2018-04-17 Ian Lance Taylor <[email protected]>
1385
1386 * backtrace.c (backtrace_full): When testing whether we can
1387 allocate memory, call mmap directly, and munmap the memory.
1388
1389 2018-04-04 Jakub Jelinek <[email protected]>
1390
1391 PR other/85161
1392 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
1393 big endian, only use 32-bit loads if endianity macros are predefined
1394 and indicate big or little endian.
1395
1396 2018-02-14 Igor Tsimbalist <[email protected]>
1397
1398 PR target/84148
1399 * configure: Regenerate.
1400
1401 2018-02-15 Jakub Jelinek <[email protected]>
1402
1403 PR other/82368
1404 * elf.c (SHT_PROGBITS): Undefine and define.
1405
1406 2018-02-14 Jakub Jelinek <[email protected]>
1407
1408 PR other/82368
1409 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
1410 (struct elf_ppc64_opd_data): New type.
1411 (elf_initialize_syminfo): Add opd argument, handle symbols
1412 pointing into the PowerPC64 ELFv1 .opd section.
1413 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
1414 to structure with .opd data to elf_initialize_syminfo.
1415
1416 2018-01-31 Ian Lance Taylor <[email protected]>
1417
1418 * elf.c (elf_add): Close descriptor if we use a debugfile.
1419 * btest.c (check_open_files): New static function.
1420 (main): Call check_open_files.
1421
1422 2018-01-25 Ian Lance Taylor <[email protected]>
1423
1424 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
1425 desired CRC is zero.
1426 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
1427
1428 2018-01-25 Ian Lance Taylor <[email protected]>
1429
1430 * pecoff.c (coff_add): Only release syms_view if it is valid.
1431
1432 2018-01-25 Ian Lance Taylor <[email protected]>
1433
1434 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
1435
1436 2018-01-24 Ian Lance Taylor <[email protected]>
1437
1438 * pecoff.c (coff_add): Use coff_read4, not memcpy.
1439
1440 2018-01-24 Ian Lance Taylor <[email protected]>
1441
1442 PR other/68239
1443 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
1444 on the free list.
1445
1446 2018-01-19 Tony Reix <[email protected]>
1447
1448 * xcoff.c (xcoff_incl_compare): New function.
1449 (xcoff_incl_search): New function.
1450 (xcoff_process_linenos): Use bsearch to find include file.
1451 (xcoff_initialize_fileline): Sort include file information.
1452
1453 2018-01-16 Ian Lance Taylor <[email protected]>
1454
1455 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
1456 288.
1457 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
1458 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
1459 (elf_zlib_default_table): Update.
1460 (elf_zlib_default_dist_table): New static array.
1461 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
1462 for block type 1.
1463 * ztest.c (struct zlib_test): Add uncompressed_len.
1464 (tests): Initialize uncompressed_len field. Add new test case.
1465 (test_samples): Use uncompressed_len field.
1466
1467 2018-01-03 Jakub Jelinek <[email protected]>
1468
1469 Update copyright years.
1470
1471 2017-11-17 Igor Tsimbalist <[email protected]>
1472
1473 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
1474 * aclocal.m4: Regenerate.
1475 * Makefile.in: Likewise.
1476 * configure: Likewise.
1477
1478 2017-10-06 Ian Lance Taylor <[email protected]>
1479
1480 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
1481 zlib uncompress function.
1482
1483 2017-10-05 Ian Lance Taylor <[email protected]>
1484
1485 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
1486 Read a four byte integer.
1487 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
1488 boundary before ever calling elf_zlib_fetch.
1489 * ztest.c (test_large): Simplify print statements a bit.
1490
1491 2017-10-02 Ian Lance Taylor <[email protected]>
1492
1493 * ztest.c: #include <errno.h>.
1494 (TEST_TIMING): Don't define, don't test.
1495 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
1496 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
1497 (ZLIB_CLOCK_GETTIME_ARG): Define.
1498 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
1499 * Makefile.am: Likewise.
1500 * configure, Makefile.in: Rebuild.
1501
1502 2017-10-02 Thomas Schwinge <[email protected]>
1503
1504 PR other/67165
1505 * Makefile.am: Append the content of clock_gettime_link to
1506 ztest_LDADD.
1507 * configure.ac: Test for the case that clock_gettime is in librt.
1508 * Makefile.in: Regenerate.
1509 * configure: Likewise.
1510
1511 PR other/67165
1512 * configure.ac: Check for clock_gettime.
1513 * config.h.in: Regenerate.
1514 * configure: Likewise.
1515 * ztest.c (average_time, test_large): Conditionalize test timing
1516 on clock_gettime availability.
1517
1518 2017-09-29 Tony Reix <[email protected]>
1519
1520 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1521 (STYP_DWARF, SSUBTYP_DW*): Define.
1522 (enum dwarf_section): Define.
1523 (struct dwsect_info): Define.
1524 (xcoff_add): Look for DWARF sections, pass them to
1525 backtrace_dwarf_add.
1526
1527 2017-09-28 Ian Lance Taylor <[email protected]>
1528
1529 PR other/67165
1530 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1531 (unlikely): Define.
1532 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1533 (b_elf_chdr): Define type.
1534 (enum debug_section): Add ZDEBUG_xxx values.
1535 (debug_section_names): Add names for new sections.
1536 (struct debug_section_info): Add compressed field.
1537 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1538 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1539 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1540 (HUFFMAN_SECONDARY_SHIFT): Define.
1541 (ZDEBUG_TABLE_SIZE): Define.
1542 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1543 (final_next_secondary): New static variable if
1544 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1545 (elf_zlib_inflate_table): New static function.
1546 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1547 function to produce fixed Huffman table.
1548 (elf_zlib_default_table): New static variable.
1549 (elf_zlib_inflate): New static function.
1550 (elf_zlib_verify_checksum): Likewise.
1551 (elf_zlib_inflate_and_verify): Likewise.
1552 (elf_uncompress_zdebug): Likewise.
1553 (elf_uncompress_chdr): Likewise.
1554 (backtrace_uncompress_zdebug): New extern function.
1555 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1556 sections, and uncompress them.
1557 * internal.h (backtrace_compress_zdebug): Declare.
1558 * ztest.c: New file.
1559 * configure.ac: Check for -lz and check whether the linker
1560 supports --compress-debug-sections.
1561 * Makefile.am (ztest_SOURCES): New variable.
1562 (ztest_CFLAGS, ztest_LDADD): New variables.
1563 (check_PROGRAMS): Add ztest.
1564 (ctestg_SOURCES): New variable.
1565 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1566 (ctesta_SOURCES): New variable.
1567 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1568 (check_PROGRAMS): Add ctestg and ctesta.
1569 * configure, config.h.in, Makefile.in: Rebuild.
1570
1571 2017-09-22 Ian Lance Taylor <[email protected]>
1572
1573 PR sanitizer/77631
1574 * configure.ac: Check for lstat and readlink.
1575 * elf.c (lstat, readlink): Provide dummy versions if real versions
1576 are not available.
1577 * configure, config.h.in: Rebuild.
1578
1579 2017-09-21 Ian Lance Taylor <[email protected]>
1580
1581 PR go/82284
1582 * elf.c (backtrace_initialize): Set pd.exe_filename.
1583
1584 2017-09-20 Ian Lance Taylor <[email protected]>
1585 Denis Khalikov <[email protected]>
1586
1587 PR sanitizer/77631
1588 Support for external debug info.
1589 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1590 (S_ISLNK): Define if not defined.
1591 (xstrnlen): Define if strnlen is not available.
1592 (b_elf_note): Define type.
1593 (NT_GNU_BUILD_ID): Define macro.
1594 (elf_crc32, elf_crc32_file): New static functions.
1595 (elf_is_symlink, elf_readlink): New static functions.
1596 (elf_open_debugfile_by_buildid): New static function.
1597 (elf_try_debugfile): New static function.
1598 (elf_find_debugfile_by_debuglink): New static function.
1599 (elf_open_debugfile_by_debuglink): New static function.
1600 (elf_add): Add filename and debuginfo parameters. Adjust all
1601 callers. Look for external debug info notes, and try to fetch
1602 debug info from external file.
1603 (struct phdr_data): Add exe_filename field.
1604 (phdr_callback): Pass filename to elf_add.
1605 (backtrace_initialize): Add filename parameter.
1606 * internal.h (backtrace_initialize): Add filename parameter.
1607 * fileline.c (fileline_initialize): Pass filename to
1608 backtrace_initialize.
1609 * pecoff.c (fileline_initialize): Add unused filename parameter.
1610 * unknown.c (fileline_initialize): Likewise.
1611 * xcoff.c (fileline_initialize): Likewise.
1612 * configure.ac: Check for objcopy --add-gnu-debuglink.
1613 * Makefile.am (dtest): New test target.
1614 * configure, Makefile.in: Rebuild.
1615
1616 2017-09-12 Steve Ellcey <[email protected]>
1617
1618 PR other/81096
1619 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1620 * Makefile.in: Regenerate.
1621
1622 2017-09-12 Steve Ellcey <[email protected]>
1623
1624 PR other/81096
1625 * libbacktrace/Makefile.in
1626 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1627
1628 2017-08-02 David Edelsohn <[email protected]>
1629
1630 PR bootstrap/81638
1631 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1632
1633 2017-07-28 Tony Reix <[email protected]>
1634
1635 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1636
1637 2017-07-28 Rainer Orth <[email protected]>
1638
1639 * fileline.c (fileline_initialize): Print pid_t as long.
1640
1641 2017-07-26 Tony Reix <[email protected]>
1642
1643 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1644 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1645 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1646 * configure, config.h.in: Regenerate.
1647
1648 2017-07-21 Tony Reix <[email protected]>
1649
1650 * filetype.awk: Add AIX XCOFF type detection.
1651 * configure.ac: Recognize xcoff format.
1652 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1653 * fileline.c: Include <unistd.h>.
1654 (fileline_initialize): Add case for AIX procfs.
1655 * xcoff.c: New file.
1656 * configure, Makefile.in: Rebuild.
1657
1658 2017-06-21 Richard Biener <[email protected]>
1659
1660 * configure.ac: Add AC_SYS_LARGEFILE.
1661 * config.h.in: Regenerate.
1662 * configure: Likewise.
1663
1664 2017-06-11 Ian Lance Taylor <[email protected]>
1665
1666 * elf.c (backtrace_initialize): Always set *fileline_fn.
1667 * ttest.c: New file.
1668 * btest.c: Move support functions into testlib.c. Change calls to
1669 check to pass file name.
1670 * testlib.c: New file, copied from (part of) btest.c.
1671 * testlib.h: New file, declarations for testlib.c.
1672 * edtest.c: Use testlib.h and testlib.c.
1673 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1674 * Makefile.am (btest_SOURCES): Add testlib.c.
1675 (edtest_SOURCES): Likewise.
1676 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1677 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1678 * configure, Makefile.in: Rebuild.
1679
1680 2017-05-19 Than McIntosh <[email protected]>
1681
1682 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1683 (read_line_header): Don't allocate dirs if dirs_count == 0.
1684 * edtest.c: New file.
1685 * edtest2.c: New file.
1686 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1687 (check_PROGRAMS): Add edtest.
1688 (edtest2_build.c, gen_edtest2_build): New targets.
1689 * Makefile.in: Rebuild.
1690
1691 2017-03-08 Sam Thursfield <[email protected]>
1692
1693 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1694 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1695
1696 2017-01-01 Jakub Jelinek <[email protected]>
1697
1698 Update copyright years.
1699
1700 2016-11-15 Matthias Klose <[email protected]>
1701
1702 * configure: Regenerate.
1703
1704 2016-09-11 Carlos Liam <[email protected]>
1705
1706 * all: Remove meaningless trailing whitespace.
1707
1708 2016-05-18 Uros Bizjak <[email protected]>
1709
1710 PR target/71161
1711 * elf.c (phdr_callback) [__i386__]: Add
1712 __attribute__((__force_align_arg_pointer__)).
1713
1714 2016-03-02 Maxim Ostapenko <[email protected]>
1715
1716 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1717 avoid possible crash.
1718 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1719 missing debug info anymore.
1720
1721 2016-02-06 John David Anglin <[email protected]>
1722
1723 * mmap.c (MAP_FAILED): Define if not defined.
1724
1725 2016-01-04 Jakub Jelinek <[email protected]>
1726
1727 Update copyright years.
1728
1729 2015-12-18 Andris Pavenis <[email protected]>
1730
1731 * configure.ac: Specify that DJGPP do not have mmap
1732 even when sys/mman.h exists.
1733 * configure: Regenerate
1734
1735 2015-12-09 John David Anglin <[email protected]>
1736
1737 PR libgfortran/68115
1738 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1739 * configure: Regenerate.
1740 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1741 to void.
1742
1743 2015-09-17 Ian Lance Taylor <[email protected]>
1744
1745 * posix.c (backtrace_open): Cast second argument of open() to int.
1746
1747 2015-09-11 Ian Lance Taylor <[email protected]>
1748
1749 * Makefile.am (backtrace.lo): Depend on internal.h.
1750 (sort.lo, stest.lo): Add explicit dependencies.
1751 * Makefile.in: Rebuild.
1752
1753 2015-09-09 Hans-Peter Nilsson <[email protected]>
1754
1755 * backtrace.c: #include <sys/types.h>.
1756
1757 2015-09-08 Ian Lance Taylor <[email protected]>
1758
1759 PR other/67457
1760 * backtrace.c: #include "internal.h".
1761 (struct backtrace_data): Add can_alloc field.
1762 (unwind): If can_alloc is false, don't try to get file/line
1763 information.
1764 (backtrace_full): Set can_alloc field in bdata.
1765 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1766 NULL.
1767 * mmap.c (backtrace_alloc): Likewise.
1768 * internal.h: Update comments for backtrace_alloc and
1769 backtrace_free.
1770
1771 2015-09-08 Ian Lance Taylor <[email protected]>
1772
1773 PR other/67457
1774 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1775
1776 2015-08-31 Ulrich Weigand <[email protected]>
1777
1778 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1779 * configure: Regenerate.
1780
1781 2015-08-27 Ulrich Weigand <[email protected]>
1782
1783 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1784 Remove setting PIC_FLAG when building as target library.
1785 * configure: Regenerate.
1786
1787 2015-08-26 Hans-Peter Nilsson <[email protected]>
1788
1789 * configure.ac: Only compile with -fPIC if the target
1790 supports it.
1791 * configure: Regenerate.
1792
1793 2015-08-24 Ulrich Weigand <[email protected]>
1794
1795 * configure.ac: Set have_mmap to no on spu-*-* targets.
1796 * configure: Regenerate.
1797
1798 2015-08-13 Ian Lance Taylor <[email protected]>
1799
1800 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1801 Change all callers.
1802
1803 2015-06-11 Martin Sebor <[email protected]>
1804
1805 PR sanitizer/65479
1806 * dwarf.c (struct line): Add new field idx.
1807 (line_compare): Use it.
1808 (add_line): Set it.
1809 (read_line_info): Reset it.
1810
1811 2015-05-29 Tristan Gingold <[email protected]>
1812
1813 * pecoff.c: New file.
1814 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1815 * Makefile.in: Regenerate.
1816 * filetype.awk: Detect pecoff.
1817 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1818 Add pecoff.
1819 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1820 true.
1821 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1822 * configure: Regenerate.
1823 * pecoff.c: New file.
1824
1825 2015-05-13 Michael Haubenwallner <[email protected]>
1826
1827 * Makefile.in: Regenerated with automake-1.11.6.
1828 * aclocal.m4: Likewise.
1829 * configure: Likewise.
1830
1831 2015-01-24 Matthias Klose <[email protected]>
1832
1833 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1834 * configure: Regenerate.
1835
1836 2015-01-05 Jakub Jelinek <[email protected]>
1837
1838 Update copyright years.
1839
1840 2014-11-21 H.J. Lu <[email protected]>
1841
1842 PR bootstrap/63784
1843 * configure: Regenerated.
1844
1845 2014-11-11 David Malcolm <[email protected]>
1846
1847 * ChangeLog.jit: New.
1848
1849 2014-11-11 Francois-Xavier Coudert <[email protected]>
1850
1851 PR target/63610
1852 * configure: Regenerate.
1853
1854 2014-10-23 Ian Lance Taylor <[email protected]>
1855
1856 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1857 Fix to return void *.
1858
1859 2014-05-08 Ian Lance Taylor <[email protected]>
1860
1861 * mmap.c (backtrace_free): If freeing a large aligned block of
1862 memory, call munmap rather than holding onto it.
1863 (backtrace_vector_grow): When growing a vector, double the number
1864 of pages requested. When releasing the old version of a grown
1865 vector, pass the correct size to backtrace_free.
1866
1867 2014-03-07 Ian Lance Taylor <[email protected]>
1868
1869 * sort.c (backtrace_qsort): Use middle element as pivot.
1870
1871 2014-03-06 Ian Lance Taylor <[email protected]>
1872
1873 * sort.c: New file.
1874 * stest.c: New file.
1875 * internal.h (backtrace_qsort): Declare.
1876 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1877 (read_line_info, read_function_entry): Likewise.
1878 (read_function_info, build_dwarf_data): Likewise.
1879 * elf.c (elf_initialize_syminfo): Likewise.
1880 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1881 (stest_SOURCES, stest_LDADD): Define.
1882 (check_PROGRAMS): Add stest.
1883
1884 2014-02-07 Misty De Meo <[email protected]>
1885
1886 PR target/58710
1887 * configure.ac: Use AC_LINK_IFELSE in check for
1888 _Unwind_GetIPInfo.
1889 * configure: Regenerate.
1890
1891 2014-01-02 Richard Sandiford <[email protected]>
1892
1893 Update copyright years
1894
1895 2013-12-06 Jakub Jelinek <[email protected]>
1896
1897 * elf.c (ET_DYN): Undefine and define again.
1898 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1899 return early -1 without closing the descriptor.
1900 (struct phdr_data): Add exe_descriptor.
1901 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1902 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1903 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1904 call to elf_add.
1905 (backtrace_initialize): Adjust call to elf_add. If it returns
1906 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1907
1908 2013-12-05 Ian Lance Taylor <[email protected]>
1909
1910 * alloc.c (backtrace_vector_finish): Add error_callback and data
1911 parameters. Call backtrace_vector_release. Return address base.
1912 * mmap.c (backtrace_vector_finish): Add error_callback and data
1913 parameters. Return address base.
1914 * dwarf.c (read_function_info): Get new address base from
1915 backtrace_vector_finish.
1916 * internal.h (backtrace_vector_finish): Update declaration.
1917
1918 2013-11-27 Ian Lance Taylor <[email protected]>
1919
1920 * dwarf.c (find_address_ranges): New static function, broken out
1921 of build_address_map.
1922 (build_address_map): Call it.
1923 * btest.c (check): Check for missing filename or function, rather
1924 than crashing.
1925 (f3): Check that enough frames were returned.
1926
1927 2013-11-19 Jakub Jelinek <[email protected]>
1928
1929 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1930 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1931 last argument.
1932 * btest.c (struct symdata): Add size field.
1933 (callback_three): Add symsize argument. Copy it to the data->size
1934 field.
1935 (f23): Set symdata.size to 0.
1936 (test5): Likewise. If sizeof (int) > 1, lookup address of
1937 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1938 values.
1939
1940 * atomic.c: Include sys/types.h.
1941
1942 2013-11-18 Ian Lance Taylor <[email protected]>
1943
1944 * configure.ac: Check for support of __atomic extensions.
1945 * internal.h: Declare or #define atomic functions for use in
1946 backtrace code.
1947 * atomic.c: New file.
1948 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1949 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1950 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1951 (backtrace_initialize): Likewise.
1952 * fileline.c (fileline_initialize): Likewise.
1953 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1954 * configure, config.h.in, Makefile.in: Rebuild.
1955
1956 2013-11-18 Jakub Jelinek <[email protected]>
1957
1958 * elf.c (SHN_UNDEF): Define.
1959 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1960 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1961 (elf_add): Adjust caller.
1962
1963 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1964
1965 2013-11-16 Ian Lance Taylor <[email protected]>
1966
1967 * backtrace.h (backtrace_create_state): Correct comment about
1968 threading.
1969
1970 2013-11-15 Ian Lance Taylor <[email protected]>
1971
1972 * backtrace.h (backtrace_syminfo): Update comment and parameter
1973 name to take any address, not just a PC value.
1974 * elf.c (STT_OBJECT): Define.
1975 (elf_nosyms): Rename parameter pc to addr.
1976 (elf_symbol_search): Rename local variable pc to addr.
1977 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1978 (elf_syminfo): Rename parameter pc to addr.
1979 * btest.c (global): New global variable.
1980 (test5): New test.
1981 (main): Call test5.
1982
1983 2013-10-17 Ian Lance Taylor <[email protected]>
1984
1985 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1986 is missing.
1987
1988 2013-10-15 David Malcolm <[email protected]>
1989
1990 * configure.ac: Add --enable-host-shared, setting up
1991 pre-existing PIC_FLAG variable within Makefile.am et al.
1992 * configure: Regenerate.
1993
1994 2013-09-20 Alan Modra <[email protected]>
1995
1996 * configure: Regenerate.
1997
1998 2013-07-23 Alexander Monakov <[email protected]>
1999
2000 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
2001
2002 2013-07-23 Alexander Monakov <[email protected]>
2003
2004 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
2005 dl_iterate_phdr callbacks.
2006
2007 2013-03-25 Ian Lance Taylor <[email protected]>
2008
2009 * alloc.c: #include <sys/types.h>.
2010 * mmap.c: Likewise.
2011
2012 2013-01-31 Ian Lance Taylor <[email protected]>
2013
2014 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
2015 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
2016
2017 2013-01-25 Jakub Jelinek <[email protected]>
2018
2019 PR other/56076
2020 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
2021 attribute was not seen.
2022
2023 2013-01-16 Ian Lance Taylor <[email protected]>
2024
2025 * dwarf.c (struct unit): Add filename and abs_filename fields.
2026 (build_address_map): Set new fields when reading unit.
2027 (dwarf_lookup_pc): If we don't find an entry in the line table,
2028 just return the main file name.
2029
2030 2013-01-14 Richard Sandiford <[email protected]>
2031
2032 Update copyright years.
2033
2034 2013-01-01 Ian Lance Taylor <[email protected]>
2035
2036 PR bootstrap/54834
2037 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
2038 $(MULTIBUILDTOP)/../../gcc/include.
2039 * Makefile.in: Rebuild.
2040
2041 2013-01-01 Ian Lance Taylor <[email protected]>
2042
2043 PR other/55536
2044 * mmap.c (backtrace_alloc): Don't call sync functions if not
2045 threaded.
2046 (backtrace_free): Likewise.
2047
2048 2012-12-12 John David Anglin <[email protected]>
2049
2050 * mmapio.c: Define MAP_FAILED if not defined.
2051
2052 2012-12-11 Jakub Jelinek <[email protected]>
2053
2054 PR bootstrap/54926
2055 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
2056 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
2057 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
2058 accepts it.
2059 * Makefile.in: Regenerated.
2060 * configure: Regenerated.
2061
2062 2012-12-07 Jakub Jelinek <[email protected]>
2063
2064 PR bootstrap/54926
2065 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
2066 * Makefile.in: Regenerated.
2067
2068 2012-11-20 Ian Lance Taylor <[email protected]>
2069
2070 * dwarf.c (read_attribute): Always clear val.
2071
2072 2012-11-13 Ian Lance Taylor <[email protected]>
2073
2074 PR other/55312
2075 * configure.ac: Only add -Werror if building a target library.
2076 * configure: Rebuild.
2077
2078 2012-11-12 Ian Lance Taylor <[email protected]>
2079 Rainer Orth <[email protected]>
2080 Gerald Pfeifer <[email protected]>
2081
2082 * configure.ac: Check for getexecname.
2083 * fileline.c: #include <errno.h>. Define getexecname if not
2084 available.
2085 (fileline_initialize): Try to find the executable in a few
2086 different ways.
2087 * print.c (error_callback): Only print the filename if it came
2088 from the backtrace state.
2089 * configure, config.h.in: Rebuild.
2090
2091 2012-10-29 Ian Lance Taylor <[email protected]>
2092
2093 * mmap.c (backtrace_vector_release): Correct last patch: add
2094 aligned, not size.
2095
2096 2012-10-29 Ian Lance Taylor <[email protected]>
2097
2098 * mmap.c (backtrace_vector_release): Make sure freed block is
2099 aligned on 8-byte boundary.
2100
2101 2012-10-26 Ian Lance Taylor <[email protected]>
2102
2103 PR other/55087
2104 * posix.c (backtrace_open): Add does_not_exist parameter.
2105 * elf.c (phdr_callback): Do not warn if shared library could not
2106 be opened.
2107 * fileline.c (fileline_initialize): Update calls to
2108 backtrace_open.
2109 * internal.h (backtrace_open): Update declaration.
2110
2111 2012-10-26 Jack Howarth <[email protected]>
2112
2113 PR target/55061
2114 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
2115 * configure: Regenerate.
2116
2117 2012-10-24 Ian Lance Taylor <[email protected]>
2118
2119 PR target/55061
2120 * configure.ac: Check whether -funwind-tables option works.
2121 * configure: Rebuild.
2122
2123 2012-10-11 Ian Lance Taylor <[email protected]>
2124
2125 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
2126 * configure: Rebuild.
2127
2128 2012-10-10 Ian Lance Taylor <[email protected]>
2129
2130 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
2131 lower case.
2132
2133 2012-10-10 Hans-Peter Nilsson <[email protected]>
2134
2135 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
2136
2137 2012-10-09 Ian Lance Taylor <[email protected]>
2138
2139 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
2140 (backtrace_dwarf_add): Likewise.
2141
2142 2012-10-09 Ian Lance Taylor <[email protected]>
2143
2144 Add support for tracing through shared libraries.
2145 * configure.ac: Check for link.h and dl_iterate_phdr.
2146 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
2147 ELF macros before #defining them.
2148 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
2149 dl_iterate_phdr.
2150 (struct elf_syminfo_data): Add next field.
2151 (elf_initialize_syminfo): Initialize next field.
2152 (elf_add_syminfo_data): New static function.
2153 (elf_add): New static function, broken out of
2154 backtrace_initialize. Call backtrace_dwarf_add instead of
2155 backtrace_dwarf_initialize.
2156 (struct phdr_data): Define.
2157 (phdr_callback): New static function.
2158 (backtrace_initialize): Call elf_add.
2159 * dwarf.c (struct dwarf_data): Add next and base_address fields.
2160 (add_unit_addr): Add base_address parameter. Change all callers.
2161 (add_unit_ranges, build_address_map): Likewise.
2162 (add_line): Add ddata parameter. Change all callers.
2163 (read_line_program, add_function_range): Likewise.
2164 (dwarf_lookup_pc): New static function, broken out of
2165 dwarf_fileline.
2166 (dwarf_fileline): Call dwarf_lookup_pc.
2167 (build_dwarf_data): New static function.
2168 (backtrace_dwarf_add): New function.
2169 (backtrace_dwarf_initialize): Remove.
2170 * internal.h (backtrace_dwarf_initialize): Don't declare.
2171 (backtrace_dwarf_add): Declare.
2172 * configure, config.h.in: Rebuild.
2173
2174 2012-10-04 Gerald Pfeifer <[email protected]>
2175
2176 * btest.c (f23): Avoid uninitialized variable warning.
2177
2178 2012-10-04 Ian Lance Taylor <[email protected]>
2179
2180 * dwarf.c: If the system header files do not declare strnlen,
2181 provide our own version.
2182
2183 2012-10-03 Ian Lance Taylor <[email protected]>
2184
2185 * dwarf.c (read_uleb128): Fix overflow test.
2186 (read_sleb128): Likewise.
2187 (build_address_map): Don't change unit_buf.start.
2188
2189 2012-10-02 Uros Bizjak <[email protected]>
2190
2191 PR other/54761
2192 * configure.ac (EXTRA_FLAGS): New.
2193 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
2194 * configure, Makefile.in: Regenerate.
2195
2196 2012-09-29 Ian Lance Taylor <[email protected]>
2197
2198 PR other/54749
2199 * fileline.c (fileline_initialize): Pass errnum as -1 when
2200 reporting that we could not read executable information after a
2201 previous failure.
2202
2203 2012-09-27 Ian Lance Taylor <[email protected]>
2204
2205 PR bootstrap/54732
2206 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
2207 * Makefile.am: Add dependencies for all objects.
2208 * configure, aclocal.m4, Makefile.in: Rebuild.
2209
2210 2012-09-27 Ian Lance Taylor <[email protected]>
2211
2212 PR other/54726
2213 * elf.c (backtrace_initialize): Set *fileln_fn, not
2214 state->fileln_fn.
2215
2216 2012-09-19 Ian Lance Taylor <[email protected]>
2217
2218 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
2219 as a target library.
2220 * configure: Rebuild.
2221
2222 2012-09-19 Rainer Orth <[email protected]>
2223 Ian Lance Taylor <[email protected]>
2224
2225 * configure.ac (GCC_HEADER_STDINT): Invoke.
2226 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
2227 * btest.c: Don't include <stdint.h>.
2228 * dwarf.c: Likewise.
2229 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
2230
2231 2012-09-18 Ian Lance Taylor <[email protected]>
2232
2233 PR bootstrap/54623
2234 * Makefile.am (AM_CPPFLAGS): Define.
2235 (AM_CFLAGS): Remove -I options.
2236 * Makefile.in: Rebuild.
2237
2238 2012-09-18 Ian Lance Taylor <[email protected]>
2239
2240 * posix.c (O_BINARY): Define if not defined.
2241 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
2242 HAVE_FCNTL is defined.
2243 * configure.ac: Test for the fcntl function.
2244 * configure, config.h.in: Rebuild.
2245
2246 2012-09-18 Ian Lance Taylor <[email protected]>
2247
2248 * btest.c (test1, test2, test3, test4): Add the unused attribute.
2249
2250 2012-09-18 Ian Lance Taylor <[email protected]>
2251
2252 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
2253
2254 2012-09-18 Ian Lance Taylor <[email protected]>
2255
2256 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
2257 * mmapio.c: Don't define _GNU_SOURCE.
2258 * configure, config.h.in: Rebuild.
2259
2260 2012-09-18 Ian Lance Taylor <[email protected]>
2261
2262 * configure.ac: Check whether strnlen is declared.
2263 * dwarf.c: Declare strnlen if not declared.
2264 * configure, config.h.in: Rebuild.
2265
2266 2012-09-18 Rainer Orth <[email protected]>
2267
2268 * fileline.c: Include <stdlib.h>.
2269 * mmap.c: Likewise.
2270
2271 2012-09-17 Ian Lance Taylor <[email protected]>
2272
2273 PR bootstrap/54611
2274 * nounwind.c (backtrace_full): Rename from backtrace. Add state
2275 parameter.
2276
2277 2012-09-17 Gerald Pfeifer <[email protected]>
2278
2279 PR bootstrap/54611
2280 * nounwind.c (backtrace_simple): Add state parameter.
2281
2282 2012-09-17 Ian Lance Taylor <[email protected]>
2283
2284 PR bootstrap/54609
2285 * unknown.c (unknown_fileline): Add state parameter, remove
2286 fileline_data parameter, name error_callback parameter.
2287 (backtrace_initialize): Add state parameter.
2288
2289 2012-09-17 Ian Lance Taylor <[email protected]>
2290
2291 * Initial implementation.
2292
2293 Copyright (C) 2012-2025 Free Software Foundation, Inc.
2294
2295 Copying and distribution of this file, with or without modification,
2296 are permitted in any medium without royalty provided the copyright
2297 notice and this notice are preserved.