]> gcc.gnu.org Git - gcc.git/blame - libbacktrace/ChangeLog
Add regression test
[gcc.git] / libbacktrace / ChangeLog
CommitLineData
c232f921
GA
12024-10-25 Ian Lance Taylor <iant@golang.org>
2
3 * macho.c (dwarf_section_names): Add __debug_addr and
4 __debug_line_str.
5
de14559e
GA
62024-10-18 Ian Lance Taylor <iant@golang.org>
7
8 * dwarf.c (resolve_unit_addrs_overlap_walk): New static function.
9 (resolve_unit_addrs_overlap): New static function.
10 (build_dwarf_data): Call resolve_unit_addrs_overlap.
11
8ac4db24
GA
122024-08-05 Ian Lance Taylor <iant@golang.org>
13
14 * configure.ac (ACX_PROG_CC_WARNING_OPTS): Add -Wpointer-arith.
15 * pecoff.c (coff_add): Cast void pointers.
16 * xcoff.c (xcoff_add): Likewise.
17 * configure: Regenerate.
18
e7f6a5dc
GA
192024-07-30 Ian Lance Taylor <iant@golang.org>
20
21 * pecoff.c (LDR_DLL_NOTIFICATION): Put function modifier
22 inside parentheses.
23 (LDR_REGISTER_FUNCTION): Likewise.
24
e20ea6bc
GA
252024-07-18 Ian Lance Taylor <iant@golang.org>
26
27 * internal.h: Use __has_attribute to check for fallthrough
28 attribute.
29 * elf.c (elf_zstd_decompress): Use ATTRIBUTE_FALLTHROUGH rather
30 than a FALLTHROUGH comment.
31
322024-07-18 Ian Lance Taylor <iant@golang.org>
33
34 * print.c (print_syminfo_callback): Add cast to avoid warning.
35
362024-07-18 Ian Lance Taylor <iant@golang.org>
37
38 * print.c (print_syminfo_callback): New static function.
39 (print_callback): Call backtrace_syminfo if there is no function
40 or file name.
41
a922de0a
GA
422024-07-18 Ian Lance Taylor <iant@golang.org>
43
44 * README: Add notes about dl_iterate_phdr.
45
462024-07-17 Ian Lance Taylor <iant@golang.org>
47
48 * xcoff.c (struct xcoff_fileline_data): Change base_address field
49 to struct libbacktrace_base_address.
50 (xcoff_initialize_syminfo): Change base_address to struct
51 libbacktrace_base_address. Use libbacktrace_add_base.
52 (xcoff_initialize_fileline): Likewise.
53 (xcoff_lookup_pc): Use libbacktrace_add_base.
54 (xcoff_add): Change base_address to struct
55 libbacktrace_base_address.
56 (xcoff_armem_add, xcoff_add_shared_libs): Likewise.
57 (backtrace_initialize): Likewise.
58 * Makefile.am (xcoff.lo): Remove unused target.
59 (xcoff_32.lo, xcoff_64.lo): New targets.
60 * Makefile.in: Regenerate.
61
72bce1fb
GA
622024-07-16 Ian Lance Taylor <iant@golang.org>
63
64 * internal.h: If FDPIC, #include <link.h> and/or <sys/link.h>.
65 (libbacktrace_using_fdpic): Define.
66 (struct libbacktrace_base_address): Define.
67 (libbacktrace_add_base): Define.
68 (backtrace_dwarf_add): Change base_address to struct
69 libbacktrace_base_address.
70 * dwarf.c (struct dwarf_data): Change base_address to struct
71 libbacktrace_base_address.
72 (add_ranges, find_address_ranges, build_ddress_map): Likewise.
73 (build_dwarf_data, build_dwarf_add): Likewise.
74 (add_low_high_range): Change base_address to struct
75 libbacktrace_base_address. Use libbacktrace_add_base.
76 (add_ranges_from_ranges, add_ranges_from_rnglists): Likewise.
77 (add_line): Use libbacktrace_add_base.
78 * elf.c (elf_initialize_syminfo): Change base_address to struct
79 libbacktrace_base_address. Use libbacktrace_add_base.
80 (elf_add): Change base_address to struct
81 libbacktrace_base_address.
82 (phdr_callback): Likewise. Initialize base_address.m.
83 (backtrace_initialize): If using FDPIC, don't call elf_add with
84 main executable; always use dl_iterate_phdr.
85 * macho.c (macho_add_symtab): Change base_address to struct
86 libbacktrace_base_address. Use libbacktrace_add_base.
87 (macho_syminfo): Change base_address to struct
88 libbacktrace_base_address.
89 (macho_add_fat, macho_add_dsym, macho_add): Likewise.
90 (backtrace_initialize): Likewise. Initialize base_address.m.
91 * pecoff.c (coff_initialize_syminfo): Change base_address to
92 struct libbacktrace_base_address. Use libbacktrace_add_base.
93 (coff_add): Change base_address to struct
94 libbacktrace_base_address. Initialize base_address.m.
95
2ee5b58b
GA
962024-07-12 Ian Lance Taylor <iant@golang.org>
97
98 * elf.c (elf_add): Don't use .gnu_debugdata if we are already
99 reading a debuginfo file.
100 * Makefile.am (m2test_*): New test targets.
101 (CHECK_PROGRAMS): Add m2test.
102 (MAKETESTS): Add m2test_minidebug2.
103 (%_minidebug2): New pattern.
104 (CLEANFILES): Remove minidebug2 files.
105 * Makefile.in: Regenerate.
106
1072024-07-12 Ian Lance Taylor <iant@golang.org>
108
109 * btest.c (test5): Don't fail if symbol size is 0.
110 * mtest.c (test5): Likewise.
111
1122024-07-12 Ian Lance Taylor <iant@golang.org>
113
114 * macho.c (MACH_O_N_EXT): Don't define.
115 (MACH_O_N_UNDF): Define.
116 (macho_defined_symbol): Don't discard N_EXT symbols. Do
117 discard N_UNDF symbols.
118
88ff0504
GA
1192024-07-11 Ian Lance Taylor <iant@golang.org>
120
121 * btest.c (test1, test3): Add optnone attribute.
122 * edtest.c (test1): Likewise.
123 * mtest.c (test1, test3): Likewise.
124 * configure.ac: Use -Wno-attributes and -Wno-unknown-attributes.
125 * configure: Regenerate.
126
1272024-07-11 Ian Lance Taylor <iant@golang.org>
128
129 * elf.c (elf_nodebug): Suggest -g.
130 * macho.c (macho_nodebug): Suggest -g and dsymutil.
131 * pecoff.c (coff_nodebug): Suggest -g.
132
1332024-07-11 Ian Lance Taylor <iant@golang.org>
134
135 * dwarf.c: Remove trailing whitespace.
136 * macho.c: Likewise.
137
6c08b829
GA
1382024-06-16 Ian Lance Taylor <iant@golang.org>
139
140 * elf.c (elf_fetch_bits_backward) Don't fail if no bits are
141 available.
142
3e3d115c
GA
1432024-05-03 Ian Lance Taylor <iant@golang.org>
144
145 * pecoff.c (struct dll_notification_data): Define.
146 (LDR_DLL_NOTIFICATION): New typedef.
147 (LDR_REGISTER_FUNCTION): New typedef.
148 (struct dll_notification_context): Define.
149 (dll_notification): New static function.
150 (backtrace_initialize): Register DLL notification.
151
deb69bfb
GA
1522024-04-28 Ian Lance Taylor <iant@golang.org>
153
154 * configure.ac: Checked for tlhelp32.h
155 * pecoff.c: Include <tlhelp32.h> if available.
156 (backtrace_initialize): Use tlhelp32 api for a snapshot to
157 detect loaded modules.
158 (coff_add): New argument for the module handle of the file,
159 to get the base address.
160 * configure, config.h.in: Regenerate.
161
3091f1df
GA
1622024-04-23 Ian Lance Taylor <iant@golang.org>
163
164 * configure.ac: Test --compress-debug-sections=zlib-gnu and
165 --compress-debug-sections=zlib-gabi separately, setting new
166 automake conditionals.
167 * Makefile.am (ctestg, ctestg_alloc): Only build if
168 HAVE_COMPRESSED_DEBUG_ZLIB_GNU.
169 (ctesta, ctesta_alloc): Only build if
170 HAVE_COMPRESSED_DEBUG_ZLIB_GABI.
171 (ctestzstd_alloc): New test if HAVE_COMPRESSED_DEBUG_ZSTD.
172 * configure, Makefile.in: Regenerate.
173
c775a030
GA
1742024-03-08 Ian Lance Taylor <iant@golang.org>
175
176 * elf.c (elf_uncompress_chdr): Don't assume compressed section is
177 aligned.
178
ef1b7885
GA
1792024-03-02 Ian Lance Taylor <iant@golang.org>
180
181 * Makefile.am (libbacktrace_testing_ldflags): Define.
182 (*_LDFLAGS): Add $(libbacktrace_testing_ldflags) for test
183 programs.
184 * Makefile.in: Regenerate
185
1862024-03-02 Ian Lance Taylor <iant@golang.org>
187
188 * elf.c (elf_uncompress_lzma_block): Skip all header padding bytes
189 and verify that they are zero.
190
1912024-03-02 Ian Lance Taylor <iant@golang.org>
192
193 PR libbacktrace/114201
194 * elf.c (elf_add): Add caller_opd parameter. Change all callers.
195 Release opd data after all recursive calls.
196
306a4c32
GA
1972024-03-01 Ian Lance Taylor <iant@golang.org>
198
199 * elf.c (elf_add): Add the symbol table from a debuginfo file.
200 * Makefile.am (MAKETESTS): Add buildidfull and gnudebuglinkfull
201 variants of buildid and gnudebuglink tests.
202 (%_gnudebuglinkfull, %_buildidfull): New patterns.
203 * Makefile.in: Regenerate.
204
8428bcd7
GA
2052023-11-30 Ian Lance Taylor <iant@golang.org>
206
207 * pecoff.c: Include <windows.h> if available.
208 (coff_add): On Windows call GetModuleHandle to get base address.
209
31d8cf17
GA
2102023-11-29 Ian Lance Taylor <iant@golang.org>
211
212 * fileline.c: Include <windows.h> if available.
213 (windows_get_executable_path): New static function.
214 (fileline_initialize): Call windows_get_executable_path.
215 * configure.ac: Checked for windows.h
216 * configure: Regenerate.
217 * config.h.in: Regenerate.
218
3b632746
GA
2192023-10-22 Iain Sandoe <iain@sandoe.co.uk>
220
221 * configure: Regenerate.
222 * configure.ac: Handle Darwin rpaths.
223
4b92dba7
GA
2242023-08-07 Nick Alcock <nick.alcock@oracle.com>
225
226 * configure: Regenerate.
227
2282023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
229
230 * configure: Regenerate.
231
2322023-08-07 Nick Alcock <nick.alcock@oracle.com>
233
234 * configure: Regenerate.
235
2362023-08-07 Nick Alcock <nick.alcock@oracle.com>
237
238 * configure: Regenerate.
239
2402023-08-07 H.J. Lu <hjl.tools@gmail.com>
241
242 * configure: Regenerate.
243
2442023-08-07 H.J. Lu <hjl.tools@gmail.com>
245
246 * configure: Regenerate.
247
86fa4433
GA
2482023-08-03 Richard Biener <rguenther@suse.de>
249
250 * zstdtest.c (test_samples): Properly compute the allocation
251 size for the uncompressed data.
252
a2f31d79
GA
2532023-07-31 Ian Lance Taylor <iant@golang.org>
254
255 * configure.ac: Check for _pgmptr declaration.
256 * fileline.c (fileline_initialize): Check for _pgmfptr before
257 /proc/self/exec.
258 * configure, config.h.in: Regenerate.
259
579cdc1e
GA
2602023-03-28 Ian Lance Taylor <iant@golang.org>
261
262 * elf.c (elf_zstd_read_fse): Call elf_fetch_bits after reading
263 bits, not before. Add unlikely for error case.
264 (elf_zstd_offset_table): Regenerate.
265 (elf_zstd_read_huff): Clear 13 entries in weight_mark, not 12.
266 (elf_zstd_read_literals): For a single stream adjust by
267 total_streams_size, not compressed_size.
268
1bdb1768
GA
2692023-01-20 Ian Lance Taylor <iant@golang.org>
270
271 * dwarf.c (struct function_addrs): Change low and high fields to
272 uintptr_t.
273 (struct unit_addrs): Likewise.
274 (resolve_addr_index): Change address parameter to uintptr_t*.
275 (add_unit_addr): Change lowpc and highpc parameters to uintptr_t.
276 (add_function_range): Likewise.
277 (struct pcrange): Change lowpc and highpc fields to uintptr_t.
278 (add_low_high_range): Change add_range lowpc and highpc parameters
279 to uintptr_t.
280 (add_ranges_from_ranges): Likewise.
281 (add_ranges_from_rnglists): Likewise.
282 (add_low_high_range): Chnage lowpc and highpc variables to
283 uintpr_t.
284 (add_ranges_from_rnglists): Change some local variables to
285 uintptr_t.
286 (add_ranges_from_ranges): Change base parameter to uintptr_t.
287 (add_ranges_from_rnglists): Likewise.
288 (read_function_entry): Likewise.
289 (resolve_addr_index): Add explicit casts to uintptr_t.
290 (update_pcrange): Likewise.
291 (add_ranges_from_ranges): Likewise.
292 (add_ranges_from_rnglists): Likewise.
293 (read_function_entry): Likewise.
294
8d07b193
GA
2952023-01-17 Martin Liska <mliska@suse.cz>
296
297 * Makefile.in: Regenerate.
298
d808db1f
GA
2992023-01-06 Ian Lance Taylor <iant@golang.org>
300
301 PR libbacktrace/108297
302 * configure.ac: Test whether linker supports --build-id.
303 * Makefile.am: Only run --build-id tests if supported.
304 * configure, Makefile.in: Regenerate.
305
92bc3617
GA
3062022-12-17 Ian Lance Taylor <iant@golang.org>
307
308 * elf.c (elf_fetch_backward_init): New static function.
309 (ZSTD_TABLE_SIZE): Use huffman scratch space size rather than
310 literal size.
311 (ZSTD_TABLE_WORK_LIT_SIZE): Don't define.
312 (elf_zstd_read_huff): Use elf_fetch_backward_init.
313 (elf_zstd_read_literals): New static function.
314 (ZSTD_LIT_RAW, ZSTD_LIT_RLE, ZSTD_LIT_HUFF): Don't define.
315 (struct elf_zstd_literals): Don't define.
316 (elf_zstd_literal_output): Remove static function.
317 (elf_zstd_decompress): Use elf_fetch_backward_init and
318 elf_zstd_read_literals. Rewrite literal copying.<
319
c6b12b80
GA
3202022-12-10 Ian Lance Taylor <iant@golang.org>
321
322 * elf.c (ZSTD_TABLE_*): Use elf_zstd_fse_baseline_entry.
323 (ZSTD_ENCODE_BASELINE_BITS): Define.
324 (ZSTD_DECODE_BASELINE, ZSTD_DECODE_BASEBITS): Define.
325 (elf_zstd_literal_length_base): New static const array.
326 (elf_zstd_match_length_base): Likewise.
327 (struct elf_zstd_fse_baseline_entry): Define.
328 (elf_zstd_make_literal_baseline_fse): New static function.
329 (elf_zstd_make_offset_baseline_fse): Likewise.
330 (elf_zstd_make_match_baseline_fse): Likewise.
331 (print_table, main): Use elf_zstd_fse_baseline_entry.
332 (elf_zstd_lit_table, elf_zstd_match_table): Likewise.
333 (elf_zstd_offset_table): Likewise.
334 (struct elf_zstd_seq_decode): Likewise. Remove use_rle and rle
335 fields.
336 (elf_zstd_unpack_seq_decode): Use elf_zstd_fse_baseline_entry,
337 taking a conversion function. Convert RLE to FSE.
338 (elf_zstd_literal_length_baseline): Remove.
339 (elf_zstd_literal_length_bits): Remove.
340 (elf_zstd_match_length_baseline): Remove.
341 (elf_zstd_match_length_bits): Remove.
342 (elf_zstd_decompress): Use elf_zstd_fse_baseline_entry. Rewrite
343 and simplify main loop.
344
e6110da4
GA
3452022-12-08 Ian Lance Taylor <iant@golang.org>
346
347 * configure.ac: Check for zstd library and
348 --compress-debug-sections=zstd linker option.
349 * Makefile.am (zstdtest_*): New targets.
350 (zstdtest_alloc_*, ctestzstd_*): New targets.
351 (BUILDTESTS): Add zstdtest, zstdtest_alloc, ctestzstd as
352 appropriate.
353 * elf.c (ELFCOMPRESS_ZSTD): Define.
354 (elf_fetch_bits): Rename from elf_zlib_fetch. Update uses.
355 (elf_fetch_bits_backward): New static function.
356 (ZLIB_HUFFMAN_*): Rename from HUFFMAN_*. Update uses.
357 (ZLIB_TABLE_*): Rename from ZDEBUG_TABLE_*. Update uses.
358 (ZSTD_TABLE_*): Define.
359 (struct elf_zstd_fse_entry): Define.
360 (elf_zstd_read_fse): New static function.
361 (elf_zstd_build_fse): Likewise.
362 (lit): Define if BACKTRACE_GENERATE_ZSTD_FSE_TABLES.
363 (match, offset, next, print_table, main): Likewise.
364 (elf_zstd_lit_table): New static const array.
365 (elf_zstd_match_table, elf_zstd_offset_table): Likewise.
366 (elf_zstd_read_huff): New static function.
367 (struct elf_zstd_seq_decode): Define.
368 (elf_zstd_unpack_seq_decode): New static function.
369 (ZSTD_LIT_*): Define.
370 (struct elf_zstd_literals): Define.
371 (elf_zstd_literal_output): New static function.
372 (ZSTD_LITERAL_LENGTH_BASELINE_OFFSET): Define.
373 (elf_zstd_literal_length_baseline): New static const array.
374 (elf_zstd_literal_length_bits): Likewise.
375 (ZSTD_MATCH_LENGTH_BASELINE_OFFSET): Define.
376 (elf_zstd_match_length_baseline): New static const array.
377 (elf_zstd_match_length_bits): Likewise.
378 (elf_zstd_decompress): New static function.
379 (ZDEBUG_TABLE_SIZE): New definition.
380 (elf_uncompress_chdr): Support ELF_COMPRESS_ZSTD.
381 (backtrace_uncompress_zstd): New function.
382 (elf_add): Use ZLIB_TABLE_SIZE for zlib-gnu sections.
383 * internal.h (backtrace_uncompress_zstd): Declare.
384 * zstdtest.c: New file.
385 * configure, config.h.in, Makefile.in: Regenerate.
386
781f477a
GA
3872022-10-12 Martin Liska <mliska@suse.cz>
388
389 * configure: Regenerate.
390
ab332cd7
GA
3912022-10-11 Olivier Hainque <hainque@adacore.com>
392 Olivier Hainque <hainque@adacore.com>
393
394 * configure: Regenerate.
395
0fe604a2
GA
3962022-07-08 Ian Lance Taylor <iant@golang.org>
397
398 * configure.ac: Check for sys/link.h. Use either link.h or
399 sys/link.h when checking for dl_iterate_phdr.
400 * elf.c: Include sys/link.h if available.
401 * configure, config.h.in: Regenerate.
402
6345c414
GA
4032022-07-07 Ian Lance Taylor <iant@golang.org>
404
405 * macho.c (backtrace_initialize) [HAVE_MACH_O_DYLD_H]: Don't exit
406 loop if we can't find debug info for one shared library.
407
4082022-07-07 Ian Lance Taylor <iant@golang.org>
409
410 * Makefile.am (MAKETESTS): New variable split out of TESTS.
411 (CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS.
412 * Makefile.in: Regenerate.
413
9d3dd218
GA
4142022-06-27 Ian Lance Taylor <iant@golang.org>
415
416 * configure.ac: Use grep instead of fgrep.
417 * configure, Makefile.in: Regenerate.
418
37b3b5da
GA
4192022-05-28 Ian Lance Taylor <iant@golang.org>
420
421 PR libbacktrace/105721
422 * README: Update.
423
9d84ed68
GA
4242022-04-05 Ian Lance Taylor <iant@golang.org>
425
426 * elf.c (elf_zlib_inflate): Don't skip initial aligned byte in
427 uncompressed block.
428
0bdb0498
GA
4292022-02-17 Ian Lance Taylor <iant@golang.org>
430
431 * dwarf.c (find_address_ranges): Handle skeleton units.
432 (read_function_entry): Likewise.
433
cb3afcd2
GA
4342022-02-16 Ian Lance Taylor <iant@golang.org>
435
436 * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit.
437
682ede39
GA
4382022-02-03 David Seifert <soap@gentoo.org>
439 Jakub Jelinek <jakub@redhat.com>
440
441 * configure.ac: Support --disable-werror.
442 * configure: Regenerate.
443
054e57e4
GA
4442021-12-28 Francois-Xavier Coudert <fxcoudert@gmail.com>
445
446 PR libbacktrace/103822
447 * Makefile.am: Fix newline.
448 * Makefile.in: Regenerate.
449
af2852b9
GA
4502021-11-12 Martin Liska <mliska@suse.cz>
451
452 PR libbacktrace/103167
453 * elf.c (elf_uncompress_lzma_block): Cast to unsigned int.
454 (elf_uncompress_lzma): Likewise.
455 * xztest.c (test_samples): memcpy only if v > 0.
456
c2bd5d8a
GA
4572021-10-22 Martin Liska <mliska@suse.cz>
458
459 PR testsuite/102742
460 * btest.c (MIN_DESCRIPTOR): New.
461 (MAX_DESCRIPTOR): Likewise.
462 (check_available_files): Likewise.
463 (check_open_files): Check only file descriptors that
464 were not available at the entry.
465 (main): Call check_available_files.
466
261512fa
GA
4672021-08-13 Sergei Trofimovich <siarheit@google.com>
468
469 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
470 output with LANG=C.
471
c8abc205
GA
4722021-06-28 Clément Chigot <clement.chigot@atos.net>
473
474 * xcoff.c (SSUBTYP_DWRNGES): New define.
475 (xcoff_add): Use correct XCOFF DWARF section subtype
476 for DEBUG_RANGES. Remove lineoff workaround.
477 Adjust base_address.
478 (xcoff_initialize_syminfo): Adapt to new base_address.
479 (xcoff_lookup_pc): Likewise.
480 (xcoff_initialize_fileline): Likewise.
481
e690396d
GA
4822021-05-03 H.J. Lu <hjl.tools@gmail.com>
483
484 PR bootstrap/99703
485 * configure: Regenerated.
486
f3641ac7
GA
4872021-03-03 Ian Lance Taylor <iant@golang.org>
488
489 * dwarf.c (read_line_program): Don't special case file 0.
490 (read_function_entry): Likewise.
491
d97a92dc
GA
4922021-03-02 Ian Lance Taylor <iant@golang.org>
493
494 PR libbacktrace/98818
495 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
496 callers.
497 * backtrace.h: Update backtrace_error_callback comment.
498
fab095da
GA
4992021-02-12 Ian Lance Taylor <iant@golang.org>
500
501 * configure.ac: Check for objcopy --add-gnu-debuglink by using
502 objcopy --help.
503 * configure: Regenerate
504
ef1f8ee6
GA
5052021-01-18 Ian Lance Taylor <iant@golang.org>
506
507 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
508 * Makefile.in: Regenerate.
509 * configure: Regenerate.
510
5112021-01-18 Ian Lance Taylor <iant@golang.org>
512
513 PR debug/98716
514 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
515 filenames.
516 (read_line_program): Remove parameter u, change caller. Don't
517 subtract one from dirs and filenames index.
518 (read_function_entry): Don't subtract one from filenames index.
519
651b8a50
GA
5202021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
521
522 * configure: Re-generate.
523
6e1edf48
GA
5242020-12-05 Iain Sandoe <iain@sandoe.co.uk>
525
526 PR target/97865
527 * configure: Regenerate.
528
11860cf4
GA
5292020-12-02 Ian Lance Taylor <iant@golang.org>
530
531 * dwarf.c (resolve_string): Use > rather than >= to check whether
532 string index extends past buffer.
533 (resolve_addr_index): Similarly for address index.
534
a9625c50
GA
5352020-11-29 John David Anglin <danglin@gcc.gnu.org>
536
537 * configure: Regenerate.
538
e2e04288
GA
5392020-10-20 Ian Lance Taylor <iant@golang.org>
540
541 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
542 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
543
e84761c6
GA
5442020-09-28 Ian Lance Taylor <iant@golang.org>
545
546 PR libbacktrace/97082
547 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
548 * Makefile.in: Regenerate.
549
5502020-09-28 Ian Lance Taylor <iant@golang.org>
551
552 PR libbacktrace/97227
553 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
554 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
555 * configure: Regenerate.
556 * Makefile.in: Regenerate.
557
82b77dee
GA
5582020-09-23 Ian Lance Taylor <iant@golang.org>
559
560 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
561 p->low.
562 (dwarf_lookup_pc): Likewise.
563
ecde1b0a
GA
5642020-09-17 Ian Lance Taylor <iant@golang.org>
565
566 PR libbacktrace/97080
567 * fileline.c (backtrace_syminfo_to_full_callback): New function.
568 (backtrace_syminfo_to_full_error_callback): New function.
569 * elf.c (elf_nodebug): Call syminfo_fn if possible.
570 * internal.h (struct backtrace_call_full): Define.
571 (backtrace_syminfo_to_full_callback): Declare.
572 (backtrace_syminfo_to_full_error_callback): Declare.
573 * mtest.c (f3): Only check all[i] if data.index permits.
574
5752020-09-16 Iain Sandoe <iain@sandoe.co.uk>
576
577 * macho.c (MACH_O_CPU_TYPE_PPC): New.
578 (MACH_O_CPU_TYPE_PPC64): New.
579 Add compile-tests for powerpc to the Mach-O variants.
580
50a71cd0
GA
5812020-09-14 Ian Lance Taylor <iant@golang.org>
582
583 PR libbacktrace/93608
584 Add support for MiniDebugInfo.
585 * elf.c (struct elf_view): Define. Replace most uses of
586 backtrace_view with elf_view.
587 (elf_get_view): New static functions. Replace most calls of
588 backtrace_get_view with elf_get_view.
589 (elf_release_view): New static functions. Replace most calls of
590 backtrace_release_view with elf_release_view.
591 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
592 callers.
593 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
594 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
595 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
596 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
597 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
598 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
599 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
600 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
601 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
602 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
603 (LZMA_PROB_DIST_ALIGN_LEN): Define.
604 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
605 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
606 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
607 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
608 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
609 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
610 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
611 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
612 (LZMA_PROB_REP_LEN_MID_LEN): Define.
613 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
614 (LZMA_PROB_LITERAL_LEN): Define.
615 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
616 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
617 (LZMA_PROB_IS_REP2_OFFSET): Define.
618 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
619 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
620 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
621 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
622 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
623 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
624 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
625 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
626 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
627 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
628 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
629 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
630 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
631 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
632 (LZMA_PROB_LITERAL_OFFSET): Define.
633 (LZMA_PROB_TOTAL_COUNT): Define.
634 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
635 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
636 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
637 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
638 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
639 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
640 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
641 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
642 (elf_lzma_varint): New static function.
643 (elf_lzma_range_normalize): New static function.
644 (elf_lzma_bit, elf_lzma_integer): New static functions.
645 (elf_lzma_reverse_integer): New static function.
646 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
647 (elf_uncompress_lzma): New static function.
648 (backtrace_uncompress_lzma): New function.
649 (elf_add): Add memory and memory_size parameters. Change all
650 callers. Look for .gnu_debugdata section, and, if found,
651 decompress it and use it for symbols and debug info. Permit the
652 descriptor parameter to be -1.
653 * internal.h (backtrace_uncompress_lzma): Declare.
654 * mtest.c: New file.
655 * xztest.c: New file.
656 * configure.ac: Check for nm, xz, and comm programs. Check for
657 liblzma library.
658 (HAVE_MINIDEBUG): Define.
659 * Makefile.am (mtest_SOURCES): Define.
660 (mtest_CFLAGS, mtest_LDADD): Define.
661 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
662 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
663 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
664 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
665 (xztest_alloc_LDADD): Define.
666 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
667 (CLEANFILES): Add files created by minidebug pattern.
668 (btest.lo): Correct INCDIR reference.
669 (mtest.lo, xztest.lo, ztest.lo): New targets.
670 * configure: Regenerate.
671 * config.h.in: Regenerate.
672 * Makefile.in: Regenerate.
673
80f86e78
GA
6742020-09-09 Ian Lance Taylor <iant@golang.org>
675
676 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
677 (coff_add): Determine and pass is_64.
678
6792020-09-09 Ian Lance Taylor <iant@golang.org>
680
681 PR libbacktrace/96973
682 * fileline.c (macho_get_executable_path): New static function.
683 (fileline_initialize): Call macho_get_executable_path.
684
6852020-09-09 Ian Lance Taylor <iant@golang.org>
686
687 * dwarf.c (function_addrs_search): Compare against the next entry
688 low address, not the high address.
689 (unit_addrs_search): Likewise.
690 (build_address_map): Add a trailing unit_addrs.
691 (read_function_entry): Add a trailing function_addrs.
692 (read_function_info): Likewise.
693 (report_inlined_functions): Search backward for function_addrs
694 match.
695 (dwarf_lookup_pc): Search backward for unit_addrs and
696 function_addrs matches.
697
31a05046
GA
6982020-09-08 Ian Lance Taylor <iant@golang.org>
699
700 * simple.c (simple_unwind): Correct comment spelling.
701
7022020-09-08 Ian Lance Taylor <iant@golang.org>
703
704 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
705 correct length when freeing diralc.
706
7072020-09-08 Ian Lance Taylor <iant@golang.org>
708
709 PR libbacktrace/96973
710 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
711
7122020-09-08 Ian Lance Taylor <iant@golang.org>
713
714 PR libbacktrace/96971
715 * filetype.awk: Only match magic number at start of line.
716
b2b24d30
GA
7172020-08-24 Ian Lance Taylor <iant@golang.org>
718
719 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
720 (MACH_O_MH_CIGAM_FAT_64): Define.
721 (struct macho_fat_arch_64): Define.
722 (macho_add_fat): Add and use is_64 parameter.
723 (macho_add): Recognize 64-bit fat files.
724
d48cca8f
GA
7252020-07-30 H.J. Lu <hjl.tools@gmail.com>
726
727 PR bootstrap/96202
728 * configure: Regenerated.
729
50873cc5
GA
7302020-07-08 Ian Lance Taylor <iant@golang.org>
731
732 * configure.ac: Test linker support for DWARF5
733 * configure: Regenerate
734
885ef72f
GA
7352020-05-29 H.J. Lu <hjl.tools@gmail.com>
736
737 PR bootstrap/95413
738 * configure: Regenerated.
739
4c1a5d8b
L
7402020-05-15 H.J. Lu <hongjiu.lu@intel.com>
741
742 PR bootstrap/95147
743 * configure: Regenerated.
744
8d286dd1
L
7452020-05-14 H.J. Lu <hongjiu.lu@intel.com>
746
747 * configure: Regenerated.
748
d2ec2786
ILT
7492020-05-13 Ian Lance Taylor <iant@golang.org>
750
751 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
752
702adbb2
ILT
7532020-05-13 Ian Lance Taylor <iant@golang.org>
754
755 PR go/95061
756 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
757
7582020-05-12 H.J. Lu <hongjiu.lu@intel.com>
d2148648
L
759
760 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
761 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
762 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
763 enabled.
764 * Makefile.in: Regenerated.
765 * configure: Likewise.
766
47f4703c
ILT
7672020-05-11 Ian Lance Taylor <iant@golang.org>
768
769 PR libbacktrace/95012
770 * configure.ac: Check for getpagesize declaration.
771 * mmap.c: Declare getpagesize if necessary.
772 * mmapio.c: Likewise.
773 * configure: Regenerate.
774 * config.h.in: Regenerate.
775 * Makefile.in: Regenerate.
776
ef639420
ILT
7772020-05-09 Roland McGrath <mcgrathr@google.com>
778
779 * elf.c (elf_add): Bail early if there are no section headers at all.
780
8600440e
ILT
7812020-05-09 Ian Lance Taylor <iant@golang.org>
782
783 * elf.c (elf_add): Don't free strtab if an error occurs after
784 recording symbol information.
785
dea40c94
ILT
7862020-05-09 Ian Lance Taylor <iant@golang.org>
787
788 PR libbacktrace/88745
789 * macho.c: New file.
790 * filetype.awk: Recognize Mach-O files.
791 * Makefile.am (FORMAT_FILES): Add macho.c.
792 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
793 (%.dSYM): New pattern target.
794 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
795 (test_macho_LDADD): New target.
796 (BUILDTESTS): Add test_macho.
797 (macho.lo): Add dependencies.
798 * configure.ac: Recognize macho file type. Check for
799 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
800 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
801 * Makefile.in: Regenerate.
802 * configure: Regenerate.
803 * config.h.in: Regenerate.
804
4b26b138
ILT
8052020-05-09 Ian Lance Taylor <iant@golang.org>
806
807 * read.c (backtrace_get_view): Support short read.
808
31ae7b86
ILT
8092020-05-09 Ian Lance Taylor <iant@golang.org>
810
811 * elf.c (elf_add): If debug sections are very large or far apart,
812 read them individually rather than as a single view.
813
26135684
ILT
8142020-05-08 Ian Lance Taylor <iant@golang.org>
815
816 * fileline.c (sysctl_exec_name): New static function.
817 (sysctl_exec_name1): New macro or static function.
818 (sysctl_exec_name2): Likewise.
819 (fileline_initialize): Try sysctl_exec_name[12].
820 * configure.ac: Check for sysctl args to fetch executable name.
821 * configure: Regenerate.
822 * config.h.in: Regenerate.
823
9a3d019a
ILT
8242020-02-15 Ian Lance Taylor <iant@golang.org>
825
826 * ztest.c (test_large): Update file to current libgo test file.
827
628ee3c2
ILT
8282020-02-03 Ian Lance Taylor <iant@golang.org>
829
830 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
831 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
832 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
833 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
834 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
835 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
836 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
837 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
838 (stest_alloc_CFLAGS): Likewise.
839 * Makefile.in: Regenerate.
840 * ztest.c (error_callback_compress): Mark vdata unused.
841 (test_large): Add casts to avoid warnings.
842
8d9254fc
JJ
8432020-01-01 Jakub Jelinek <jakub@redhat.com>
844
845 Update copyright years.
846
c926fd82
ILT
8472019-12-13 Ian Lance Taylor <iant@golang.org>
848
849 Add DWARF 5 support.
850 * dwarf.c (struct attr): Add val field.
851 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
852 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
853 (struct line_header): Add addrsize field.
854 (struct line_header_format): Define.
855 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
856 fields.
857 (read_uint24): New static function.
858 (read_attribute): Add implicit_val parameter. Replace dwarf_str
859 and dwarf_str_size parameters with dwarf_sections parameter. Add
860 support for new DWARF 5 forms. Change all callers.
861 (resolve_string): New static function.
862 (resolve_addr_index): Likewise.
863 (read_abbrevs): Support DW_FORM_implicit_const.
864 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
865 and ranges_is_index fields.
866 (update_pcrange): Support DWARF 5 encodings.
867 (add_high_low_range): New static function, split out of
868 add_ranges.
869 (add_ranges_from_ranges): Likewise.
870 (add_ranges_from_rnglists): New static function.
871 (add_ranges): Just call new helper functions.
872 (find_address_ranges): Use resolve_string for strings, after
873 reading all attributes. Handle new DWARF 5 attributes.
874 (build_address_map): Support DWARF 5 compilation units.
875 (read_v2_paths): New static function, split out of
876 read_line_header.
877 (read_lnct): New static function.
878 (read_line_header_format_entries): Likewise.
879 (read_line_header): Add ddata parameter. Support DWARF 5 line
880 headers. Call new helper functions. Change all callers.
881 (read_line_program): Use addrsize from line program header. Don't
882 special case directory index 0 for DWARF 5.
883 (read_referenced_name): Use resolve_string.
884 (read_function_entry): Handle DWARF 5 encodings. Use
885 resolve_string.
886 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
887 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
888 * elf.c (dwarf_section_names): Add new section names.
889 * pecoff.c (dwarf_section_names): Likewise.
890 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
891 fields.
892 * configure.ac: Define HAVE_DWARF5 automake conditional.
893 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
894 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
895 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
896 (dwarf5_alloc_LDADD): Likewise.
897 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
898 (CLEANFILES, clean-local): Define.
899
4b3fc188
ILT
9002019-12-08 Ian Lance Taylor <iant@golang.org>
901
902 * dwarf.c (struct pcrange): Define.
903 (update_pcrange, add_ranges): New static functions.
904 (add_unit_addr): Change signature to work with add_ranges. Don't
905 add base_address here.
906 (add_unit_ranges): Remove.
907 (find_address_ranges): Replace str/ranges parameters with
908 dwarf_sections. Use update_pcrange and add_ranges. Change all
909 callers.
910 (add_function_range): Change signature to work with add_ranges.
911 Don't add base_address here.
912 (add_function_ranges): Remove.
913 (read_function_entry): Use update_pcrange and add_ranges.
914
70bfe5a7
ILT
9152019-12-04 Ian Lance Taylor <iant@golang.org>
916
917 * edtest.c (test1): Add noclone attribute.
918
66ab5839
ILT
9192019-12-04 Ian Lance Taylor <iant@golang.org>
920
921 * internal.h (enum dwarf_section): Define.
922 (struct dwarf_sections): Define.
923 (backtrace_dwarf_add): Update declaration to replace specific
924 section parameters with dwarf_sections parameter.
925 * dwarf.c (struct dwarf_data): Replace specific section fields
926 with dwarf_sections field.
927 (read_attribute): Use dwarf_sections with altlink.
928 (build_address_map): Replace specific section parameters with
929 dwarf_sections parameter. Change all callers.
930 (read_line_info): Use dwarf_sections with ddata.
931 (read_referenced_name): Likewise.
932 (add_function_ranges): Likewise.
933 (read_function_entry): Likewise.
934 (read_function_info): Likewise.
935 (build_dwarf_data): Replace specific section parameters with
936 dwarf_sections parameter. Change all callers.
937 (backtrace_dwarf_add): Likewise.
938 * elf.c (enum debug_section): Remove.
939 (dwarf_section_names): Remove .zdebug names.
940 (elf_add): Track zsections separately. Build dwarf_sections.
941 * pecoff.c (enum debug_section): Remove.
942 (struct debug_section_info): Remove data field.
943 (coff_add): Build dwarf_sections.
944 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
945 references with DEBUG_xxx references.
946 (xcoff_add): Build dwarf_sections.
947
e9085da5
MR
9482019-09-27 Maciej W. Rozycki <macro@wdc.com>
949
950 * configure: Regenerate.
951
5fe5f75f
ILT
9522019-09-26 Ian Lance Taylor <iant@golang.org>
953
954 PR libbacktrace/91908
955 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
956 __sync_bool_compare_and_swap to void.
957 * xcoff.c (backtrace_initialize): Likewise.
958
2f2aeda9
UW
9592019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
960
961 * configure.ac: Remove references to spu.
962 * configure: Regenerate.
963
245254b8
CC
9642019-05-24 Clement Chigot <clement.chigot@atos.net>
965
966 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
967 test_elf_64.
968 * Makefile.in: Regenerate.
969
ccd1242e
RO
9702019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
971
972 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
973 handling.
974 * configure: Regenerate.
975
7856fb45
ILT
9762019-03-11 Ian Lance Taylor <iant@golang.org>
977
978 PR libbacktrace/89669
979 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
980 HAVE_ELF.
981 * Makefile.in: Regenerate.
982
067aef03
TV
9832019-02-26 Tom de Vries <tdevries@suse.de>
984
985 * btest.c (test5): Allow global.* as minimal symbol name for global.
986
d831b1ec
TV
9872019-02-26 Tom de Vries <tdevries@suse.de>
988
989 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
990 * Makefile.in: Regenerate.
991
68641fb7
TV
9922019-02-12 Tom de Vries <tdevries@suse.de>
993
994 PR libbacktrace/81983
995 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
996
c51b2c8c
TV
9972019-02-10 Tom de Vries <tdevries@suse.de>
998
999 * Makefile.am (BUILDTESTS): Add btest_lto.
1000 * Makefile.in: Regenerate.
1001 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
1002 __attribute__((noclone)).
1003
4af50e13
TV
10042019-02-08 Tom de Vries <tdevries@suse.de>
1005
1006 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
1007 * print.c (backtrace_print): Same.
1008 * simple.c (backtrace_simple): Same.
1009
2bd0a246
TV
10102019-02-08 Tom de Vries <tdevries@suse.de>
1011
1012 PR libbacktrace/78063
1013 * dwarf.c (build_address_map): Keep all parsed units.
1014 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
1015
3a3f5dd1
TV
10162019-01-31 Tom de Vries <tdevries@suse.de>
1017
1018 PR libbacktrace/89136
1019 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
1020 'debugaltlink_name_len =+ 1'.
1021
fddbc193
TV
10222019-01-29 Tom de Vries <tdevries@suse.de>
1023
1024 * install-debuginfo-for-buildid.sh.in: New script.
1025 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
1026 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
1027 * Makefile.in: Regenerate.
1028 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
1029 (READELF): Set with AC_CHECK_PROG.
1030 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
1031 * configure: Regenerate.
1032 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
1033 (elf_open_debugfile_by_buildid): ... here.
1034
57f0d303
TV
10352019-01-29 Tom de Vries <tdevries@suse.de>
1036
1037 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
1038 allocfail.
1039 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
1040 (check_PROGRAMS): Add BUILDTESTS.
1041 * Makefile.in: Regenerate.
1042
62d4a355
TV
10432019-01-28 Tom de Vries <tdevries@suse.de>
1044
1045 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
1046 Use $< to access prerequisite.
1047 * Makefile.in: Regenerate.
1048
4bfcd139
NS
10492019-01-25 Nathan Sidwell <nathan@acm.org>
1050
1051 * elf.c (elf_add): Pass "" filename to recursive call with
1052 separated debug.
1053
c75795fa
TV
10542019-01-25 Tom de Vries <tdevries@suse.de>
1055
1056 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
1057 filename == "".
1058 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
1059 * Makefile.in: Regenerate.
1060
37ab491d
TV
10612019-01-25 Tom de Vries <tdevries@suse.de>
1062
1063 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
1064 (TESTS): Rename dtest to btest_gnudebuglink.
1065 * Makefile.in: Regenerate.
1066
3f5d2012
TV
10672019-01-23 Tom de Vries <tdevries@suse.de>
1068
1069 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
1070 (units_search, find_unit): Use size_t for offset.
1071 (build_address_map): Use size_t for unit_offset.
1072
5e2a7241
GP
10732019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
1074
1075 * allocfail.c (main): Increase portability of printf statement.
1076
8b248c17
ILT
10772019-01-18 Ian Lance Taylor <iant@golang.org>
1078
1079 PR libbacktrace/88890
1080 * mmapio.c (backtrace_get_view): Change size parameter to
1081 uint64_t. Check that value fits in size_t.
1082 * read.c (backtrace_get_view): Likewise.
1083 * internal.h (backtrace_get_view): Update declaration.
1084 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
1085
10f48858
TV
10862019-01-17 Tom de Vries <tdevries@suse.de>
1087
1088 PR libbacktrace/82857
1089 * configure.ac (DWZ): Set with AC_CHECK_PROG.
1090 (HAVE_DWZ): Set with AM_CONDITIONAL.
1091 * configure: Regenerate.
1092 * Makefile.am (TESTS): Add btest_dwz.
1093 * Makefile.in: Regenerate.
1094
1c2a9a37
TV
10952019-01-17 Tom de Vries <tdevries@suse.de>
1096
1097 PR libbacktrace/82857
1098 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
1099 (read_attribute): Handle DW_FORM_GNU_ref_alt using
1100 ATTR_VAL_REF_ALT_INFO.
1101 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
1102
9d576782
TV
11032019-01-17 Tom de Vries <tdevries@suse.de>
1104
1105 * dwarf.c (struct unit): Add low_offset and high_offset fields.
1106 (struct unit_vector): New type.
1107 (struct dwarf_data): Add units and units_counts fields.
1108 (find_unit): New function.
1109 (find_address_ranges): Add and handle unit_tag parameter.
1110 (build_address_map): Add and handle units_vec parameter.
1111 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
1112 units vector.
1113
f2f00d3a
TV
11142019-01-17 Tom de Vries <tdevries@suse.de>
1115
1116 PR libbacktrace/82857
1117 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
1118 using altlink.
1119
944f59ff
TV
11202019-01-17 Tom de Vries <tdevries@suse.de>
1121
1122 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
1123 (read_attribute): Add altlink parameter. Handle missing altlink for
1124 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
1125 (find_address_ranges, build_address_map, build_dwarf_data): Add and
1126 handle altlink parameter.
1127 (read_referenced_name, read_function_entry): Add argument to
1128 read_attribute call.
1129
9ad458d5
TV
11302019-01-17 Tom de Vries <tdevries@suse.de>
1131
1132 * dwarf.c (struct dwarf_data): Add altlink field.
1133 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
1134 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
1135 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
1136 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
1137 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
1138 * xcoff.c (xcoff_add): Same.
1139
e6f00c83
TV
11402019-01-17 Tom de Vries <tdevries@suse.de>
1141
1142 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
1143 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
1144 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
1145 argument to backtrace_dwarf_add call.
1146 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
1147 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
1148 * xcoff.c (xcoff_add): Same.
1149
a34c2a3d
TV
11502019-01-17 Tom de Vries <tdevries@suse.de>
1151
1152 * elf.c (elf_add): Add and handle with_buildid_data and
1153 with_buildid_size parameters. Handle .gnu_debugaltlink section.
1154 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
1155
07e1534f
TV
11562019-01-16 Tom de Vries <tdevries@suse.de>
1157
1158 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
1159 of ...
1160 (read_referenced_name): ... here, and ...
1161 (read_function_entry): ... here.
1162
df1de064
TV
11632019-01-16 Tom de Vries <tdevries@suse.de>
1164
1165 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
1166 name.
1167 (read_function_entry): Same. Don't allow name found via
1168 DW_AT_abstract_origin or case DW_AT_specification to override linkage
1169 name.
1170
67914693
SL
11712019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1172
1173 PR other/16615
1174
1175 * backtrace.h: Mechanically replace "can not" with "cannot".
1176
a5544970
JJ
11772019-01-01 Jakub Jelinek <jakub@redhat.com>
1178
1179 Update copyright years.
1180
4b420b27
GP
11812018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
1182
1183 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
1184 in sed pattern.
1185 * Makefile.in: Regenerate.
1186
eb33bf0a
TV
11872018-12-28 Tom de Vries <tdevries@suse.de>
1188
1189 * dwarf.c (build_address_map): Reuse unused units.
1190
d9aa0961
TV
11912018-12-28 Tom de Vries <tdevries@suse.de>
1192
1193 * dwarf.c (build_address_map): Simplify by removing local variable
1194 abbrevs.
1195
40b8d3b2
ILT
11962018-12-28 Ian Lance Taylor <iant@golang.org>
1197 Tom de Vries <tdevries@suse.de>
1198
1199 PR libbacktrace/88063
1200 * dwarf.c (free_unit_addrs_vector): Remove.
1201 (build_address_map): Keep track of allocated units in vector. Free
1202 allocated units and corresponding abbrevs upon failure. Remove now
1203 redundant call to free_unit_addrs_vector. Free addrs vector upon
1204 failure. Free allocated unit vector.
1205
53a52133
TV
12062018-12-28 Tom de Vries <tdevries@suse.de>
1207
1208 * dwarf.c (build_address_map): Free addrs vector upon failure.
1209
a37a52e5
TV
12102018-12-14 Tom de Vries <tdevries@suse.de>
1211
1212 PR testsuite/88491
1213 * allocfail.sh: Remove "set -o pipefail".
1214
d665cd9b
TV
12152018-12-12 Tom de Vries <tdevries@suse.de>
1216
1217 * Makefile.am (TESTS): Add allocfail.sh.
1218 (check_PROGRAMS): Add allocfail.
1219 * Makefile.in: Regenerate.
1220 * instrumented_alloc.c: New file. Redefine malloc and realloc.
1221 Include alloc.c.
1222 * allocfail.c: New file.
1223 * allocfail.sh: New file.
1224
187b9e1d
TV
12252018-11-30 Tom de Vries <tdevries@suse.de>
1226
1227 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
1228 test_xcoff_64, test_pecoff and test_unknown.
1229 * Makefile.in: Regenerate.
1230 * test_format.c: New file.
1231
9b7d1a97
TV
12322018-11-30 Tom de Vries <tdevries@suse.de>
1233
1234 * Makefile.am : Add _with_alloc version for each test in
1235 check_PROGRAMS.
1236 * Makefile.in: Regenerate.
1237
518a3a21
TV
12382018-11-30 Tom de Vries <tdevries@suse.de>
1239
1240 * internal.h (backtrace_vector_free): New static inline fuction,
1241 factored out of ...
1242 * dwarf.c (read_line_info): ... here.
1243
18c742b5
TV
12442018-11-28 Tom de Vries <tdevries@suse.de>
1245
1246 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
1247 failure.
1248
6d760a01
TV
12492018-11-27 Tom de Vries <tdevries@suse.de>
1250
1251 * mmap.c (backtrace_vector_release): Same.
1252 * unittest.c (test1): Add check.
1253
0c155f24
TV
12542018-11-27 Tom de Vries <tdevries@suse.de>
1255
1256 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
1257 instead of realloc.
1258 * Makefile.am (check_PROGRAMS): Add unittest.
1259 * Makefile.in: Regenerate.
1260 * unittest.c: New file.
1261
292592c5
TV
12622018-11-22 Tom de Vries <tdevries@suse.de>
1263
1264 * dwarf.c (read_initial_length): Factor out of ...
1265 (build_address_map, read_line_info): ... here.
1266
17112570
TV
12672018-11-21 Tom de Vries <tdevries@suse.de>
1268
1269 * dwarf.c (read_string): Factor out of ...
1270 (read_attribute, read_line_header, read_line_program): ... here.
1271
22e05272
JM
12722018-10-31 Joseph Myers <joseph@codesourcery.com>
1273
1274 PR bootstrap/82856
1275 * Makefile.am: Include multilib.am.
1276 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
1277 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1278
a2a86641
ILT
12792018-10-05 Ian Lance Taylor <iant@golang.org>
1280
1281 PR libbacktrace/87529
1282 * backtrace.h: Document that backtrace_create_state should be
1283 called only once.
1284
2206fb89
IB
12852018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
1286
1287 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
1288 * Makefile.in: Regenerate.
1289 * config.h.in: Likewise.
1290 * configure: Likewise.
1291
ca9a1314
TR
12922018-08-01 Tony Reix <tony.reix@atos.net>
1293
1294 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
1295 (struct xcoff_func, struct xcoff_func_vector): New structs.
1296 (xcoff_syminfo): Drop leading dot from symbol name.
1297 (xcoff_line_compare, xcoff_line_search): Remove.
1298 (xcoff_func_compare, xcoff_func_search): New static functions.
1299 (xcoff_lookup_pc): Search function table.
1300 (xcoff_add_line, xcoff_process_linenos): Remove.
1301 (xcoff_initialize_fileline): Build function table.
1302
1ac6620a
DK
13032018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
1304
1305 PR other/86198
1306 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
1307 checking up to 36 bytes.
1308
7b47ecf2
L
13092018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1310
1311 * configure: Regenerated.
1312
a0e1df88
JJ
13132018-04-19 Jakub Jelinek <jakub@redhat.com>
1314
1315 * configure: Regenerated.
1316
21070494
ILT
13172018-04-17 Ian Lance Taylor <iant@golang.org>
1318
1319 * backtrace.c: Revert last two changes. Don't call mmap
1320 directly.
1321
c36af1b4
ILT
13222018-04-17 Ian Lance Taylor <iant@golang.org>
1323
1324 * backtrace.c: Include backtrace-supported.h before checking
1325 BACKTRACE_USES_MALLOC.
1326
83a658ca
ILT
13272018-04-17 Ian Lance Taylor <iant@golang.org>
1328
1329 * backtrace.c (backtrace_full): When testing whether we can
1330 allocate memory, call mmap directly, and munmap the memory.
1331
c5c4b2ae
JJ
13322018-04-04 Jakub Jelinek <jakub@redhat.com>
1333
1334 PR other/85161
1335 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
1336 big endian, only use 32-bit loads if endianity macros are predefined
1337 and indicate big or little endian.
1338
14e335ed
IT
13392018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1340
1341 PR target/84148
1342 * configure: Regenerate.
1343
bcc23586
JJ
13442018-02-15 Jakub Jelinek <jakub@redhat.com>
1345
1346 PR other/82368
1347 * elf.c (SHT_PROGBITS): Undefine and define.
1348
da07141f
JJ
13492018-02-14 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR other/82368
1352 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
1353 (struct elf_ppc64_opd_data): New type.
1354 (elf_initialize_syminfo): Add opd argument, handle symbols
1355 pointing into the PowerPC64 ELFv1 .opd section.
1356 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
1357 to structure with .opd data to elf_initialize_syminfo.
1358
65d0b859
ILT
13592018-01-31 Ian Lance Taylor <iant@golang.org>
1360
1361 * elf.c (elf_add): Close descriptor if we use a debugfile.
1362 * btest.c (check_open_files): New static function.
1363 (main): Call check_open_files.
1364
96f7c2a9
ILT
13652018-01-25 Ian Lance Taylor <iant@golang.org>
1366
1367 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
1368 desired CRC is zero.
1369 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
1370
a794e494
ILT
13712018-01-25 Ian Lance Taylor <iant@golang.org>
1372
1373 * pecoff.c (coff_add): Only release syms_view if it is valid.
1374
45f3ab19
ILT
13752018-01-25 Ian Lance Taylor <iant@golang.org>
1376
1377 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
1378
017707ce
ILT
13792018-01-24 Ian Lance Taylor <iant@golang.org>
1380
1381 * pecoff.c (coff_add): Use coff_read4, not memcpy.
1382
3fe3c7d7
ILT
13832018-01-24 Ian Lance Taylor <iant@golang.org>
1384
1385 PR other/68239
1386 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
1387 on the free list.
1388
47c699f5
TR
13892018-01-19 Tony Reix <tony.reix@atos.net>
1390
1391 * xcoff.c (xcoff_incl_compare): New function.
1392 (xcoff_incl_search): New function.
1393 (xcoff_process_linenos): Use bsearch to find include file.
1394 (xcoff_initialize_fileline): Sort include file information.
1395
566588f1
ILT
13962018-01-16 Ian Lance Taylor <iant@golang.org>
1397
1398 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
1399 288.
1400 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
1401 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
1402 (elf_zlib_default_table): Update.
1403 (elf_zlib_default_dist_table): New static array.
1404 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
1405 for block type 1.
1406 * ztest.c (struct zlib_test): Add uncompressed_len.
1407 (tests): Initialize uncompressed_len field. Add new test case.
1408 (test_samples): Use uncompressed_len field.
1409
85ec4feb
JJ
14102018-01-03 Jakub Jelinek <jakub@redhat.com>
1411
1412 Update copyright years.
1413
44685d37
IT
14142017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1415
1416 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
1417 * aclocal.m4: Regenerate.
1418 * Makefile.in: Likewise.
1419 * configure: Likewise.
1420
549d24e9
ILT
14212017-10-06 Ian Lance Taylor <iant@golang.org>
1422
1423 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
1424 zlib uncompress function.
1425
a978e26b
ILT
14262017-10-05 Ian Lance Taylor <iant@golang.org>
1427
1428 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
1429 Read a four byte integer.
1430 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
1431 boundary before ever calling elf_zlib_fetch.
1432 * ztest.c (test_large): Simplify print statements a bit.
1433
8398c1df
ILT
14342017-10-02 Ian Lance Taylor <iant@golang.org>
1435
1436 * ztest.c: #include <errno.h>.
1437 (TEST_TIMING): Don't define, don't test.
1438 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
1439 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
1440 (ZLIB_CLOCK_GETTIME_ARG): Define.
1441 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
1442 * Makefile.am: Likewise.
1443 * configure, Makefile.in: Rebuild.
1444
dbc31f20
TS
14452017-10-02 Thomas Schwinge <thomas@codesourcery.com>
1446
dd954c67
TS
1447 PR other/67165
1448 * Makefile.am: Append the content of clock_gettime_link to
1449 ztest_LDADD.
1450 * configure.ac: Test for the case that clock_gettime is in librt.
1451 * Makefile.in: Regenerate.
1452 * configure: Likewise.
1453
dbc31f20
TS
1454 PR other/67165
1455 * configure.ac: Check for clock_gettime.
1456 * config.h.in: Regenerate.
1457 * configure: Likewise.
1458 * ztest.c (average_time, test_large): Conditionalize test timing
1459 on clock_gettime availability.
1460
e90c74f5
TR
14612017-09-29 Tony Reix <tony.reix@atos.net>
1462
1463 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1464 (STYP_DWARF, SSUBTYP_DW*): Define.
1465 (enum dwarf_section): Define.
1466 (struct dwsect_info): Define.
1467 (xcoff_add): Look for DWARF sections, pass them to
1468 backtrace_dwarf_add.
1469
8da872d9
ILT
14702017-09-28 Ian Lance Taylor <iant@golang.org>
1471
1472 PR other/67165
1473 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1474 (unlikely): Define.
1475 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1476 (b_elf_chdr): Define type.
1477 (enum debug_section): Add ZDEBUG_xxx values.
1478 (debug_section_names): Add names for new sections.
1479 (struct debug_section_info): Add compressed field.
1480 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1481 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1482 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1483 (HUFFMAN_SECONDARY_SHIFT): Define.
1484 (ZDEBUG_TABLE_SIZE): Define.
1485 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1486 (final_next_secondary): New static variable if
1487 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1488 (elf_zlib_inflate_table): New static function.
1489 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1490 function to produce fixed Huffman table.
1491 (elf_zlib_default_table): New static variable.
1492 (elf_zlib_inflate): New static function.
1493 (elf_zlib_verify_checksum): Likewise.
1494 (elf_zlib_inflate_and_verify): Likewise.
1495 (elf_uncompress_zdebug): Likewise.
1496 (elf_uncompress_chdr): Likewise.
1497 (backtrace_uncompress_zdebug): New extern function.
1498 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1499 sections, and uncompress them.
1500 * internal.h (backtrace_compress_zdebug): Declare.
1501 * ztest.c: New file.
1502 * configure.ac: Check for -lz and check whether the linker
1503 supports --compress-debug-sections.
1504 * Makefile.am (ztest_SOURCES): New variable.
1505 (ztest_CFLAGS, ztest_LDADD): New variables.
1506 (check_PROGRAMS): Add ztest.
1507 (ctestg_SOURCES): New variable.
1508 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1509 (ctesta_SOURCES): New variable.
1510 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1511 (check_PROGRAMS): Add ctestg and ctesta.
1512 * configure, config.h.in, Makefile.in: Rebuild.
1513
8c2ea6b2
ILT
15142017-09-22 Ian Lance Taylor <iant@golang.org>
1515
1516 PR sanitizer/77631
1517 * configure.ac: Check for lstat and readlink.
1518 * elf.c (lstat, readlink): Provide dummy versions if real versions
1519 are not available.
1520 * configure, config.h.in: Rebuild.
1521
f0de4542
ILT
15222017-09-21 Ian Lance Taylor <iant@google.com>
1523
1524 PR go/82284
1525 * elf.c (backtrace_initialize): Set pd.exe_filename.
1526
9283471b
ILT
15272017-09-20 Ian Lance Taylor <iant@golang.org>
1528 Denis Khalikov <d.khalikov@partner.samsung.com>
1529
1530 PR sanitizer/77631
1531 Support for external debug info.
1532 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1533 (S_ISLNK): Define if not defined.
1534 (xstrnlen): Define if strnlen is not available.
1535 (b_elf_note): Define type.
1536 (NT_GNU_BUILD_ID): Define macro.
1537 (elf_crc32, elf_crc32_file): New static functions.
1538 (elf_is_symlink, elf_readlink): New static functions.
1539 (elf_open_debugfile_by_buildid): New static function.
1540 (elf_try_debugfile): New static function.
1541 (elf_find_debugfile_by_debuglink): New static function.
1542 (elf_open_debugfile_by_debuglink): New static function.
1543 (elf_add): Add filename and debuginfo parameters. Adjust all
1544 callers. Look for external debug info notes, and try to fetch
1545 debug info from external file.
1546 (struct phdr_data): Add exe_filename field.
1547 (phdr_callback): Pass filename to elf_add.
1548 (backtrace_initialize): Add filename parameter.
1549 * internal.h (backtrace_initialize): Add filename parameter.
1550 * fileline.c (fileline_initialize): Pass filename to
1551 backtrace_initialize.
1552 * pecoff.c (fileline_initialize): Add unused filename parameter.
1553 * unknown.c (fileline_initialize): Likewise.
1554 * xcoff.c (fileline_initialize): Likewise.
1555 * configure.ac: Check for objcopy --add-gnu-debuglink.
1556 * Makefile.am (dtest): New test target.
1557 * configure, Makefile.in: Rebuild.
1558
29788f90
SE
15592017-09-12 Steve Ellcey <sellcey@cavium.com>
1560
1561 PR other/81096
1562 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1563 * Makefile.in: Regenerate.
1564
917a804c
SE
15652017-09-12 Steve Ellcey <sellcey@cavium.com>
1566
1567 PR other/81096
1568 * libbacktrace/Makefile.in
1569 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1570
2e6af1b8
DE
15712017-08-02 David Edelsohn <dje.gcc@gmail.com>
1572
8a0e6224 1573 PR bootstrap/81638
2e6af1b8
DE
1574 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1575
afce7deb
TR
15762017-07-28 Tony Reix <tony.reix@atos.net>
1577
1578 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1579
cf311b03
RO
15802017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1581
1582 * fileline.c (fileline_initialize): Print pid_t as long.
1583
7e2a8417
TR
15842017-07-26 Tony Reix <tony.reix@atos.net>
1585
1586 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1587 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1588 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1589 * configure, config.h.in: Regenerate.
1590
b3530b94
TR
15912017-07-21 Tony Reix <tony.reix@atos.net>
1592
1593 * filetype.awk: Add AIX XCOFF type detection.
1594 * configure.ac: Recognize xcoff format.
1595 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1596 * fileline.c: Include <unistd.h>.
1597 (fileline_initialize): Add case for AIX procfs.
1598 * xcoff.c: New file.
1599 * configure, Makefile.in: Rebuild.
1600
e91a2ddc
RB
16012017-06-21 Richard Biener <rguenther@suse.de>
1602
1603 * configure.ac: Add AC_SYS_LARGEFILE.
1604 * config.h.in: Regenerate.
1605 * configure: Likewise.
1606
d1609a23
ILT
16072017-06-11 Ian Lance Taylor <iant@golang.org>
1608
1609 * elf.c (backtrace_initialize): Always set *fileline_fn.
1610 * ttest.c: New file.
1611 * btest.c: Move support functions into testlib.c. Change calls to
1612 check to pass file name.
1613 * testlib.c: New file, copied from (part of) btest.c.
1614 * testlib.h: New file, declarations for testlib.c.
1615 * edtest.c: Use testlib.h and testlib.c.
1616 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1617 * Makefile.am (btest_SOURCES): Add testlib.c.
1618 (edtest_SOURCES): Likewise.
1619 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1620 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1621 * configure, Makefile.in: Rebuild.
1622
281161d1
TM
16232017-05-19 Than McIntosh <thanm@google.com>
1624
1625 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1626 (read_line_header): Don't allocate dirs if dirs_count == 0.
1627 * edtest.c: New file.
1628 * edtest2.c: New file.
1629 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1630 (check_PROGRAMS): Add edtest.
1631 (edtest2_build.c, gen_edtest2_build): New targets.
1632 * Makefile.in: Rebuild.
1633
121eb024
ST
16342017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1635
1636 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1637 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1638
cbe34bb5
JJ
16392017-01-01 Jakub Jelinek <jakub@redhat.com>
1640
1641 Update copyright years.
1642
84c1b9d3
MK
16432016-11-15 Matthias Klose <doko@ubuntu.com>
1644
1645 * configure: Regenerate.
1646
84ebf639
CL
16472016-09-11 Carlos Liam <carlos@aarzee.me>
1648
1649 * all: Remove meaningless trailing whitespace.
1650
28644f75
UB
16512016-05-18 Uros Bizjak <ubizjak@gmail.com>
1652
1653 PR target/71161
1654 * elf.c (phdr_callback) [__i386__]: Add
1655 __attribute__((__force_align_arg_pointer__)).
1656
26ac52db
MO
16572016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1658
1659 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1660 avoid possible crash.
1661 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1662 missing debug info anymore.
1663
09b08e17
JDA
16642016-02-06 John David Anglin <danglin@gcc.gnu.org>
1665
1666 * mmap.c (MAP_FAILED): Define if not defined.
1667
818ab71a
JJ
16682016-01-04 Jakub Jelinek <jakub@redhat.com>
1669
1670 Update copyright years.
1671
5b4bbc7d
AP
16722015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1673
28644f75
UB
1674 * configure.ac: Specify that DJGPP do not have mmap
1675 even when sys/mman.h exists.
5b4bbc7d
AP
1676 * configure: Regenerate
1677
2f401a8f
JDA
16782015-12-09 John David Anglin <danglin@gcc.gnu.org>
1679
28644f75 1680 PR libgfortran/68115
2f401a8f
JDA
1681 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1682 * configure: Regenerate.
1683 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1684 to void.
1685
750cdaf7
ILT
16862015-09-17 Ian Lance Taylor <iant@google.com>
1687
1688 * posix.c (backtrace_open): Cast second argument of open() to int.
1689
fc002444
ILT
16902015-09-11 Ian Lance Taylor <iant@google.com>
1691
1692 * Makefile.am (backtrace.lo): Depend on internal.h.
1693 (sort.lo, stest.lo): Add explicit dependencies.
1694 * Makefile.in: Rebuild.
1695
50809ff9
HPN
16962015-09-09 Hans-Peter Nilsson <hp@axis.com>
1697
1698 * backtrace.c: #include <sys/types.h>.
1699
c478516b
ILT
17002015-09-08 Ian Lance Taylor <iant@google.com>
1701
1702 PR other/67457
1703 * backtrace.c: #include "internal.h".
1704 (struct backtrace_data): Add can_alloc field.
1705 (unwind): If can_alloc is false, don't try to get file/line
1706 information.
1707 (backtrace_full): Set can_alloc field in bdata.
1708 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1709 NULL.
1710 * mmap.c (backtrace_alloc): Likewise.
1711 * internal.h: Update comments for backtrace_alloc and
1712 backtrace_free.
1713
981d281f
ILT
17142015-09-08 Ian Lance Taylor <iant@google.com>
1715
1716 PR other/67457
1717 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1718
8f5027bf
UW
17192015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1720
1721 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1722 * configure: Regenerate.
1723
7e5c7547
UW
17242015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1725
1726 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1727 Remove setting PIC_FLAG when building as target library.
1728 * configure: Regenerate.
1729
7ce9cf39
HPN
17302015-08-26 Hans-Peter Nilsson <hp@axis.com>
1731
1732 * configure.ac: Only compile with -fPIC if the target
1733 supports it.
1734 * configure: Regenerate.
1735
1b533361
UW
17362015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1737
1738 * configure.ac: Set have_mmap to no on spu-*-* targets.
1739 * configure: Regenerate.
1740
d96fa208
ILT
17412015-08-13 Ian Lance Taylor <iant@google.com>
1742
1743 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1744 Change all callers.
1745
d99a7b4d
MS
17462015-06-11 Martin Sebor <msebor@redhat.com>
1747
1748 PR sanitizer/65479
1749 * dwarf.c (struct line): Add new field idx.
1750 (line_compare): Use it.
1751 (add_line): Set it.
1752 (read_line_info): Reset it.
1753
e24afc10
TG
17542015-05-29 Tristan Gingold <gingold@adacore.com>
1755
1756 * pecoff.c: New file.
1757 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1758 * Makefile.in: Regenerate.
1759 * filetype.awk: Detect pecoff.
1760 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1761 Add pecoff.
1762 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1763 true.
1764 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1765 * configure: Regenerate.
1766 * pecoff.c: New file.
1767
df96c0f7
MH
17682015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1769
1770 * Makefile.in: Regenerated with automake-1.11.6.
1771 * aclocal.m4: Likewise.
1772 * configure: Likewise.
1773
2b8fa469
MK
17742015-01-24 Matthias Klose <doko@ubuntu.com>
1775
1776 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1777 * configure: Regenerate.
1778
5624e564
JJ
17792015-01-05 Jakub Jelinek <jakub@redhat.com>
1780
1781 Update copyright years.
1782
a699d672
L
17832014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1784
1785 PR bootstrap/63784
1786 * configure: Regenerated.
1787
35485da9
DM
17882014-11-11 David Malcolm <dmalcolm@redhat.com>
1789
1790 * ChangeLog.jit: New.
1791
ebf6d33b
FXC
17922014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1793
1794 PR target/63610
1795 * configure: Regenerate.
1796
c96601d2
ILT
17972014-10-23 Ian Lance Taylor <iant@google.com>
1798
1799 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1800 Fix to return void *.
1801
d573fd89
ILT
18022014-05-08 Ian Lance Taylor <iant@google.com>
1803
1804 * mmap.c (backtrace_free): If freeing a large aligned block of
1805 memory, call munmap rather than holding onto it.
1806 (backtrace_vector_grow): When growing a vector, double the number
1807 of pages requested. When releasing the old version of a grown
1808 vector, pass the correct size to backtrace_free.
1809
dbe20842
ILT
18102014-03-07 Ian Lance Taylor <iant@google.com>
1811
1812 * sort.c (backtrace_qsort): Use middle element as pivot.
1813
c5604b48
ILT
18142014-03-06 Ian Lance Taylor <iant@google.com>
1815
1816 * sort.c: New file.
1817 * stest.c: New file.
1818 * internal.h (backtrace_qsort): Declare.
1819 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1820 (read_line_info, read_function_entry): Likewise.
1821 (read_function_info, build_dwarf_data): Likewise.
1822 * elf.c (elf_initialize_syminfo): Likewise.
1823 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1824 (stest_SOURCES, stest_LDADD): Define.
1825 (check_PROGRAMS): Add stest.
1826
63fefb4b
MDM
18272014-02-07 Misty De Meo <misty@brew.sh>
1828
1829 PR target/58710
1830 * configure.ac: Use AC_LINK_IFELSE in check for
1831 _Unwind_GetIPInfo.
1832 * configure: Regenerate.
1833
afeba5cb
RS
18342014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1835
1836 Update copyright years
1837
0284b52e
JJ
18382013-12-06 Jakub Jelinek <jakub@redhat.com>
1839
1840 * elf.c (ET_DYN): Undefine and define again.
1841 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1842 return early -1 without closing the descriptor.
1843 (struct phdr_data): Add exe_descriptor.
1844 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1845 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1846 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1847 call to elf_add.
1848 (backtrace_initialize): Adjust call to elf_add. If it returns
1849 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1850
bfd74f22
ILT
18512013-12-05 Ian Lance Taylor <iant@google.com>
1852
1853 * alloc.c (backtrace_vector_finish): Add error_callback and data
1854 parameters. Call backtrace_vector_release. Return address base.
1855 * mmap.c (backtrace_vector_finish): Add error_callback and data
1856 parameters. Return address base.
1857 * dwarf.c (read_function_info): Get new address base from
1858 backtrace_vector_finish.
1859 * internal.h (backtrace_vector_finish): Update declaration.
1860
b8ddd61b
ILT
18612013-11-27 Ian Lance Taylor <iant@google.com>
1862
1863 * dwarf.c (find_address_ranges): New static function, broken out
1864 of build_address_map.
1865 (build_address_map): Call it.
1866 * btest.c (check): Check for missing filename or function, rather
1867 than crashing.
1868 (f3): Check that enough frames were returned.
1869
64856e1e
JJ
18702013-11-19 Jakub Jelinek <jakub@redhat.com>
1871
1f96a712
JJ
1872 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1873 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1874 last argument.
1875 * btest.c (struct symdata): Add size field.
1876 (callback_three): Add symsize argument. Copy it to the data->size
1877 field.
1878 (f23): Set symdata.size to 0.
1879 (test5): Likewise. If sizeof (int) > 1, lookup address of
1880 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1881 values.
1882
64856e1e
JJ
1883 * atomic.c: Include sys/types.h.
1884
49579c7e
ILT
18852013-11-18 Ian Lance Taylor <iant@google.com>
1886
1887 * configure.ac: Check for support of __atomic extensions.
1888 * internal.h: Declare or #define atomic functions for use in
1889 backtrace code.
1890 * atomic.c: New file.
1891 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1892 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1893 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1894 (backtrace_initialize): Likewise.
1895 * fileline.c (fileline_initialize): Likewise.
1896 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1897 * configure, config.h.in, Makefile.in: Rebuild.
1898
582f5a2d
JJ
18992013-11-18 Jakub Jelinek <jakub@redhat.com>
1900
f1857815
JJ
1901 * elf.c (SHN_UNDEF): Define.
1902 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1903 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1904 (elf_add): Adjust caller.
1905
582f5a2d
JJ
1906 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1907
25e6253e
ILT
19082013-11-16 Ian Lance Taylor <iant@google.com>
1909
1910 * backtrace.h (backtrace_create_state): Correct comment about
1911 threading.
1912
cfa658e4
ILT
19132013-11-15 Ian Lance Taylor <iant@google.com>
1914
1915 * backtrace.h (backtrace_syminfo): Update comment and parameter
1916 name to take any address, not just a PC value.
1917 * elf.c (STT_OBJECT): Define.
1918 (elf_nosyms): Rename parameter pc to addr.
1919 (elf_symbol_search): Rename local variable pc to addr.
1920 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1921 (elf_syminfo): Rename parameter pc to addr.
1922 * btest.c (global): New global variable.
1923 (test5): New test.
1924 (main): Call test5.
1925
6c084a5b
ILT
19262013-10-17 Ian Lance Taylor <iant@google.com>
1927
1928 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1929 is missing.
1930
459260ec
DM
19312013-10-15 David Malcolm <dmalcolm@redhat.com>
1932
1933 * configure.ac: Add --enable-host-shared, setting up
1934 pre-existing PIC_FLAG variable within Makefile.am et al.
1935 * configure: Regenerate.
1936
3cbe17f7
AM
19372013-09-20 Alan Modra <amodra@gmail.com>
1938
1939 * configure: Regenerate.
1940
78625ce6
AM
19412013-07-23 Alexander Monakov <amonakov@ispras.ru>
1942
1943 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1944
0153887c
AM
19452013-07-23 Alexander Monakov <amonakov@ispras.ru>
1946
1947 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1948 dl_iterate_phdr callbacks.
1949
85d8c21e
ILT
19502013-03-25 Ian Lance Taylor <iant@google.com>
1951
1952 * alloc.c: #include <sys/types.h>.
1953 * mmap.c: Likewise.
1954
38811401
ILT
19552013-01-31 Ian Lance Taylor <iant@google.com>
1956
1957 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1958 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1959
1e678aed
JJ
19602013-01-25 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR other/56076
1963 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1964 attribute was not seen.
1965
6b514c53
ILT
19662013-01-16 Ian Lance Taylor <iant@google.com>
1967
1968 * dwarf.c (struct unit): Add filename and abs_filename fields.
1969 (build_address_map): Set new fields when reading unit.
1970 (dwarf_lookup_pc): If we don't find an entry in the line table,
1971 just return the main file name.
1972
f8a7e1a4
RS
19732013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1974
1975 Update copyright years.
1976
c3de1960
ILT
19772013-01-01 Ian Lance Taylor <iant@google.com>
1978
1979 PR bootstrap/54834
1980 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1981 $(MULTIBUILDTOP)/../../gcc/include.
1982 * Makefile.in: Rebuild.
1983
2a5195d9
ILT
19842013-01-01 Ian Lance Taylor <iant@google.com>
1985
1986 PR other/55536
1987 * mmap.c (backtrace_alloc): Don't call sync functions if not
1988 threaded.
1989 (backtrace_free): Likewise.
1990
85619b6f
JDA
19912012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1992
1993 * mmapio.c: Define MAP_FAILED if not defined.
1994
36a58fb3
JJ
19952012-12-11 Jakub Jelinek <jakub@redhat.com>
1996
1997 PR bootstrap/54926
1998 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1999 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
2000 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
2001 accepts it.
2002 * Makefile.in: Regenerated.
2003 * configure: Regenerated.
2004
a58dfde0
JJ
20052012-12-07 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR bootstrap/54926
2008 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
2009 * Makefile.in: Regenerated.
2010
b20ade36
ILT
20112012-11-20 Ian Lance Taylor <iant@google.com>
2012
2013 * dwarf.c (read_attribute): Always clear val.
2014
73c3ed27
ILT
20152012-11-13 Ian Lance Taylor <iant@google.com>
2016
2017 PR other/55312
2018 * configure.ac: Only add -Werror if building a target library.
2a5195d9 2019 * configure: Rebuild.
73c3ed27 2020
33521509
ILT
20212012-11-12 Ian Lance Taylor <iant@google.com>
2022 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2023 Gerald Pfeifer <gerald@pfeifer.com>
2024
2025 * configure.ac: Check for getexecname.
2026 * fileline.c: #include <errno.h>. Define getexecname if not
2027 available.
2028 (fileline_initialize): Try to find the executable in a few
2029 different ways.
2030 * print.c (error_callback): Only print the filename if it came
2031 from the backtrace state.
2032 * configure, config.h.in: Rebuild.
2033
8fe91dea
ILT
20342012-10-29 Ian Lance Taylor <iant@google.com>
2035
2036 * mmap.c (backtrace_vector_release): Correct last patch: add
2037 aligned, not size.
2038
8277de34
ILT
20392012-10-29 Ian Lance Taylor <iant@google.com>
2040
2041 * mmap.c (backtrace_vector_release): Make sure freed block is
2042 aligned on 8-byte boundary.
2043
73f41491
ILT
20442012-10-26 Ian Lance Taylor <iant@google.com>
2045
2046 PR other/55087
2047 * posix.c (backtrace_open): Add does_not_exist parameter.
2048 * elf.c (phdr_callback): Do not warn if shared library could not
2049 be opened.
2050 * fileline.c (fileline_initialize): Update calls to
2051 backtrace_open.
2052 * internal.h (backtrace_open): Update declaration.
2053
385710cf
JH
20542012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
2055
2056 PR target/55061
2057 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
2058 * configure: Regenerate.
2059
32061319
ILT
20602012-10-24 Ian Lance Taylor <iant@google.com>
2061
2062 PR target/55061
2063 * configure.ac: Check whether -funwind-tables option works.
2064 * configure: Rebuild.
2065
5551b12c
ILT
20662012-10-11 Ian Lance Taylor <iant@google.com>
2067
2068 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
2069 * configure: Rebuild.
2070
40d15b5b
ILT
20712012-10-10 Ian Lance Taylor <iant@google.com>
2072
2073 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
2074 lower case.
2075
74f80620
HPN
20762012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
2077
2078 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
2079
ce8aa074
ILT
20802012-10-09 Ian Lance Taylor <iant@google.com>
2081
2082 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
2083 (backtrace_dwarf_add): Likewise.
2084
e561a992
ILT
20852012-10-09 Ian Lance Taylor <iant@google.com>
2086
2087 Add support for tracing through shared libraries.
2088 * configure.ac: Check for link.h and dl_iterate_phdr.
2089 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
2090 ELF macros before #defining them.
2091 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
2092 dl_iterate_phdr.
2093 (struct elf_syminfo_data): Add next field.
2094 (elf_initialize_syminfo): Initialize next field.
2095 (elf_add_syminfo_data): New static function.
2096 (elf_add): New static function, broken out of
2097 backtrace_initialize. Call backtrace_dwarf_add instead of
2098 backtrace_dwarf_initialize.
2099 (struct phdr_data): Define.
2100 (phdr_callback): New static function.
2101 (backtrace_initialize): Call elf_add.
2102 * dwarf.c (struct dwarf_data): Add next and base_address fields.
2103 (add_unit_addr): Add base_address parameter. Change all callers.
2104 (add_unit_ranges, build_address_map): Likewise.
2105 (add_line): Add ddata parameter. Change all callers.
2106 (read_line_program, add_function_range): Likewise.
2107 (dwarf_lookup_pc): New static function, broken out of
2108 dwarf_fileline.
2109 (dwarf_fileline): Call dwarf_lookup_pc.
2110 (build_dwarf_data): New static function.
2111 (backtrace_dwarf_add): New function.
2112 (backtrace_dwarf_initialize): Remove.
2113 * internal.h (backtrace_dwarf_initialize): Don't declare.
2114 (backtrace_dwarf_add): Declare.
2115 * configure, config.h.in: Rebuild.
2116
068ef6d1
GP
21172012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
2118
2119 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 2120
244e2d9c
ILT
21212012-10-04 Ian Lance Taylor <iant@google.com>
2122
2123 * dwarf.c: If the system header files do not declare strnlen,
2124 provide our own version.
2125
be4ba8ae
ILT
21262012-10-03 Ian Lance Taylor <iant@google.com>
2127
2128 * dwarf.c (read_uleb128): Fix overflow test.
2129 (read_sleb128): Likewise.
2130 (build_address_map): Don't change unit_buf.start.
2131
56195009
UB
21322012-10-02 Uros Bizjak <ubizjak@gmail.com>
2133
faf86a02
UB
2134 PR other/54761
2135 * configure.ac (EXTRA_FLAGS): New.
56195009 2136 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 2137 * configure, Makefile.in: Regenerate.
56195009 2138
8a447b3d
ILT
21392012-09-29 Ian Lance Taylor <iant@google.com>
2140
2141 PR other/54749
2142 * fileline.c (fileline_initialize): Pass errnum as -1 when
2143 reporting that we could not read executable information after a
2144 previous failure.
2145
af710874
ILT
21462012-09-27 Ian Lance Taylor <iant@google.com>
2147
2148 PR bootstrap/54732
2149 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
2150 * Makefile.am: Add dependencies for all objects.
2151 * configure, aclocal.m4, Makefile.in: Rebuild.
2152
588f4f8f
ILT
21532012-09-27 Ian Lance Taylor <iant@google.com>
2154
2155 PR other/54726
2156 * elf.c (backtrace_initialize): Set *fileln_fn, not
2157 state->fileln_fn.
2158
64b89453
ILT
21592012-09-19 Ian Lance Taylor <iant@google.com>
2160
2161 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
2162 as a target library.
2163 * configure: Rebuild.
2164
76850556
RO
21652012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2166 Ian Lance Taylor <iant@google.com>
2167
92a285c1
ML
2168 * configure.ac (GCC_HEADER_STDINT): Invoke.
2169 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
2170 * btest.c: Don't include <stdint.h>.
2171 * dwarf.c: Likewise.
2172 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
76850556 2173
9425c00b
ILT
21742012-09-18 Ian Lance Taylor <iant@google.com>
2175
2176 PR bootstrap/54623
2177 * Makefile.am (AM_CPPFLAGS): Define.
2178 (AM_CFLAGS): Remove -I options.
2179 * Makefile.in: Rebuild.
2180
3319ef17
ILT
21812012-09-18 Ian Lance Taylor <iant@google.com>
2182
2183 * posix.c (O_BINARY): Define if not defined.
2184 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
2185 HAVE_FCNTL is defined.
2186 * configure.ac: Test for the fcntl function.
2187 * configure, config.h.in: Rebuild.
2188
bd3e497d
ILT
21892012-09-18 Ian Lance Taylor <iant@google.com>
2190
2191 * btest.c (test1, test2, test3, test4): Add the unused attribute.
2192
30e15876
ILT
21932012-09-18 Ian Lance Taylor <iant@google.com>
2194
2195 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
2196
d4c059d5
ILT
21972012-09-18 Ian Lance Taylor <iant@google.com>
2198
2199 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
2200 * mmapio.c: Don't define _GNU_SOURCE.
2201 * configure, config.h.in: Rebuild.
2202
772a71a9
ILT
22032012-09-18 Ian Lance Taylor <iant@google.com>
2204
2205 * configure.ac: Check whether strnlen is declared.
2206 * dwarf.c: Declare strnlen if not declared.
2207 * configure, config.h.in: Rebuild.
2208
c0558468
RO
22092012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2210
2211 * fileline.c: Include <stdlib.h>.
2212 * mmap.c: Likewise.
2213
c5812e0b
ILT
22142012-09-17 Ian Lance Taylor <iant@google.com>
2215
2216 PR bootstrap/54611
2217 * nounwind.c (backtrace_full): Rename from backtrace. Add state
2218 parameter.
2219
e8f4008a
GP
22202012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
2221
2222 PR bootstrap/54611
2223 * nounwind.c (backtrace_simple): Add state parameter.
2224
f588eb27
ILT
22252012-09-17 Ian Lance Taylor <iant@google.com>
2226
2227 PR bootstrap/54609
2228 * unknown.c (unknown_fileline): Add state parameter, remove
2229 fileline_data parameter, name error_callback parameter.
2230 (backtrace_initialize): Add state parameter.
2231
eff02e4f
ILT
22322012-09-17 Ian Lance Taylor <iant@google.com>
2233
2234 * Initial implementation.
818ab71a 2235\f
6a720d41 2236Copyright (C) 2012-2024 Free Software Foundation, Inc.
818ab71a
JJ
2237
2238Copying and distribution of this file, with or without modification,
2239are permitted in any medium without royalty provided the copyright
2240notice and this notice are preserved.
This page took 1.337658 seconds and 6 git commands to generate.