]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
Update Copyright year in ChangeLog files
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
92bc3617
GA
12022-12-17 Ian Lance Taylor <iant@golang.org>
2
3 * elf.c (elf_fetch_backward_init): New static function.
4 (ZSTD_TABLE_SIZE): Use huffman scratch space size rather than
5 literal size.
6 (ZSTD_TABLE_WORK_LIT_SIZE): Don't define.
7 (elf_zstd_read_huff): Use elf_fetch_backward_init.
8 (elf_zstd_read_literals): New static function.
9 (ZSTD_LIT_RAW, ZSTD_LIT_RLE, ZSTD_LIT_HUFF): Don't define.
10 (struct elf_zstd_literals): Don't define.
11 (elf_zstd_literal_output): Remove static function.
12 (elf_zstd_decompress): Use elf_fetch_backward_init and
13 elf_zstd_read_literals. Rewrite literal copying.<
14
c6b12b80
GA
152022-12-10 Ian Lance Taylor <iant@golang.org>
16
17 * elf.c (ZSTD_TABLE_*): Use elf_zstd_fse_baseline_entry.
18 (ZSTD_ENCODE_BASELINE_BITS): Define.
19 (ZSTD_DECODE_BASELINE, ZSTD_DECODE_BASEBITS): Define.
20 (elf_zstd_literal_length_base): New static const array.
21 (elf_zstd_match_length_base): Likewise.
22 (struct elf_zstd_fse_baseline_entry): Define.
23 (elf_zstd_make_literal_baseline_fse): New static function.
24 (elf_zstd_make_offset_baseline_fse): Likewise.
25 (elf_zstd_make_match_baseline_fse): Likewise.
26 (print_table, main): Use elf_zstd_fse_baseline_entry.
27 (elf_zstd_lit_table, elf_zstd_match_table): Likewise.
28 (elf_zstd_offset_table): Likewise.
29 (struct elf_zstd_seq_decode): Likewise. Remove use_rle and rle
30 fields.
31 (elf_zstd_unpack_seq_decode): Use elf_zstd_fse_baseline_entry,
32 taking a conversion function. Convert RLE to FSE.
33 (elf_zstd_literal_length_baseline): Remove.
34 (elf_zstd_literal_length_bits): Remove.
35 (elf_zstd_match_length_baseline): Remove.
36 (elf_zstd_match_length_bits): Remove.
37 (elf_zstd_decompress): Use elf_zstd_fse_baseline_entry. Rewrite
38 and simplify main loop.
39
e6110da4
GA
402022-12-08 Ian Lance Taylor <iant@golang.org>
41
42 * configure.ac: Check for zstd library and
43 --compress-debug-sections=zstd linker option.
44 * Makefile.am (zstdtest_*): New targets.
45 (zstdtest_alloc_*, ctestzstd_*): New targets.
46 (BUILDTESTS): Add zstdtest, zstdtest_alloc, ctestzstd as
47 appropriate.
48 * elf.c (ELFCOMPRESS_ZSTD): Define.
49 (elf_fetch_bits): Rename from elf_zlib_fetch. Update uses.
50 (elf_fetch_bits_backward): New static function.
51 (ZLIB_HUFFMAN_*): Rename from HUFFMAN_*. Update uses.
52 (ZLIB_TABLE_*): Rename from ZDEBUG_TABLE_*. Update uses.
53 (ZSTD_TABLE_*): Define.
54 (struct elf_zstd_fse_entry): Define.
55 (elf_zstd_read_fse): New static function.
56 (elf_zstd_build_fse): Likewise.
57 (lit): Define if BACKTRACE_GENERATE_ZSTD_FSE_TABLES.
58 (match, offset, next, print_table, main): Likewise.
59 (elf_zstd_lit_table): New static const array.
60 (elf_zstd_match_table, elf_zstd_offset_table): Likewise.
61 (elf_zstd_read_huff): New static function.
62 (struct elf_zstd_seq_decode): Define.
63 (elf_zstd_unpack_seq_decode): New static function.
64 (ZSTD_LIT_*): Define.
65 (struct elf_zstd_literals): Define.
66 (elf_zstd_literal_output): New static function.
67 (ZSTD_LITERAL_LENGTH_BASELINE_OFFSET): Define.
68 (elf_zstd_literal_length_baseline): New static const array.
69 (elf_zstd_literal_length_bits): Likewise.
70 (ZSTD_MATCH_LENGTH_BASELINE_OFFSET): Define.
71 (elf_zstd_match_length_baseline): New static const array.
72 (elf_zstd_match_length_bits): Likewise.
73 (elf_zstd_decompress): New static function.
74 (ZDEBUG_TABLE_SIZE): New definition.
75 (elf_uncompress_chdr): Support ELF_COMPRESS_ZSTD.
76 (backtrace_uncompress_zstd): New function.
77 (elf_add): Use ZLIB_TABLE_SIZE for zlib-gnu sections.
78 * internal.h (backtrace_uncompress_zstd): Declare.
79 * zstdtest.c: New file.
80 * configure, config.h.in, Makefile.in: Regenerate.
81
781f477a
GA
822022-10-12 Martin Liska <mliska@suse.cz>
83
84 * configure: Regenerate.
85
ab332cd7
GA
862022-10-11 Olivier Hainque <hainque@adacore.com>
87 Olivier Hainque <hainque@adacore.com>
88
89 * configure: Regenerate.
90
0fe604a2
GA
912022-07-08 Ian Lance Taylor <iant@golang.org>
92
93 * configure.ac: Check for sys/link.h. Use either link.h or
94 sys/link.h when checking for dl_iterate_phdr.
95 * elf.c: Include sys/link.h if available.
96 * configure, config.h.in: Regenerate.
97
6345c414
GA
982022-07-07 Ian Lance Taylor <iant@golang.org>
99
100 * macho.c (backtrace_initialize) [HAVE_MACH_O_DYLD_H]: Don't exit
101 loop if we can't find debug info for one shared library.
102
1032022-07-07 Ian Lance Taylor <iant@golang.org>
104
105 * Makefile.am (MAKETESTS): New variable split out of TESTS.
106 (CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS.
107 * Makefile.in: Regenerate.
108
9d3dd218
GA
1092022-06-27 Ian Lance Taylor <iant@golang.org>
110
111 * configure.ac: Use grep instead of fgrep.
112 * configure, Makefile.in: Regenerate.
113
37b3b5da
GA
1142022-05-28 Ian Lance Taylor <iant@golang.org>
115
116 PR libbacktrace/105721
117 * README: Update.
118
9d84ed68
GA
1192022-04-05 Ian Lance Taylor <iant@golang.org>
120
121 * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in
122 uncompressed block.
123
0bdb0498
GA
1242022-02-17 Ian Lance Taylor <iant@golang.org>
125
126 * dwarf.c (find_address_ranges): Handle skeleton units.
127 (read_function_entry): Likewise.
128
cb3afcd2
GA
1292022-02-16 Ian Lance Taylor <iant@golang.org>
130
131 * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit.
132
682ede39
GA
1332022-02-03 David Seifert <soap@gentoo.org>
134 Jakub Jelinek <jakub@redhat.com>
135
136 * configure.ac: Support --disable-werror.
137 * configure: Regenerate.
138
054e57e4
GA
1392021-12-28 Francois-Xavier Coudert <fxcoudert@gmail.com>
140
141 PR libbacktrace/103822
142 * Makefile.am: Fix newline.
143 * Makefile.in: Regenerate.
144
af2852b9
GA
1452021-11-12 Martin Liska <mliska@suse.cz>
146
147 PR libbacktrace/103167
148 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
149 (elf_uncompress_lzma): Likewise.
150 * xztest.c (test_samples): memcpy only if v > 0.
151
c2bd5d8a
GA
1522021-10-22 Martin Liska <mliska@suse.cz>
153
154 PR testsuite/102742
155 * btest.c (MIN_DESCRIPTOR): New.
156 (MAX_DESCRIPTOR): Likewise.
157 (check_available_files): Likewise.
158 (check_open_files): Check only file descriptors that
159 were not available at the entry.
160 (main): Call check_available_files.
161
261512fa
GA
1622021-08-13 Sergei Trofimovich <siarheit@google.com>
163
164 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
165 output with LANG=C.
166
c8abc205
GA
1672021-06-28 Clément Chigot <clement.chigot@atos.net>
168
169 * xcoff.c (SSUBTYP_DWRNGES): New define.
170 (xcoff_add): Use correct XCOFF DWARF section subtype
171 for DEBUG_RANGES. Remove lineoff workaround.
172 Adjust base_address.
173 (xcoff_initialize_syminfo): Adapt to new base_address.
174 (xcoff_lookup_pc): Likewise.
175 (xcoff_initialize_fileline): Likewise.
176
e690396d
GA
1772021-05-03 H.J. Lu <hjl.tools@gmail.com>
178
179 PR bootstrap/99703
180 * configure: Regenerated.
181
f3641ac7
GA
1822021-03-03 Ian Lance Taylor <iant@golang.org>
183
184 * dwarf.c (read_line_program): Don't special case file 0.
185 (read_function_entry): Likewise.
186
d97a92dc
GA
1872021-03-02 Ian Lance Taylor <iant@golang.org>
188
189 PR libbacktrace/98818
190 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
191 callers.
192 * backtrace.h: Update backtrace_error_callback comment.
193
fab095da
GA
1942021-02-12 Ian Lance Taylor <iant@golang.org>
195
196 * configure.ac: Check for objcopy --add-gnu-debuglink by using
197 objcopy --help.
198 * configure: Regenerate
199
ef1f8ee6
GA
2002021-01-18 Ian Lance Taylor <iant@golang.org>
201
202 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
203 * Makefile.in: Regenerate.
204 * configure: Regenerate.
205
2062021-01-18 Ian Lance Taylor <iant@golang.org>
207
208 PR debug/98716
209 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
210 filenames.
211 (read_line_program): Remove parameter u, change caller. Don't
212 subtract one from dirs and filenames index.
213 (read_function_entry): Don't subtract one from filenames index.
214
651b8a50
GA
2152021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
216
217 * configure: Re-generate.
218
6e1edf48
GA
2192020-12-05 Iain Sandoe <iain@sandoe.co.uk>
220
221 PR target/97865
222 * configure: Regenerate.
223
11860cf4
GA
2242020-12-02 Ian Lance Taylor <iant@golang.org>
225
226 * dwarf.c (resolve_string): Use > rather than >= to check whether
227 string index extends past buffer.
228 (resolve_addr_index): Similarly for address index.
229
a9625c50
GA
2302020-11-29 John David Anglin <danglin@gcc.gnu.org>
231
232 * configure: Regenerate.
233
e2e04288
GA
2342020-10-20 Ian Lance Taylor <iant@golang.org>
235
236 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
237 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
238
e84761c6
GA
2392020-09-28 Ian Lance Taylor <iant@golang.org>
240
241 PR libbacktrace/97082
242 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
243 * Makefile.in: Regenerate.
244
2452020-09-28 Ian Lance Taylor <iant@golang.org>
246
247 PR libbacktrace/97227
248 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
249 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
250 * configure: Regenerate.
251 * Makefile.in: Regenerate.
252
82b77dee
GA
2532020-09-23 Ian Lance Taylor <iant@golang.org>
254
255 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
256 p->low.
257 (dwarf_lookup_pc): Likewise.
258
ecde1b0a
GA
2592020-09-17 Ian Lance Taylor <iant@golang.org>
260
261 PR libbacktrace/97080
262 * fileline.c (backtrace_syminfo_to_full_callback): New function.
263 (backtrace_syminfo_to_full_error_callback): New function.
264 * elf.c (elf_nodebug): Call syminfo_fn if possible.
265 * internal.h (struct backtrace_call_full): Define.
266 (backtrace_syminfo_to_full_callback): Declare.
267 (backtrace_syminfo_to_full_error_callback): Declare.
268 * mtest.c (f3): Only check all[i] if data.index permits.
269
2702020-09-16 Iain Sandoe <iain@sandoe.co.uk>
271
272 * macho.c (MACH_O_CPU_TYPE_PPC): New.
273 (MACH_O_CPU_TYPE_PPC64): New.
274 Add compile-tests for powerpc to the Mach-O variants.
275
50a71cd0
GA
2762020-09-14 Ian Lance Taylor <iant@golang.org>
277
278 PR libbacktrace/93608
279 Add support for MiniDebugInfo.
280 * elf.c (struct elf_view): Define. Replace most uses of
281 backtrace_view with elf_view.
282 (elf_get_view): New static functions. Replace most calls of
283 backtrace_get_view with elf_get_view.
284 (elf_release_view): New static functions. Replace most calls of
285 backtrace_release_view with elf_release_view.
286 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
287 callers.
288 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
289 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
290 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
291 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
292 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
293 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
294 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
295 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
296 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
297 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
298 (LZMA_PROB_DIST_ALIGN_LEN): Define.
299 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
300 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
301 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
302 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
303 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
304 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
305 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
306 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
307 (LZMA_PROB_REP_LEN_MID_LEN): Define.
308 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
309 (LZMA_PROB_LITERAL_LEN): Define.
310 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
311 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
312 (LZMA_PROB_IS_REP2_OFFSET): Define.
313 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
314 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
315 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
316 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
317 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
318 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
319 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
320 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
321 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
322 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
323 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
324 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
325 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
326 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
327 (LZMA_PROB_LITERAL_OFFSET): Define.
328 (LZMA_PROB_TOTAL_COUNT): Define.
329 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
330 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
331 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
332 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
333 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
334 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
335 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
336 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
337 (elf_lzma_varint): New static function.
338 (elf_lzma_range_normalize): New static function.
339 (elf_lzma_bit, elf_lzma_integer): New static functions.
340 (elf_lzma_reverse_integer): New static function.
341 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
342 (elf_uncompress_lzma): New static function.
343 (backtrace_uncompress_lzma): New function.
344 (elf_add): Add memory and memory_size parameters. Change all
345 callers. Look for .gnu_debugdata section, and, if found,
346 decompress it and use it for symbols and debug info. Permit the
347 descriptor parameter to be -1.
348 * internal.h (backtrace_uncompress_lzma): Declare.
349 * mtest.c: New file.
350 * xztest.c: New file.
351 * configure.ac: Check for nm, xz, and comm programs. Check for
352 liblzma library.
353 (HAVE_MINIDEBUG): Define.
354 * Makefile.am (mtest_SOURCES): Define.
355 (mtest_CFLAGS, mtest_LDADD): Define.
356 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
357 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
358 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
359 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
360 (xztest_alloc_LDADD): Define.
361 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
362 (CLEANFILES): Add files created by minidebug pattern.
363 (btest.lo): Correct INCDIR reference.
364 (mtest.lo, xztest.lo, ztest.lo): New targets.
365 * configure: Regenerate.
366 * config.h.in: Regenerate.
367 * Makefile.in: Regenerate.
368
80f86e78
GA
3692020-09-09 Ian Lance Taylor <iant@golang.org>
370
371 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
372 (coff_add): Determine and pass is_64.
373
3742020-09-09 Ian Lance Taylor <iant@golang.org>
375
376 PR libbacktrace/96973
377 * fileline.c (macho_get_executable_path): New static function.
378 (fileline_initialize): Call macho_get_executable_path.
379
3802020-09-09 Ian Lance Taylor <iant@golang.org>
381
382 * dwarf.c (function_addrs_search): Compare against the next entry
383 low address, not the high address.
384 (unit_addrs_search): Likewise.
385 (build_address_map): Add a trailing unit_addrs.
386 (read_function_entry): Add a trailing function_addrs.
387 (read_function_info): Likewise.
388 (report_inlined_functions): Search backward for function_addrs
389 match.
390 (dwarf_lookup_pc): Search backward for unit_addrs and
391 function_addrs matches.
392
31a05046
GA
3932020-09-08 Ian Lance Taylor <iant@golang.org>
394
395 * simple.c (simple_unwind): Correct comment spelling.
396
3972020-09-08 Ian Lance Taylor <iant@golang.org>
398
399 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
400 correct length when freeing diralc.
401
4022020-09-08 Ian Lance Taylor <iant@golang.org>
403
404 PR libbacktrace/96973
405 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
406
4072020-09-08 Ian Lance Taylor <iant@golang.org>
408
409 PR libbacktrace/96971
410 * filetype.awk: Only match magic number at start of line.
411
b2b24d30
GA
4122020-08-24 Ian Lance Taylor <iant@golang.org>
413
414 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
415 (MACH_O_MH_CIGAM_FAT_64): Define.
416 (struct macho_fat_arch_64): Define.
417 (macho_add_fat): Add and use is_64 parameter.
418 (macho_add): Recognize 64-bit fat files.
419
d48cca8f
GA
4202020-07-30 H.J. Lu <hjl.tools@gmail.com>
421
422 PR bootstrap/96202
423 * configure: Regenerated.
424
50873cc5
GA
4252020-07-08 Ian Lance Taylor <iant@golang.org>
426
427 * configure.ac: Test linker support for DWARF5
428 * configure: Regenerate
429
885ef72f
GA
4302020-05-29 H.J. Lu <hjl.tools@gmail.com>
431
432 PR bootstrap/95413
433 * configure: Regenerated.
434
4c1a5d8b
L
4352020-05-15 H.J. Lu <hongjiu.lu@intel.com>
436
437 PR bootstrap/95147
438 * configure: Regenerated.
439
8d286dd1
L
4402020-05-14 H.J. Lu <hongjiu.lu@intel.com>
441
442 * configure: Regenerated.
443
d2ec2786
ILT
4442020-05-13 Ian Lance Taylor <iant@golang.org>
445
446 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
447
702adbb2
ILT
4482020-05-13 Ian Lance Taylor <iant@golang.org>
449
450 PR go/95061
451 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
452
4532020-05-12 H.J. Lu <hongjiu.lu@intel.com>
d2148648
L
454
455 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
456 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
457 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
458 enabled.
459 * Makefile.in: Regenerated.
460 * configure: Likewise.
461
47f4703c
ILT
4622020-05-11 Ian Lance Taylor <iant@golang.org>
463
464 PR libbacktrace/95012
465 * configure.ac: Check for getpagesize declaration.
466 * mmap.c: Declare getpagesize if necessary.
467 * mmapio.c: Likewise.
468 * configure: Regenerate.
469 * config.h.in: Regenerate.
470 * Makefile.in: Regenerate.
471
ef639420
ILT
4722020-05-09 Roland McGrath <mcgrathr@google.com>
473
474 * elf.c (elf_add): Bail early if there are no section headers at all.
475
8600440e
ILT
4762020-05-09 Ian Lance Taylor <iant@golang.org>
477
478 * elf.c (elf_add): Don't free strtab if an error occurs after
479 recording symbol information.
480
dea40c94
ILT
4812020-05-09 Ian Lance Taylor <iant@golang.org>
482
483 PR libbacktrace/88745
484 * macho.c: New file.
485 * filetype.awk: Recognize Mach-O files.
486 * Makefile.am (FORMAT_FILES): Add macho.c.
487 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
488 (%.dSYM): New pattern target.
489 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
490 (test_macho_LDADD): New target.
491 (BUILDTESTS): Add test_macho.
492 (macho.lo): Add dependencies.
493 * configure.ac: Recognize macho file type. Check for
494 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
495 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
496 * Makefile.in: Regenerate.
497 * configure: Regenerate.
498 * config.h.in: Regenerate.
499
4b26b138
ILT
5002020-05-09 Ian Lance Taylor <iant@golang.org>
501
502 * read.c (backtrace_get_view): Support short read.
503
31ae7b86
ILT
5042020-05-09 Ian Lance Taylor <iant@golang.org>
505
506 * elf.c (elf_add): If debug sections are very large or far apart,
507 read them individually rather than as a single view.
508
26135684
ILT
5092020-05-08 Ian Lance Taylor <iant@golang.org>
510
511 * fileline.c (sysctl_exec_name): New static function.
512 (sysctl_exec_name1): New macro or static function.
513 (sysctl_exec_name2): Likewise.
514 (fileline_initialize): Try sysctl_exec_name[12].
515 * configure.ac: Check for sysctl args to fetch executable name.
516 * configure: Regenerate.
517 * config.h.in: Regenerate.
518
9a3d019a
ILT
5192020-02-15 Ian Lance Taylor <iant@golang.org>
520
521 * ztest.c (test_large): Update file to current libgo test file.
522
628ee3c2
ILT
5232020-02-03 Ian Lance Taylor <iant@golang.org>
524
525 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
526 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
527 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
528 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
529 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
530 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
531 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
532 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
533 (stest_alloc_CFLAGS): Likewise.
534 * Makefile.in: Regenerate.
535 * ztest.c (error_callback_compress): Mark vdata unused.
536 (test_large): Add casts to avoid warnings.
537
8d9254fc
JJ
5382020-01-01 Jakub Jelinek <jakub@redhat.com>
539
540 Update copyright years.
541
c926fd82
ILT
5422019-12-13 Ian Lance Taylor <iant@golang.org>
543
544 Add DWARF 5 support.
545 * dwarf.c (struct attr): Add val field.
546 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
547 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
548 (struct line_header): Add addrsize field.
549 (struct line_header_format): Define.
550 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
551 fields.
552 (read_uint24): New static function.
553 (read_attribute): Add implicit_val parameter. Replace dwarf_str
554 and dwarf_str_size parameters with dwarf_sections parameter. Add
555 support for new DWARF 5 forms. Change all callers.
556 (resolve_string): New static function.
557 (resolve_addr_index): Likewise.
558 (read_abbrevs): Support DW_FORM_implicit_const.
559 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
560 and ranges_is_index fields.
561 (update_pcrange): Support DWARF 5 encodings.
562 (add_high_low_range): New static function, split out of
563 add_ranges.
564 (add_ranges_from_ranges): Likewise.
565 (add_ranges_from_rnglists): New static function.
566 (add_ranges): Just call new helper functions.
567 (find_address_ranges): Use resolve_string for strings, after
568 reading all attributes. Handle new DWARF 5 attributes.
569 (build_address_map): Support DWARF 5 compilation units.
570 (read_v2_paths): New static function, split out of
571 read_line_header.
572 (read_lnct): New static function.
573 (read_line_header_format_entries): Likewise.
574 (read_line_header): Add ddata parameter. Support DWARF 5 line
575 headers. Call new helper functions. Change all callers.
576 (read_line_program): Use addrsize from line program header. Don't
577 special case directory index 0 for DWARF 5.
578 (read_referenced_name): Use resolve_string.
579 (read_function_entry): Handle DWARF 5 encodings. Use
580 resolve_string.
581 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
582 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
583 * elf.c (dwarf_section_names): Add new section names.
584 * pecoff.c (dwarf_section_names): Likewise.
585 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
586 fields.
587 * configure.ac: Define HAVE_DWARF5 automake conditional.
588 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
589 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
590 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
591 (dwarf5_alloc_LDADD): Likewise.
592 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
593 (CLEANFILES, clean-local): Define.
594
4b3fc188
ILT
5952019-12-08 Ian Lance Taylor <iant@golang.org>
596
597 * dwarf.c (struct pcrange): Define.
598 (update_pcrange, add_ranges): New static functions.
599 (add_unit_addr): Change signature to work with add_ranges. Don't
600 add base_address here.
601 (add_unit_ranges): Remove.
602 (find_address_ranges): Replace str/ranges parameters with
603 dwarf_sections. Use update_pcrange and add_ranges. Change all
604 callers.
605 (add_function_range): Change signature to work with add_ranges.
606 Don't add base_address here.
607 (add_function_ranges): Remove.
608 (read_function_entry): Use update_pcrange and add_ranges.
609
70bfe5a7
ILT
6102019-12-04 Ian Lance Taylor <iant@golang.org>
611
612 * edtest.c (test1): Add noclone attribute.
613
66ab5839
ILT
6142019-12-04 Ian Lance Taylor <iant@golang.org>
615
616 * internal.h (enum dwarf_section): Define.
617 (struct dwarf_sections): Define.
618 (backtrace_dwarf_add): Update declaration to replace specific
619 section parameters with dwarf_sections parameter.
620 * dwarf.c (struct dwarf_data): Replace specific section fields
621 with dwarf_sections field.
622 (read_attribute): Use dwarf_sections with altlink.
623 (build_address_map): Replace specific section parameters with
624 dwarf_sections parameter. Change all callers.
625 (read_line_info): Use dwarf_sections with ddata.
626 (read_referenced_name): Likewise.
627 (add_function_ranges): Likewise.
628 (read_function_entry): Likewise.
629 (read_function_info): Likewise.
630 (build_dwarf_data): Replace specific section parameters with
631 dwarf_sections parameter. Change all callers.
632 (backtrace_dwarf_add): Likewise.
633 * elf.c (enum debug_section): Remove.
634 (dwarf_section_names): Remove .zdebug names.
635 (elf_add): Track zsections separately. Build dwarf_sections.
636 * pecoff.c (enum debug_section): Remove.
637 (struct debug_section_info): Remove data field.
638 (coff_add): Build dwarf_sections.
639 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
640 references with DEBUG_xxx references.
641 (xcoff_add): Build dwarf_sections.
642
e9085da5
MR
6432019-09-27 Maciej W. Rozycki <macro@wdc.com>
644
645 * configure: Regenerate.
646
5fe5f75f
ILT
6472019-09-26 Ian Lance Taylor <iant@golang.org>
648
649 PR libbacktrace/91908
650 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
651 __sync_bool_compare_and_swap to void.
652 * xcoff.c (backtrace_initialize): Likewise.
653
2f2aeda9
UW
6542019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
655
656 * configure.ac: Remove references to spu.
657 * configure: Regenerate.
658
245254b8
CC
6592019-05-24 Clement Chigot <clement.chigot@atos.net>
660
661 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
662 test_elf_64.
663 * Makefile.in: Regenerate.
664
ccd1242e
RO
6652019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
666
667 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
668 handling.
669 * configure: Regenerate.
670
7856fb45
ILT
6712019-03-11 Ian Lance Taylor <iant@golang.org>
672
673 PR libbacktrace/89669
674 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
675 HAVE_ELF.
676 * Makefile.in: Regenerate.
677
067aef03
TV
6782019-02-26 Tom de Vries <tdevries@suse.de>
679
680 * btest.c (test5): Allow global.* as minimal symbol name for global.
681
d831b1ec
TV
6822019-02-26 Tom de Vries <tdevries@suse.de>
683
684 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
685 * Makefile.in: Regenerate.
686
68641fb7
TV
6872019-02-12 Tom de Vries <tdevries@suse.de>
688
689 PR libbacktrace/81983
690 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
691
c51b2c8c
TV
6922019-02-10 Tom de Vries <tdevries@suse.de>
693
694 * Makefile.am (BUILDTESTS): Add btest_lto.
695 * Makefile.in: Regenerate.
696 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
697 __attribute__((noclone)).
698
4af50e13
TV
6992019-02-08 Tom de Vries <tdevries@suse.de>
700
701 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
702 * print.c (backtrace_print): Same.
703 * simple.c (backtrace_simple): Same.
704
2bd0a246
TV
7052019-02-08 Tom de Vries <tdevries@suse.de>
706
707 PR libbacktrace/78063
708 * dwarf.c (build_address_map): Keep all parsed units.
709 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
710
3a3f5dd1
TV
7112019-01-31 Tom de Vries <tdevries@suse.de>
712
713 PR libbacktrace/89136
714 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
715 'debugaltlink_name_len =+ 1'.
716
fddbc193
TV
7172019-01-29 Tom de Vries <tdevries@suse.de>
718
719 * install-debuginfo-for-buildid.sh.in: New script.
720 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
721 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
722 * Makefile.in: Regenerate.
723 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
724 (READELF): Set with AC_CHECK_PROG.
725 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
726 * configure: Regenerate.
727 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
728 (elf_open_debugfile_by_buildid): ... here.
729
57f0d303
TV
7302019-01-29 Tom de Vries <tdevries@suse.de>
731
732 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
733 allocfail.
734 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
735 (check_PROGRAMS): Add BUILDTESTS.
736 * Makefile.in: Regenerate.
737
62d4a355
TV
7382019-01-28 Tom de Vries <tdevries@suse.de>
739
740 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
741 Use $< to access prerequisite.
742 * Makefile.in: Regenerate.
743
4bfcd139
NS
7442019-01-25 Nathan Sidwell <nathan@acm.org>
745
746 * elf.c (elf_add): Pass "" filename to recursive call with
747 separated debug.
748
c75795fa
TV
7492019-01-25 Tom de Vries <tdevries@suse.de>
750
751 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
752 filename == "".
753 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
754 * Makefile.in: Regenerate.
755
37ab491d
TV
7562019-01-25 Tom de Vries <tdevries@suse.de>
757
758 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
759 (TESTS): Rename dtest to btest_gnudebuglink.
760 * Makefile.in: Regenerate.
761
3f5d2012
TV
7622019-01-23 Tom de Vries <tdevries@suse.de>
763
764 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
765 (units_search, find_unit): Use size_t for offset.
766 (build_address_map): Use size_t for unit_offset.
767
5e2a7241
GP
7682019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
769
770 * allocfail.c (main): Increase portability of printf statement.
771
8b248c17
ILT
7722019-01-18 Ian Lance Taylor <iant@golang.org>
773
774 PR libbacktrace/88890
775 * mmapio.c (backtrace_get_view): Change size parameter to
776 uint64_t. Check that value fits in size_t.
777 * read.c (backtrace_get_view): Likewise.
778 * internal.h (backtrace_get_view): Update declaration.
779 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
780
10f48858
TV
7812019-01-17 Tom de Vries <tdevries@suse.de>
782
783 PR libbacktrace/82857
784 * configure.ac (DWZ): Set with AC_CHECK_PROG.
785 (HAVE_DWZ): Set with AM_CONDITIONAL.
786 * configure: Regenerate.
787 * Makefile.am (TESTS): Add btest_dwz.
788 * Makefile.in: Regenerate.
789
1c2a9a37
TV
7902019-01-17 Tom de Vries <tdevries@suse.de>
791
792 PR libbacktrace/82857
793 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
794 (read_attribute): Handle DW_FORM_GNU_ref_alt using
795 ATTR_VAL_REF_ALT_INFO.
796 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
797
9d576782
TV
7982019-01-17 Tom de Vries <tdevries@suse.de>
799
800 * dwarf.c (struct unit): Add low_offset and high_offset fields.
801 (struct unit_vector): New type.
802 (struct dwarf_data): Add units and units_counts fields.
803 (find_unit): New function.
804 (find_address_ranges): Add and handle unit_tag parameter.
805 (build_address_map): Add and handle units_vec parameter.
806 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
807 units vector.
808
f2f00d3a
TV
8092019-01-17 Tom de Vries <tdevries@suse.de>
810
811 PR libbacktrace/82857
812 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
813 using altlink.
814
944f59ff
TV
8152019-01-17 Tom de Vries <tdevries@suse.de>
816
817 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
818 (read_attribute): Add altlink parameter. Handle missing altlink for
819 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
820 (find_address_ranges, build_address_map, build_dwarf_data): Add and
821 handle altlink parameter.
822 (read_referenced_name, read_function_entry): Add argument to
823 read_attribute call.
824
9ad458d5
TV
8252019-01-17 Tom de Vries <tdevries@suse.de>
826
827 * dwarf.c (struct dwarf_data): Add altlink field.
828 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
829 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
830 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
831 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
832 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
833 * xcoff.c (xcoff_add): Same.
834
e6f00c83
TV
8352019-01-17 Tom de Vries <tdevries@suse.de>
836
837 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
838 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
839 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
840 argument to backtrace_dwarf_add call.
841 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
842 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
843 * xcoff.c (xcoff_add): Same.
844
a34c2a3d
TV
8452019-01-17 Tom de Vries <tdevries@suse.de>
846
847 * elf.c (elf_add): Add and handle with_buildid_data and
848 with_buildid_size parameters. Handle .gnu_debugaltlink section.
849 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
850
07e1534f
TV
8512019-01-16 Tom de Vries <tdevries@suse.de>
852
853 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
854 of ...
855 (read_referenced_name): ... here, and ...
856 (read_function_entry): ... here.
857
df1de064
TV
8582019-01-16 Tom de Vries <tdevries@suse.de>
859
860 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
861 name.
862 (read_function_entry): Same. Don't allow name found via
863 DW_AT_abstract_origin or case DW_AT_specification to override linkage
864 name.
865
67914693
SL
8662019-01-09 Sandra Loosemore <sandra@codesourcery.com>
867
868 PR other/16615
869
870 * backtrace.h: Mechanically replace "can not" with "cannot".
871
a5544970
JJ
8722019-01-01 Jakub Jelinek <jakub@redhat.com>
873
874 Update copyright years.
875
4b420b27
GP
8762018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
877
878 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
879 in sed pattern.
880 * Makefile.in: Regenerate.
881
eb33bf0a
TV
8822018-12-28 Tom de Vries <tdevries@suse.de>
883
884 * dwarf.c (build_address_map): Reuse unused units.
885
d9aa0961
TV
8862018-12-28 Tom de Vries <tdevries@suse.de>
887
888 * dwarf.c (build_address_map): Simplify by removing local variable
889 abbrevs.
890
40b8d3b2
ILT
8912018-12-28 Ian Lance Taylor <iant@golang.org>
892 Tom de Vries <tdevries@suse.de>
893
894 PR libbacktrace/88063
895 * dwarf.c (free_unit_addrs_vector): Remove.
896 (build_address_map): Keep track of allocated units in vector. Free
897 allocated units and corresponding abbrevs upon failure. Remove now
898 redundant call to free_unit_addrs_vector. Free addrs vector upon
899 failure. Free allocated unit vector.
900
53a52133
TV
9012018-12-28 Tom de Vries <tdevries@suse.de>
902
903 * dwarf.c (build_address_map): Free addrs vector upon failure.
904
a37a52e5
TV
9052018-12-14 Tom de Vries <tdevries@suse.de>
906
907 PR testsuite/88491
908 * allocfail.sh: Remove "set -o pipefail".
909
d665cd9b
TV
9102018-12-12 Tom de Vries <tdevries@suse.de>
911
912 * Makefile.am (TESTS): Add allocfail.sh.
913 (check_PROGRAMS): Add allocfail.
914 * Makefile.in: Regenerate.
915 * instrumented_alloc.c: New file. Redefine malloc and realloc.
916 Include alloc.c.
917 * allocfail.c: New file.
918 * allocfail.sh: New file.
919
187b9e1d
TV
9202018-11-30 Tom de Vries <tdevries@suse.de>
921
922 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
923 test_xcoff_64, test_pecoff and test_unknown.
924 * Makefile.in: Regenerate.
925 * test_format.c: New file.
926
9b7d1a97
TV
9272018-11-30 Tom de Vries <tdevries@suse.de>
928
929 * Makefile.am : Add _with_alloc version for each test in
930 check_PROGRAMS.
931 * Makefile.in: Regenerate.
932
518a3a21
TV
9332018-11-30 Tom de Vries <tdevries@suse.de>
934
935 * internal.h (backtrace_vector_free): New static inline fuction,
936 factored out of ...
937 * dwarf.c (read_line_info): ... here.
938
18c742b5
TV
9392018-11-28 Tom de Vries <tdevries@suse.de>
940
941 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
942 failure.
943
6d760a01
TV
9442018-11-27 Tom de Vries <tdevries@suse.de>
945
946 * mmap.c (backtrace_vector_release): Same.
947 * unittest.c (test1): Add check.
948
0c155f24
TV
9492018-11-27 Tom de Vries <tdevries@suse.de>
950
951 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
952 instead of realloc.
953 * Makefile.am (check_PROGRAMS): Add unittest.
954 * Makefile.in: Regenerate.
955 * unittest.c: New file.
956
292592c5
TV
9572018-11-22 Tom de Vries <tdevries@suse.de>
958
959 * dwarf.c (read_initial_length): Factor out of ...
960 (build_address_map, read_line_info): ... here.
961
17112570
TV
9622018-11-21 Tom de Vries <tdevries@suse.de>
963
964 * dwarf.c (read_string): Factor out of ...
965 (read_attribute, read_line_header, read_line_program): ... here.
966
22e05272
JM
9672018-10-31 Joseph Myers <joseph@codesourcery.com>
968
969 PR bootstrap/82856
970 * Makefile.am: Include multilib.am.
971 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
972 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
973
a2a86641
ILT
9742018-10-05 Ian Lance Taylor <iant@golang.org>
975
976 PR libbacktrace/87529
977 * backtrace.h: Document that backtrace_create_state should be
978 called only once.
979
2206fb89
IB
9802018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
981
982 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
983 * Makefile.in: Regenerate.
984 * config.h.in: Likewise.
985 * configure: Likewise.
986
ca9a1314
TR
9872018-08-01 Tony Reix <tony.reix@atos.net>
988
989 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
990 (struct xcoff_func, struct xcoff_func_vector): New structs.
991 (xcoff_syminfo): Drop leading dot from symbol name.
992 (xcoff_line_compare, xcoff_line_search): Remove.
993 (xcoff_func_compare, xcoff_func_search): New static functions.
994 (xcoff_lookup_pc): Search function table.
995 (xcoff_add_line, xcoff_process_linenos): Remove.
996 (xcoff_initialize_fileline): Build function table.
997
1ac6620a
DK
9982018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
999
1000 PR other/86198
1001 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
1002 checking up to 36 bytes.
1003
7b47ecf2
L
10042018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 * configure: Regenerated.
1007
a0e1df88
JJ
10082018-04-19 Jakub Jelinek <jakub@redhat.com>
1009
1010 * configure: Regenerated.
1011
21070494
ILT
10122018-04-17 Ian Lance Taylor <iant@golang.org>
1013
1014 * backtrace.c: Revert last two changes. Don't call mmap
1015 directly.
1016
c36af1b4
ILT
10172018-04-17 Ian Lance Taylor <iant@golang.org>
1018
1019 * backtrace.c: Include backtrace-supported.h before checking
1020 BACKTRACE_USES_MALLOC.
1021
83a658ca
ILT
10222018-04-17 Ian Lance Taylor <iant@golang.org>
1023
1024 * backtrace.c (backtrace_full): When testing whether we can
1025 allocate memory, call mmap directly, and munmap the memory.
1026
c5c4b2ae
JJ
10272018-04-04 Jakub Jelinek <jakub@redhat.com>
1028
1029 PR other/85161
1030 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
1031 big endian, only use 32-bit loads if endianity macros are predefined
1032 and indicate big or little endian.
1033
14e335ed
IT
10342018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1035
1036 PR target/84148
1037 * configure: Regenerate.
1038
bcc23586
JJ
10392018-02-15 Jakub Jelinek <jakub@redhat.com>
1040
1041 PR other/82368
1042 * elf.c (SHT_PROGBITS): Undefine and define.
1043
da07141f
JJ
10442018-02-14 Jakub Jelinek <jakub@redhat.com>
1045
1046 PR other/82368
1047 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
1048 (struct elf_ppc64_opd_data): New type.
1049 (elf_initialize_syminfo): Add opd argument, handle symbols
1050 pointing into the PowerPC64 ELFv1 .opd section.
1051 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
1052 to structure with .opd data to elf_initialize_syminfo.
1053
65d0b859
ILT
10542018-01-31 Ian Lance Taylor <iant@golang.org>
1055
1056 * elf.c (elf_add): Close descriptor if we use a debugfile.
1057 * btest.c (check_open_files): New static function.
1058 (main): Call check_open_files.
1059
96f7c2a9
ILT
10602018-01-25 Ian Lance Taylor <iant@golang.org>
1061
1062 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
1063 desired CRC is zero.
1064 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
1065
a794e494
ILT
10662018-01-25 Ian Lance Taylor <iant@golang.org>
1067
1068 * pecoff.c (coff_add): Only release syms_view if it is valid.
1069
45f3ab19
ILT
10702018-01-25 Ian Lance Taylor <iant@golang.org>
1071
1072 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
1073
017707ce
ILT
10742018-01-24 Ian Lance Taylor <iant@golang.org>
1075
1076 * pecoff.c (coff_add): Use coff_read4, not memcpy.
1077
3fe3c7d7
ILT
10782018-01-24 Ian Lance Taylor <iant@golang.org>
1079
1080 PR other/68239
1081 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
1082 on the free list.
1083
47c699f5
TR
10842018-01-19 Tony Reix <tony.reix@atos.net>
1085
1086 * xcoff.c (xcoff_incl_compare): New function.
1087 (xcoff_incl_search): New function.
1088 (xcoff_process_linenos): Use bsearch to find include file.
1089 (xcoff_initialize_fileline): Sort include file information.
1090
566588f1
ILT
10912018-01-16 Ian Lance Taylor <iant@golang.org>
1092
1093 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
1094 288.
1095 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
1096 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
1097 (elf_zlib_default_table): Update.
1098 (elf_zlib_default_dist_table): New static array.
1099 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
1100 for block type 1.
1101 * ztest.c (struct zlib_test): Add uncompressed_len.
1102 (tests): Initialize uncompressed_len field. Add new test case.
1103 (test_samples): Use uncompressed_len field.
1104
85ec4feb
JJ
11052018-01-03 Jakub Jelinek <jakub@redhat.com>
1106
1107 Update copyright years.
1108
44685d37
IT
11092017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1110
1111 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
1112 * aclocal.m4: Regenerate.
1113 * Makefile.in: Likewise.
1114 * configure: Likewise.
1115
549d24e9
ILT
11162017-10-06 Ian Lance Taylor <iant@golang.org>
1117
1118 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
1119 zlib uncompress function.
1120
a978e26b
ILT
11212017-10-05 Ian Lance Taylor <iant@golang.org>
1122
1123 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
1124 Read a four byte integer.
1125 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
1126 boundary before ever calling elf_zlib_fetch.
1127 * ztest.c (test_large): Simplify print statements a bit.
1128
8398c1df
ILT
11292017-10-02 Ian Lance Taylor <iant@golang.org>
1130
1131 * ztest.c: #include <errno.h>.
1132 (TEST_TIMING): Don't define, don't test.
1133 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
1134 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
1135 (ZLIB_CLOCK_GETTIME_ARG): Define.
1136 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
1137 * Makefile.am: Likewise.
1138 * configure, Makefile.in: Rebuild.
1139
dbc31f20
TS
11402017-10-02 Thomas Schwinge <thomas@codesourcery.com>
1141
dd954c67
TS
1142 PR other/67165
1143 * Makefile.am: Append the content of clock_gettime_link to
1144 ztest_LDADD.
1145 * configure.ac: Test for the case that clock_gettime is in librt.
1146 * Makefile.in: Regenerate.
1147 * configure: Likewise.
1148
dbc31f20
TS
1149 PR other/67165
1150 * configure.ac: Check for clock_gettime.
1151 * config.h.in: Regenerate.
1152 * configure: Likewise.
1153 * ztest.c (average_time, test_large): Conditionalize test timing
1154 on clock_gettime availability.
1155
e90c74f5
TR
11562017-09-29 Tony Reix <tony.reix@atos.net>
1157
1158 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1159 (STYP_DWARF, SSUBTYP_DW*): Define.
1160 (enum dwarf_section): Define.
1161 (struct dwsect_info): Define.
1162 (xcoff_add): Look for DWARF sections, pass them to
1163 backtrace_dwarf_add.
1164
8da872d9
ILT
11652017-09-28 Ian Lance Taylor <iant@golang.org>
1166
1167 PR other/67165
1168 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1169 (unlikely): Define.
1170 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1171 (b_elf_chdr): Define type.
1172 (enum debug_section): Add ZDEBUG_xxx values.
1173 (debug_section_names): Add names for new sections.
1174 (struct debug_section_info): Add compressed field.
1175 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1176 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1177 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1178 (HUFFMAN_SECONDARY_SHIFT): Define.
1179 (ZDEBUG_TABLE_SIZE): Define.
1180 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1181 (final_next_secondary): New static variable if
1182 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1183 (elf_zlib_inflate_table): New static function.
1184 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1185 function to produce fixed Huffman table.
1186 (elf_zlib_default_table): New static variable.
1187 (elf_zlib_inflate): New static function.
1188 (elf_zlib_verify_checksum): Likewise.
1189 (elf_zlib_inflate_and_verify): Likewise.
1190 (elf_uncompress_zdebug): Likewise.
1191 (elf_uncompress_chdr): Likewise.
1192 (backtrace_uncompress_zdebug): New extern function.
1193 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1194 sections, and uncompress them.
1195 * internal.h (backtrace_compress_zdebug): Declare.
1196 * ztest.c: New file.
1197 * configure.ac: Check for -lz and check whether the linker
1198 supports --compress-debug-sections.
1199 * Makefile.am (ztest_SOURCES): New variable.
1200 (ztest_CFLAGS, ztest_LDADD): New variables.
1201 (check_PROGRAMS): Add ztest.
1202 (ctestg_SOURCES): New variable.
1203 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1204 (ctesta_SOURCES): New variable.
1205 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1206 (check_PROGRAMS): Add ctestg and ctesta.
1207 * configure, config.h.in, Makefile.in: Rebuild.
1208
8c2ea6b2
ILT
12092017-09-22 Ian Lance Taylor <iant@golang.org>
1210
1211 PR sanitizer/77631
1212 * configure.ac: Check for lstat and readlink.
1213 * elf.c (lstat, readlink): Provide dummy versions if real versions
1214 are not available.
1215 * configure, config.h.in: Rebuild.
1216
f0de4542
ILT
12172017-09-21 Ian Lance Taylor <iant@google.com>
1218
1219 PR go/82284
1220 * elf.c (backtrace_initialize): Set pd.exe_filename.
1221
9283471b
ILT
12222017-09-20 Ian Lance Taylor <iant@golang.org>
1223 Denis Khalikov <d.khalikov@partner.samsung.com>
1224
1225 PR sanitizer/77631
1226 Support for external debug info.
1227 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1228 (S_ISLNK): Define if not defined.
1229 (xstrnlen): Define if strnlen is not available.
1230 (b_elf_note): Define type.
1231 (NT_GNU_BUILD_ID): Define macro.
1232 (elf_crc32, elf_crc32_file): New static functions.
1233 (elf_is_symlink, elf_readlink): New static functions.
1234 (elf_open_debugfile_by_buildid): New static function.
1235 (elf_try_debugfile): New static function.
1236 (elf_find_debugfile_by_debuglink): New static function.
1237 (elf_open_debugfile_by_debuglink): New static function.
1238 (elf_add): Add filename and debuginfo parameters. Adjust all
1239 callers. Look for external debug info notes, and try to fetch
1240 debug info from external file.
1241 (struct phdr_data): Add exe_filename field.
1242 (phdr_callback): Pass filename to elf_add.
1243 (backtrace_initialize): Add filename parameter.
1244 * internal.h (backtrace_initialize): Add filename parameter.
1245 * fileline.c (fileline_initialize): Pass filename to
1246 backtrace_initialize.
1247 * pecoff.c (fileline_initialize): Add unused filename parameter.
1248 * unknown.c (fileline_initialize): Likewise.
1249 * xcoff.c (fileline_initialize): Likewise.
1250 * configure.ac: Check for objcopy --add-gnu-debuglink.
1251 * Makefile.am (dtest): New test target.
1252 * configure, Makefile.in: Rebuild.
1253
29788f90
SE
12542017-09-12 Steve Ellcey <sellcey@cavium.com>
1255
1256 PR other/81096
1257 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1258 * Makefile.in: Regenerate.
1259
917a804c
SE
12602017-09-12 Steve Ellcey <sellcey@cavium.com>
1261
1262 PR other/81096
1263 * libbacktrace/Makefile.in
1264 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1265
2e6af1b8
DE
12662017-08-02 David Edelsohn <dje.gcc@gmail.com>
1267
8a0e6224 1268 PR bootstrap/81638
2e6af1b8
DE
1269 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1270
afce7deb
TR
12712017-07-28 Tony Reix <tony.reix@atos.net>
1272
1273 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1274
cf311b03
RO
12752017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1276
1277 * fileline.c (fileline_initialize): Print pid_t as long.
1278
7e2a8417
TR
12792017-07-26 Tony Reix <tony.reix@atos.net>
1280
1281 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1282 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1283 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1284 * configure, config.h.in: Regenerate.
1285
b3530b94
TR
12862017-07-21 Tony Reix <tony.reix@atos.net>
1287
1288 * filetype.awk: Add AIX XCOFF type detection.
1289 * configure.ac: Recognize xcoff format.
1290 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1291 * fileline.c: Include <unistd.h>.
1292 (fileline_initialize): Add case for AIX procfs.
1293 * xcoff.c: New file.
1294 * configure, Makefile.in: Rebuild.
1295
e91a2ddc
RB
12962017-06-21 Richard Biener <rguenther@suse.de>
1297
1298 * configure.ac: Add AC_SYS_LARGEFILE.
1299 * config.h.in: Regenerate.
1300 * configure: Likewise.
1301
d1609a23
ILT
13022017-06-11 Ian Lance Taylor <iant@golang.org>
1303
1304 * elf.c (backtrace_initialize): Always set *fileline_fn.
1305 * ttest.c: New file.
1306 * btest.c: Move support functions into testlib.c. Change calls to
1307 check to pass file name.
1308 * testlib.c: New file, copied from (part of) btest.c.
1309 * testlib.h: New file, declarations for testlib.c.
1310 * edtest.c: Use testlib.h and testlib.c.
1311 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1312 * Makefile.am (btest_SOURCES): Add testlib.c.
1313 (edtest_SOURCES): Likewise.
1314 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1315 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1316 * configure, Makefile.in: Rebuild.
1317
281161d1
TM
13182017-05-19 Than McIntosh <thanm@google.com>
1319
1320 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1321 (read_line_header): Don't allocate dirs if dirs_count == 0.
1322 * edtest.c: New file.
1323 * edtest2.c: New file.
1324 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1325 (check_PROGRAMS): Add edtest.
1326 (edtest2_build.c, gen_edtest2_build): New targets.
1327 * Makefile.in: Rebuild.
1328
121eb024
ST
13292017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1330
1331 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1332 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1333
cbe34bb5
JJ
13342017-01-01 Jakub Jelinek <jakub@redhat.com>
1335
1336 Update copyright years.
1337
84c1b9d3
MK
13382016-11-15 Matthias Klose <doko@ubuntu.com>
1339
1340 * configure: Regenerate.
1341
84ebf639
CL
13422016-09-11 Carlos Liam <carlos@aarzee.me>
1343
1344 * all: Remove meaningless trailing whitespace.
1345
28644f75
UB
13462016-05-18 Uros Bizjak <ubizjak@gmail.com>
1347
1348 PR target/71161
1349 * elf.c (phdr_callback) [__i386__]: Add
1350 __attribute__((__force_align_arg_pointer__)).
1351
26ac52db
MO
13522016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1353
1354 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1355 avoid possible crash.
1356 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1357 missing debug info anymore.
1358
09b08e17
JDA
13592016-02-06 John David Anglin <danglin@gcc.gnu.org>
1360
1361 * mmap.c (MAP_FAILED): Define if not defined.
1362
818ab71a
JJ
13632016-01-04 Jakub Jelinek <jakub@redhat.com>
1364
1365 Update copyright years.
1366
5b4bbc7d
AP
13672015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1368
28644f75
UB
1369 * configure.ac: Specify that DJGPP do not have mmap
1370 even when sys/mman.h exists.
5b4bbc7d
AP
1371 * configure: Regenerate
1372
2f401a8f
JDA
13732015-12-09 John David Anglin <danglin@gcc.gnu.org>
1374
28644f75 1375 PR libgfortran/68115
2f401a8f
JDA
1376 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1377 * configure: Regenerate.
1378 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1379 to void.
1380
750cdaf7
ILT
13812015-09-17 Ian Lance Taylor <iant@google.com>
1382
1383 * posix.c (backtrace_open): Cast second argument of open() to int.
1384
fc002444
ILT
13852015-09-11 Ian Lance Taylor <iant@google.com>
1386
1387 * Makefile.am (backtrace.lo): Depend on internal.h.
1388 (sort.lo, stest.lo): Add explicit dependencies.
1389 * Makefile.in: Rebuild.
1390
50809ff9
HPN
13912015-09-09 Hans-Peter Nilsson <hp@axis.com>
1392
1393 * backtrace.c: #include <sys/types.h>.
1394
c478516b
ILT
13952015-09-08 Ian Lance Taylor <iant@google.com>
1396
1397 PR other/67457
1398 * backtrace.c: #include "internal.h".
1399 (struct backtrace_data): Add can_alloc field.
1400 (unwind): If can_alloc is false, don't try to get file/line
1401 information.
1402 (backtrace_full): Set can_alloc field in bdata.
1403 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1404 NULL.
1405 * mmap.c (backtrace_alloc): Likewise.
1406 * internal.h: Update comments for backtrace_alloc and
1407 backtrace_free.
1408
981d281f
ILT
14092015-09-08 Ian Lance Taylor <iant@google.com>
1410
1411 PR other/67457
1412 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1413
8f5027bf
UW
14142015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1415
1416 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1417 * configure: Regenerate.
1418
7e5c7547
UW
14192015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1420
1421 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1422 Remove setting PIC_FLAG when building as target library.
1423 * configure: Regenerate.
1424
7ce9cf39
HPN
14252015-08-26 Hans-Peter Nilsson <hp@axis.com>
1426
1427 * configure.ac: Only compile with -fPIC if the target
1428 supports it.
1429 * configure: Regenerate.
1430
1b533361
UW
14312015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1432
1433 * configure.ac: Set have_mmap to no on spu-*-* targets.
1434 * configure: Regenerate.
1435
d96fa208
ILT
14362015-08-13 Ian Lance Taylor <iant@google.com>
1437
1438 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1439 Change all callers.
1440
d99a7b4d
MS
14412015-06-11 Martin Sebor <msebor@redhat.com>
1442
1443 PR sanitizer/65479
1444 * dwarf.c (struct line): Add new field idx.
1445 (line_compare): Use it.
1446 (add_line): Set it.
1447 (read_line_info): Reset it.
1448
e24afc10
TG
14492015-05-29 Tristan Gingold <gingold@adacore.com>
1450
1451 * pecoff.c: New file.
1452 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1453 * Makefile.in: Regenerate.
1454 * filetype.awk: Detect pecoff.
1455 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1456 Add pecoff.
1457 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1458 true.
1459 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1460 * configure: Regenerate.
1461 * pecoff.c: New file.
1462
df96c0f7
MH
14632015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1464
1465 * Makefile.in: Regenerated with automake-1.11.6.
1466 * aclocal.m4: Likewise.
1467 * configure: Likewise.
1468
2b8fa469
MK
14692015-01-24 Matthias Klose <doko@ubuntu.com>
1470
1471 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1472 * configure: Regenerate.
1473
5624e564
JJ
14742015-01-05 Jakub Jelinek <jakub@redhat.com>
1475
1476 Update copyright years.
1477
a699d672
L
14782014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 PR bootstrap/63784
1481 * configure: Regenerated.
1482
35485da9
DM
14832014-11-11 David Malcolm <dmalcolm@redhat.com>
1484
1485 * ChangeLog.jit: New.
1486
ebf6d33b
FXC
14872014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1488
1489 PR target/63610
1490 * configure: Regenerate.
1491
c96601d2
ILT
14922014-10-23 Ian Lance Taylor <iant@google.com>
1493
1494 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1495 Fix to return void *.
1496
d573fd89
ILT
14972014-05-08 Ian Lance Taylor <iant@google.com>
1498
1499 * mmap.c (backtrace_free): If freeing a large aligned block of
1500 memory, call munmap rather than holding onto it.
1501 (backtrace_vector_grow): When growing a vector, double the number
1502 of pages requested. When releasing the old version of a grown
1503 vector, pass the correct size to backtrace_free.
1504
dbe20842
ILT
15052014-03-07 Ian Lance Taylor <iant@google.com>
1506
1507 * sort.c (backtrace_qsort): Use middle element as pivot.
1508
c5604b48
ILT
15092014-03-06 Ian Lance Taylor <iant@google.com>
1510
1511 * sort.c: New file.
1512 * stest.c: New file.
1513 * internal.h (backtrace_qsort): Declare.
1514 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1515 (read_line_info, read_function_entry): Likewise.
1516 (read_function_info, build_dwarf_data): Likewise.
1517 * elf.c (elf_initialize_syminfo): Likewise.
1518 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1519 (stest_SOURCES, stest_LDADD): Define.
1520 (check_PROGRAMS): Add stest.
1521
63fefb4b
MDM
15222014-02-07 Misty De Meo <misty@brew.sh>
1523
1524 PR target/58710
1525 * configure.ac: Use AC_LINK_IFELSE in check for
1526 _Unwind_GetIPInfo.
1527 * configure: Regenerate.
1528
afeba5cb
RS
15292014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1530
1531 Update copyright years
1532
0284b52e
JJ
15332013-12-06 Jakub Jelinek <jakub@redhat.com>
1534
1535 * elf.c (ET_DYN): Undefine and define again.
1536 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1537 return early -1 without closing the descriptor.
1538 (struct phdr_data): Add exe_descriptor.
1539 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1540 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1541 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1542 call to elf_add.
1543 (backtrace_initialize): Adjust call to elf_add. If it returns
1544 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1545
bfd74f22
ILT
15462013-12-05 Ian Lance Taylor <iant@google.com>
1547
1548 * alloc.c (backtrace_vector_finish): Add error_callback and data
1549 parameters. Call backtrace_vector_release. Return address base.
1550 * mmap.c (backtrace_vector_finish): Add error_callback and data
1551 parameters. Return address base.
1552 * dwarf.c (read_function_info): Get new address base from
1553 backtrace_vector_finish.
1554 * internal.h (backtrace_vector_finish): Update declaration.
1555
b8ddd61b
ILT
15562013-11-27 Ian Lance Taylor <iant@google.com>
1557
1558 * dwarf.c (find_address_ranges): New static function, broken out
1559 of build_address_map.
1560 (build_address_map): Call it.
1561 * btest.c (check): Check for missing filename or function, rather
1562 than crashing.
1563 (f3): Check that enough frames were returned.
1564
64856e1e
JJ
15652013-11-19 Jakub Jelinek <jakub@redhat.com>
1566
1f96a712
JJ
1567 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1568 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1569 last argument.
1570 * btest.c (struct symdata): Add size field.
1571 (callback_three): Add symsize argument. Copy it to the data->size
1572 field.
1573 (f23): Set symdata.size to 0.
1574 (test5): Likewise. If sizeof (int) > 1, lookup address of
1575 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1576 values.
1577
64856e1e
JJ
1578 * atomic.c: Include sys/types.h.
1579
49579c7e
ILT
15802013-11-18 Ian Lance Taylor <iant@google.com>
1581
1582 * configure.ac: Check for support of __atomic extensions.
1583 * internal.h: Declare or #define atomic functions for use in
1584 backtrace code.
1585 * atomic.c: New file.
1586 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1587 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1588 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1589 (backtrace_initialize): Likewise.
1590 * fileline.c (fileline_initialize): Likewise.
1591 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1592 * configure, config.h.in, Makefile.in: Rebuild.
1593
582f5a2d
JJ
15942013-11-18 Jakub Jelinek <jakub@redhat.com>
1595
f1857815
JJ
1596 * elf.c (SHN_UNDEF): Define.
1597 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1598 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1599 (elf_add): Adjust caller.
1600
582f5a2d
JJ
1601 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1602
25e6253e
ILT
16032013-11-16 Ian Lance Taylor <iant@google.com>
1604
1605 * backtrace.h (backtrace_create_state): Correct comment about
1606 threading.
1607
cfa658e4
ILT
16082013-11-15 Ian Lance Taylor <iant@google.com>
1609
1610 * backtrace.h (backtrace_syminfo): Update comment and parameter
1611 name to take any address, not just a PC value.
1612 * elf.c (STT_OBJECT): Define.
1613 (elf_nosyms): Rename parameter pc to addr.
1614 (elf_symbol_search): Rename local variable pc to addr.
1615 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1616 (elf_syminfo): Rename parameter pc to addr.
1617 * btest.c (global): New global variable.
1618 (test5): New test.
1619 (main): Call test5.
1620
6c084a5b
ILT
16212013-10-17 Ian Lance Taylor <iant@google.com>
1622
1623 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1624 is missing.
1625
459260ec
DM
16262013-10-15 David Malcolm <dmalcolm@redhat.com>
1627
1628 * configure.ac: Add --enable-host-shared, setting up
1629 pre-existing PIC_FLAG variable within Makefile.am et al.
1630 * configure: Regenerate.
1631
3cbe17f7
AM
16322013-09-20 Alan Modra <amodra@gmail.com>
1633
1634 * configure: Regenerate.
1635
78625ce6
AM
16362013-07-23 Alexander Monakov <amonakov@ispras.ru>
1637
1638 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1639
0153887c
AM
16402013-07-23 Alexander Monakov <amonakov@ispras.ru>
1641
1642 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1643 dl_iterate_phdr callbacks.
1644
85d8c21e
ILT
16452013-03-25 Ian Lance Taylor <iant@google.com>
1646
1647 * alloc.c: #include <sys/types.h>.
1648 * mmap.c: Likewise.
1649
38811401
ILT
16502013-01-31 Ian Lance Taylor <iant@google.com>
1651
1652 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1653 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1654
1e678aed
JJ
16552013-01-25 Jakub Jelinek <jakub@redhat.com>
1656
1657 PR other/56076
1658 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1659 attribute was not seen.
1660
6b514c53
ILT
16612013-01-16 Ian Lance Taylor <iant@google.com>
1662
1663 * dwarf.c (struct unit): Add filename and abs_filename fields.
1664 (build_address_map): Set new fields when reading unit.
1665 (dwarf_lookup_pc): If we don't find an entry in the line table,
1666 just return the main file name.
1667
f8a7e1a4
RS
16682013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1669
1670 Update copyright years.
1671
c3de1960
ILT
16722013-01-01 Ian Lance Taylor <iant@google.com>
1673
1674 PR bootstrap/54834
1675 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1676 $(MULTIBUILDTOP)/../../gcc/include.
1677 * Makefile.in: Rebuild.
1678
2a5195d9
ILT
16792013-01-01 Ian Lance Taylor <iant@google.com>
1680
1681 PR other/55536
1682 * mmap.c (backtrace_alloc): Don't call sync functions if not
1683 threaded.
1684 (backtrace_free): Likewise.
1685
85619b6f
JDA
16862012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1687
1688 * mmapio.c: Define MAP_FAILED if not defined.
1689
36a58fb3
JJ
16902012-12-11 Jakub Jelinek <jakub@redhat.com>
1691
1692 PR bootstrap/54926
1693 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1694 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1695 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1696 accepts it.
1697 * Makefile.in: Regenerated.
1698 * configure: Regenerated.
1699
a58dfde0
JJ
17002012-12-07 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR bootstrap/54926
1703 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1704 * Makefile.in: Regenerated.
1705
b20ade36
ILT
17062012-11-20 Ian Lance Taylor <iant@google.com>
1707
1708 * dwarf.c (read_attribute): Always clear val.
1709
73c3ed27
ILT
17102012-11-13 Ian Lance Taylor <iant@google.com>
1711
1712 PR other/55312
1713 * configure.ac: Only add -Werror if building a target library.
2a5195d9 1714 * configure: Rebuild.
73c3ed27 1715
33521509
ILT
17162012-11-12 Ian Lance Taylor <iant@google.com>
1717 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1718 Gerald Pfeifer <gerald@pfeifer.com>
1719
1720 * configure.ac: Check for getexecname.
1721 * fileline.c: #include <errno.h>. Define getexecname if not
1722 available.
1723 (fileline_initialize): Try to find the executable in a few
1724 different ways.
1725 * print.c (error_callback): Only print the filename if it came
1726 from the backtrace state.
1727 * configure, config.h.in: Rebuild.
1728
8fe91dea
ILT
17292012-10-29 Ian Lance Taylor <iant@google.com>
1730
1731 * mmap.c (backtrace_vector_release): Correct last patch: add
1732 aligned, not size.
1733
8277de34
ILT
17342012-10-29 Ian Lance Taylor <iant@google.com>
1735
1736 * mmap.c (backtrace_vector_release): Make sure freed block is
1737 aligned on 8-byte boundary.
1738
73f41491
ILT
17392012-10-26 Ian Lance Taylor <iant@google.com>
1740
1741 PR other/55087
1742 * posix.c (backtrace_open): Add does_not_exist parameter.
1743 * elf.c (phdr_callback): Do not warn if shared library could not
1744 be opened.
1745 * fileline.c (fileline_initialize): Update calls to
1746 backtrace_open.
1747 * internal.h (backtrace_open): Update declaration.
1748
385710cf
JH
17492012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1750
1751 PR target/55061
1752 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1753 * configure: Regenerate.
1754
32061319
ILT
17552012-10-24 Ian Lance Taylor <iant@google.com>
1756
1757 PR target/55061
1758 * configure.ac: Check whether -funwind-tables option works.
1759 * configure: Rebuild.
1760
5551b12c
ILT
17612012-10-11 Ian Lance Taylor <iant@google.com>
1762
1763 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1764 * configure: Rebuild.
1765
40d15b5b
ILT
17662012-10-10 Ian Lance Taylor <iant@google.com>
1767
1768 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1769 lower case.
1770
74f80620
HPN
17712012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1772
1773 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1774
ce8aa074
ILT
17752012-10-09 Ian Lance Taylor <iant@google.com>
1776
1777 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1778 (backtrace_dwarf_add): Likewise.
1779
e561a992
ILT
17802012-10-09 Ian Lance Taylor <iant@google.com>
1781
1782 Add support for tracing through shared libraries.
1783 * configure.ac: Check for link.h and dl_iterate_phdr.
1784 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1785 ELF macros before #defining them.
1786 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1787 dl_iterate_phdr.
1788 (struct elf_syminfo_data): Add next field.
1789 (elf_initialize_syminfo): Initialize next field.
1790 (elf_add_syminfo_data): New static function.
1791 (elf_add): New static function, broken out of
1792 backtrace_initialize. Call backtrace_dwarf_add instead of
1793 backtrace_dwarf_initialize.
1794 (struct phdr_data): Define.
1795 (phdr_callback): New static function.
1796 (backtrace_initialize): Call elf_add.
1797 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1798 (add_unit_addr): Add base_address parameter. Change all callers.
1799 (add_unit_ranges, build_address_map): Likewise.
1800 (add_line): Add ddata parameter. Change all callers.
1801 (read_line_program, add_function_range): Likewise.
1802 (dwarf_lookup_pc): New static function, broken out of
1803 dwarf_fileline.
1804 (dwarf_fileline): Call dwarf_lookup_pc.
1805 (build_dwarf_data): New static function.
1806 (backtrace_dwarf_add): New function.
1807 (backtrace_dwarf_initialize): Remove.
1808 * internal.h (backtrace_dwarf_initialize): Don't declare.
1809 (backtrace_dwarf_add): Declare.
1810 * configure, config.h.in: Rebuild.
1811
068ef6d1
GP
18122012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1813
1814 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 1815
244e2d9c
ILT
18162012-10-04 Ian Lance Taylor <iant@google.com>
1817
1818 * dwarf.c: If the system header files do not declare strnlen,
1819 provide our own version.
1820
be4ba8ae
ILT
18212012-10-03 Ian Lance Taylor <iant@google.com>
1822
1823 * dwarf.c (read_uleb128): Fix overflow test.
1824 (read_sleb128): Likewise.
1825 (build_address_map): Don't change unit_buf.start.
1826
56195009
UB
18272012-10-02 Uros Bizjak <ubizjak@gmail.com>
1828
faf86a02
UB
1829 PR other/54761
1830 * configure.ac (EXTRA_FLAGS): New.
56195009 1831 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 1832 * configure, Makefile.in: Regenerate.
56195009 1833
8a447b3d
ILT
18342012-09-29 Ian Lance Taylor <iant@google.com>
1835
1836 PR other/54749
1837 * fileline.c (fileline_initialize): Pass errnum as -1 when
1838 reporting that we could not read executable information after a
1839 previous failure.
1840
af710874
ILT
18412012-09-27 Ian Lance Taylor <iant@google.com>
1842
1843 PR bootstrap/54732
1844 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1845 * Makefile.am: Add dependencies for all objects.
1846 * configure, aclocal.m4, Makefile.in: Rebuild.
1847
588f4f8f
ILT
18482012-09-27 Ian Lance Taylor <iant@google.com>
1849
1850 PR other/54726
1851 * elf.c (backtrace_initialize): Set *fileln_fn, not
1852 state->fileln_fn.
1853
64b89453
ILT
18542012-09-19 Ian Lance Taylor <iant@google.com>
1855
1856 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1857 as a target library.
1858 * configure: Rebuild.
1859
76850556
RO
18602012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1861 Ian Lance Taylor <iant@google.com>
1862
92a285c1
ML
1863 * configure.ac (GCC_HEADER_STDINT): Invoke.
1864 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1865 * btest.c: Don't include <stdint.h>.
1866 * dwarf.c: Likewise.
1867 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
76850556 1868
9425c00b
ILT
18692012-09-18 Ian Lance Taylor <iant@google.com>
1870
1871 PR bootstrap/54623
1872 * Makefile.am (AM_CPPFLAGS): Define.
1873 (AM_CFLAGS): Remove -I options.
1874 * Makefile.in: Rebuild.
1875
3319ef17
ILT
18762012-09-18 Ian Lance Taylor <iant@google.com>
1877
1878 * posix.c (O_BINARY): Define if not defined.
1879 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1880 HAVE_FCNTL is defined.
1881 * configure.ac: Test for the fcntl function.
1882 * configure, config.h.in: Rebuild.
1883
bd3e497d
ILT
18842012-09-18 Ian Lance Taylor <iant@google.com>
1885
1886 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1887
30e15876
ILT
18882012-09-18 Ian Lance Taylor <iant@google.com>
1889
1890 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1891
d4c059d5
ILT
18922012-09-18 Ian Lance Taylor <iant@google.com>
1893
1894 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1895 * mmapio.c: Don't define _GNU_SOURCE.
1896 * configure, config.h.in: Rebuild.
1897
772a71a9
ILT
18982012-09-18 Ian Lance Taylor <iant@google.com>
1899
1900 * configure.ac: Check whether strnlen is declared.
1901 * dwarf.c: Declare strnlen if not declared.
1902 * configure, config.h.in: Rebuild.
1903
c0558468
RO
19042012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1905
1906 * fileline.c: Include <stdlib.h>.
1907 * mmap.c: Likewise.
1908
c5812e0b
ILT
19092012-09-17 Ian Lance Taylor <iant@google.com>
1910
1911 PR bootstrap/54611
1912 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1913 parameter.
1914
e8f4008a
GP
19152012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1916
1917 PR bootstrap/54611
1918 * nounwind.c (backtrace_simple): Add state parameter.
1919
f588eb27
ILT
19202012-09-17 Ian Lance Taylor <iant@google.com>
1921
1922 PR bootstrap/54609
1923 * unknown.c (unknown_fileline): Add state parameter, remove
1924 fileline_data parameter, name error_callback parameter.
1925 (backtrace_initialize): Add state parameter.
1926
eff02e4f
ILT
19272012-09-17 Ian Lance Taylor <iant@google.com>
1928
1929 * Initial implementation.
818ab71a 1930\f
68127a8e 1931Copyright (C) 2012-2023 Free Software Foundation, Inc.
818ab71a
JJ
1932
1933Copying and distribution of this file, with or without modification,
1934are permitted in any medium without royalty provided the copyright
1935notice and this notice are preserved.