]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libbacktrace / ChangeLog
CommitLineData
c2bd5d8a
GA
12021-10-22 Martin Liska <mliska@suse.cz>
2
3 PR testsuite/102742
4 * btest.c (MIN_DESCRIPTOR): New.
5 (MAX_DESCRIPTOR): Likewise.
6 (check_available_files): Likewise.
7 (check_open_files): Check only file descriptors that
8 were not available at the entry.
9 (main): Call check_available_files.
10
261512fa
GA
112021-08-13 Sergei Trofimovich <siarheit@google.com>
12
13 * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
14 output with LANG=C.
15
c8abc205
GA
162021-06-28 Clément Chigot <clement.chigot@atos.net>
17
18 * xcoff.c (SSUBTYP_DWRNGES): New define.
19 (xcoff_add): Use correct XCOFF DWARF section subtype
20 for DEBUG_RANGES. Remove lineoff workaround.
21 Adjust base_address.
22 (xcoff_initialize_syminfo): Adapt to new base_address.
23 (xcoff_lookup_pc): Likewise.
24 (xcoff_initialize_fileline): Likewise.
25
e690396d
GA
262021-05-03 H.J. Lu <hjl.tools@gmail.com>
27
28 PR bootstrap/99703
29 * configure: Regenerated.
30
f3641ac7
GA
312021-03-03 Ian Lance Taylor <iant@golang.org>
32
33 * dwarf.c (read_line_program): Don't special case file 0.
34 (read_function_entry): Likewise.
35
d97a92dc
GA
362021-03-02 Ian Lance Taylor <iant@golang.org>
37
38 PR libbacktrace/98818
39 * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
40 callers.
41 * backtrace.h: Update backtrace_error_callback comment.
42
fab095da
GA
432021-02-12 Ian Lance Taylor <iant@golang.org>
44
45 * configure.ac: Check for objcopy --add-gnu-debuglink by using
46 objcopy --help.
47 * configure: Regenerate
48
ef1f8ee6
GA
492021-01-18 Ian Lance Taylor <iant@golang.org>
50
51 * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
52 * Makefile.in: Regenerate.
53 * configure: Regenerate.
54
552021-01-18 Ian Lance Taylor <iant@golang.org>
56
57 PR debug/98716
58 * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
59 filenames.
60 (read_line_program): Remove parameter u, change caller. Don't
61 subtract one from dirs and filenames index.
62 (read_function_entry): Don't subtract one from filenames index.
63
651b8a50
GA
642021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
65
66 * configure: Re-generate.
67
6e1edf48
GA
682020-12-05 Iain Sandoe <iain@sandoe.co.uk>
69
70 PR target/97865
71 * configure: Regenerate.
72
11860cf4
GA
732020-12-02 Ian Lance Taylor <iant@golang.org>
74
75 * dwarf.c (resolve_string): Use > rather than >= to check whether
76 string index extends past buffer.
77 (resolve_addr_index): Similarly for address index.
78
a9625c50
GA
792020-11-29 John David Anglin <danglin@gcc.gnu.org>
80
81 * configure: Regenerate.
82
e2e04288
GA
832020-10-20 Ian Lance Taylor <iant@golang.org>
84
85 * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
86 * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
87
e84761c6
GA
882020-09-28 Ian Lance Taylor <iant@golang.org>
89
90 PR libbacktrace/97082
91 * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
92 * Makefile.in: Regenerate.
93
942020-09-28 Ian Lance Taylor <iant@golang.org>
95
96 PR libbacktrace/97227
97 * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
98 * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
99 * configure: Regenerate.
100 * Makefile.in: Regenerate.
101
82b77dee
GA
1022020-09-23 Ian Lance Taylor <iant@golang.org>
103
104 * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
105 p->low.
106 (dwarf_lookup_pc): Likewise.
107
ecde1b0a
GA
1082020-09-17 Ian Lance Taylor <iant@golang.org>
109
110 PR libbacktrace/97080
111 * fileline.c (backtrace_syminfo_to_full_callback): New function.
112 (backtrace_syminfo_to_full_error_callback): New function.
113 * elf.c (elf_nodebug): Call syminfo_fn if possible.
114 * internal.h (struct backtrace_call_full): Define.
115 (backtrace_syminfo_to_full_callback): Declare.
116 (backtrace_syminfo_to_full_error_callback): Declare.
117 * mtest.c (f3): Only check all[i] if data.index permits.
118
1192020-09-16 Iain Sandoe <iain@sandoe.co.uk>
120
121 * macho.c (MACH_O_CPU_TYPE_PPC): New.
122 (MACH_O_CPU_TYPE_PPC64): New.
123 Add compile-tests for powerpc to the Mach-O variants.
124
50a71cd0
GA
1252020-09-14 Ian Lance Taylor <iant@golang.org>
126
127 PR libbacktrace/93608
128 Add support for MiniDebugInfo.
129 * elf.c (struct elf_view): Define. Replace most uses of
130 backtrace_view with elf_view.
131 (elf_get_view): New static functions. Replace most calls of
132 backtrace_get_view with elf_get_view.
133 (elf_release_view): New static functions. Replace most calls of
134 backtrace_release_view with elf_release_view.
135 (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
136 callers.
137 (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
138 (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
139 (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
140 (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
141 (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
142 (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
143 (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
144 (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
145 (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
146 (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
147 (LZMA_PROB_DIST_ALIGN_LEN): Define.
148 (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
149 (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
150 (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
151 (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
152 (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
153 (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
154 (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
155 (LZMA_PROB_REP_LEN_LOW_LEN): Define.
156 (LZMA_PROB_REP_LEN_MID_LEN): Define.
157 (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
158 (LZMA_PROB_LITERAL_LEN): Define.
159 (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
160 (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
161 (LZMA_PROB_IS_REP2_OFFSET): Define.
162 (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
163 (LZMA_PROB_DIST_SLOT_OFFSET): Define.
164 (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
165 (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
166 (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
167 (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
168 (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
169 (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
170 (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
171 (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
172 (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
173 (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
174 (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
175 (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
176 (LZMA_PROB_LITERAL_OFFSET): Define.
177 (LZMA_PROB_TOTAL_COUNT): Define.
178 (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
179 (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
180 (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
181 (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
182 (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
183 (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
184 (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
185 (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
186 (elf_lzma_varint): New static function.
187 (elf_lzma_range_normalize): New static function.
188 (elf_lzma_bit, elf_lzma_integer): New static functions.
189 (elf_lzma_reverse_integer): New static function.
190 (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
191 (elf_uncompress_lzma): New static function.
192 (backtrace_uncompress_lzma): New function.
193 (elf_add): Add memory and memory_size parameters. Change all
194 callers. Look for .gnu_debugdata section, and, if found,
195 decompress it and use it for symbols and debug info. Permit the
196 descriptor parameter to be -1.
197 * internal.h (backtrace_uncompress_lzma): Declare.
198 * mtest.c: New file.
199 * xztest.c: New file.
200 * configure.ac: Check for nm, xz, and comm programs. Check for
201 liblzma library.
202 (HAVE_MINIDEBUG): Define.
203 * Makefile.am (mtest_SOURCES): Define.
204 (mtest_CFLAGS, mtest_LDADD): Define.
205 (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
206 (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
207 (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
208 (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
209 (xztest_alloc_LDADD): Define.
210 (BUILDTESTS): Add mtest, xztest, xztest_alloc.
211 (CLEANFILES): Add files created by minidebug pattern.
212 (btest.lo): Correct INCDIR reference.
213 (mtest.lo, xztest.lo, ztest.lo): New targets.
214 * configure: Regenerate.
215 * config.h.in: Regenerate.
216 * Makefile.in: Regenerate.
217
80f86e78
GA
2182020-09-09 Ian Lance Taylor <iant@golang.org>
219
220 * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
221 (coff_add): Determine and pass is_64.
222
2232020-09-09 Ian Lance Taylor <iant@golang.org>
224
225 PR libbacktrace/96973
226 * fileline.c (macho_get_executable_path): New static function.
227 (fileline_initialize): Call macho_get_executable_path.
228
2292020-09-09 Ian Lance Taylor <iant@golang.org>
230
231 * dwarf.c (function_addrs_search): Compare against the next entry
232 low address, not the high address.
233 (unit_addrs_search): Likewise.
234 (build_address_map): Add a trailing unit_addrs.
235 (read_function_entry): Add a trailing function_addrs.
236 (read_function_info): Likewise.
237 (report_inlined_functions): Search backward for function_addrs
238 match.
239 (dwarf_lookup_pc): Search backward for unit_addrs and
240 function_addrs matches.
241
31a05046
GA
2422020-09-08 Ian Lance Taylor <iant@golang.org>
243
244 * simple.c (simple_unwind): Correct comment spelling.
245
2462020-09-08 Ian Lance Taylor <iant@golang.org>
247
248 * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
249 correct length when freeing diralc.
250
2512020-09-08 Ian Lance Taylor <iant@golang.org>
252
253 PR libbacktrace/96973
254 * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
255
2562020-09-08 Ian Lance Taylor <iant@golang.org>
257
258 PR libbacktrace/96971
259 * filetype.awk: Only match magic number at start of line.
260
b2b24d30
GA
2612020-08-24 Ian Lance Taylor <iant@golang.org>
262
263 * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
264 (MACH_O_MH_CIGAM_FAT_64): Define.
265 (struct macho_fat_arch_64): Define.
266 (macho_add_fat): Add and use is_64 parameter.
267 (macho_add): Recognize 64-bit fat files.
268
d48cca8f
GA
2692020-07-30 H.J. Lu <hjl.tools@gmail.com>
270
271 PR bootstrap/96202
272 * configure: Regenerated.
273
50873cc5
GA
2742020-07-08 Ian Lance Taylor <iant@golang.org>
275
276 * configure.ac: Test linker support for DWARF5
277 * configure: Regenerate
278
885ef72f
GA
2792020-05-29 H.J. Lu <hjl.tools@gmail.com>
280
281 PR bootstrap/95413
282 * configure: Regenerated.
283
4c1a5d8b
L
2842020-05-15 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR bootstrap/95147
287 * configure: Regenerated.
288
8d286dd1
L
2892020-05-14 H.J. Lu <hongjiu.lu@intel.com>
290
291 * configure: Regenerated.
292
d2ec2786
ILT
2932020-05-13 Ian Lance Taylor <iant@golang.org>
294
295 * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
296
702adbb2
ILT
2972020-05-13 Ian Lance Taylor <iant@golang.org>
298
299 PR go/95061
300 * posix.c (backtrace_open): Treat EACCESS like ENOENT.
301
3022020-05-12 H.J. Lu <hongjiu.lu@intel.com>
d2148648
L
303
304 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
305 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
306 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
307 enabled.
308 * Makefile.in: Regenerated.
309 * configure: Likewise.
310
47f4703c
ILT
3112020-05-11 Ian Lance Taylor <iant@golang.org>
312
313 PR libbacktrace/95012
314 * configure.ac: Check for getpagesize declaration.
315 * mmap.c: Declare getpagesize if necessary.
316 * mmapio.c: Likewise.
317 * configure: Regenerate.
318 * config.h.in: Regenerate.
319 * Makefile.in: Regenerate.
320
ef639420
ILT
3212020-05-09 Roland McGrath <mcgrathr@google.com>
322
323 * elf.c (elf_add): Bail early if there are no section headers at all.
324
8600440e
ILT
3252020-05-09 Ian Lance Taylor <iant@golang.org>
326
327 * elf.c (elf_add): Don't free strtab if an error occurs after
328 recording symbol information.
329
dea40c94
ILT
3302020-05-09 Ian Lance Taylor <iant@golang.org>
331
332 PR libbacktrace/88745
333 * macho.c: New file.
334 * filetype.awk: Recognize Mach-O files.
335 * Makefile.am (FORMAT_FILES): Add macho.c.
336 (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
337 (%.dSYM): New pattern target.
338 (test_macho_SOURCES, test_macho_CFLAGS): New targets.
339 (test_macho_LDADD): New target.
340 (BUILDTESTS): Add test_macho.
341 (macho.lo): Add dependencies.
342 * configure.ac: Recognize macho file type. Check for
343 mach-o/dyld.h. Don't try to run objcopy if we don't find it.
344 Look for dsymutil and define a HAVE_DSYMUTIL conditional.
345 * Makefile.in: Regenerate.
346 * configure: Regenerate.
347 * config.h.in: Regenerate.
348
4b26b138
ILT
3492020-05-09 Ian Lance Taylor <iant@golang.org>
350
351 * read.c (backtrace_get_view): Support short read.
352
31ae7b86
ILT
3532020-05-09 Ian Lance Taylor <iant@golang.org>
354
355 * elf.c (elf_add): If debug sections are very large or far apart,
356 read them individually rather than as a single view.
357
26135684
ILT
3582020-05-08 Ian Lance Taylor <iant@golang.org>
359
360 * fileline.c (sysctl_exec_name): New static function.
361 (sysctl_exec_name1): New macro or static function.
362 (sysctl_exec_name2): Likewise.
363 (fileline_initialize): Try sysctl_exec_name[12].
364 * configure.ac: Check for sysctl args to fetch executable name.
365 * configure: Regenerate.
366 * config.h.in: Regenerate.
367
9a3d019a
ILT
3682020-02-15 Ian Lance Taylor <iant@golang.org>
369
370 * ztest.c (test_large): Update file to current libgo test file.
371
628ee3c2
ILT
3722020-02-03 Ian Lance Taylor <iant@golang.org>
373
374 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
375 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
376 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
377 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
378 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
379 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
380 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
381 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
382 (stest_alloc_CFLAGS): Likewise.
383 * Makefile.in: Regenerate.
384 * ztest.c (error_callback_compress): Mark vdata unused.
385 (test_large): Add casts to avoid warnings.
386
8d9254fc
JJ
3872020-01-01 Jakub Jelinek <jakub@redhat.com>
388
389 Update copyright years.
390
c926fd82
ILT
3912019-12-13 Ian Lance Taylor <iant@golang.org>
392
393 Add DWARF 5 support.
394 * dwarf.c (struct attr): Add val field.
395 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
396 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
397 (struct line_header): Add addrsize field.
398 (struct line_header_format): Define.
399 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
400 fields.
401 (read_uint24): New static function.
402 (read_attribute): Add implicit_val parameter. Replace dwarf_str
403 and dwarf_str_size parameters with dwarf_sections parameter. Add
404 support for new DWARF 5 forms. Change all callers.
405 (resolve_string): New static function.
406 (resolve_addr_index): Likewise.
407 (read_abbrevs): Support DW_FORM_implicit_const.
408 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
409 and ranges_is_index fields.
410 (update_pcrange): Support DWARF 5 encodings.
411 (add_high_low_range): New static function, split out of
412 add_ranges.
413 (add_ranges_from_ranges): Likewise.
414 (add_ranges_from_rnglists): New static function.
415 (add_ranges): Just call new helper functions.
416 (find_address_ranges): Use resolve_string for strings, after
417 reading all attributes. Handle new DWARF 5 attributes.
418 (build_address_map): Support DWARF 5 compilation units.
419 (read_v2_paths): New static function, split out of
420 read_line_header.
421 (read_lnct): New static function.
422 (read_line_header_format_entries): Likewise.
423 (read_line_header): Add ddata parameter. Support DWARF 5 line
424 headers. Call new helper functions. Change all callers.
425 (read_line_program): Use addrsize from line program header. Don't
426 special case directory index 0 for DWARF 5.
427 (read_referenced_name): Use resolve_string.
428 (read_function_entry): Handle DWARF 5 encodings. Use
429 resolve_string.
430 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
431 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
432 * elf.c (dwarf_section_names): Add new section names.
433 * pecoff.c (dwarf_section_names): Likewise.
434 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
435 fields.
436 * configure.ac: Define HAVE_DWARF5 automake conditional.
437 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
438 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
439 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
440 (dwarf5_alloc_LDADD): Likewise.
441 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
442 (CLEANFILES, clean-local): Define.
443
4b3fc188
ILT
4442019-12-08 Ian Lance Taylor <iant@golang.org>
445
446 * dwarf.c (struct pcrange): Define.
447 (update_pcrange, add_ranges): New static functions.
448 (add_unit_addr): Change signature to work with add_ranges. Don't
449 add base_address here.
450 (add_unit_ranges): Remove.
451 (find_address_ranges): Replace str/ranges parameters with
452 dwarf_sections. Use update_pcrange and add_ranges. Change all
453 callers.
454 (add_function_range): Change signature to work with add_ranges.
455 Don't add base_address here.
456 (add_function_ranges): Remove.
457 (read_function_entry): Use update_pcrange and add_ranges.
458
70bfe5a7
ILT
4592019-12-04 Ian Lance Taylor <iant@golang.org>
460
461 * edtest.c (test1): Add noclone attribute.
462
66ab5839
ILT
4632019-12-04 Ian Lance Taylor <iant@golang.org>
464
465 * internal.h (enum dwarf_section): Define.
466 (struct dwarf_sections): Define.
467 (backtrace_dwarf_add): Update declaration to replace specific
468 section parameters with dwarf_sections parameter.
469 * dwarf.c (struct dwarf_data): Replace specific section fields
470 with dwarf_sections field.
471 (read_attribute): Use dwarf_sections with altlink.
472 (build_address_map): Replace specific section parameters with
473 dwarf_sections parameter. Change all callers.
474 (read_line_info): Use dwarf_sections with ddata.
475 (read_referenced_name): Likewise.
476 (add_function_ranges): Likewise.
477 (read_function_entry): Likewise.
478 (read_function_info): Likewise.
479 (build_dwarf_data): Replace specific section parameters with
480 dwarf_sections parameter. Change all callers.
481 (backtrace_dwarf_add): Likewise.
482 * elf.c (enum debug_section): Remove.
483 (dwarf_section_names): Remove .zdebug names.
484 (elf_add): Track zsections separately. Build dwarf_sections.
485 * pecoff.c (enum debug_section): Remove.
486 (struct debug_section_info): Remove data field.
487 (coff_add): Build dwarf_sections.
488 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
489 references with DEBUG_xxx references.
490 (xcoff_add): Build dwarf_sections.
491
e9085da5
MR
4922019-09-27 Maciej W. Rozycki <macro@wdc.com>
493
494 * configure: Regenerate.
495
5fe5f75f
ILT
4962019-09-26 Ian Lance Taylor <iant@golang.org>
497
498 PR libbacktrace/91908
499 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
500 __sync_bool_compare_and_swap to void.
501 * xcoff.c (backtrace_initialize): Likewise.
502
2f2aeda9
UW
5032019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
504
505 * configure.ac: Remove references to spu.
506 * configure: Regenerate.
507
245254b8
CC
5082019-05-24 Clement Chigot <clement.chigot@atos.net>
509
510 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
511 test_elf_64.
512 * Makefile.in: Regenerate.
513
ccd1242e
RO
5142019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
515
516 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
517 handling.
518 * configure: Regenerate.
519
7856fb45
ILT
5202019-03-11 Ian Lance Taylor <iant@golang.org>
521
522 PR libbacktrace/89669
523 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
524 HAVE_ELF.
525 * Makefile.in: Regenerate.
526
067aef03
TV
5272019-02-26 Tom de Vries <tdevries@suse.de>
528
529 * btest.c (test5): Allow global.* as minimal symbol name for global.
530
d831b1ec
TV
5312019-02-26 Tom de Vries <tdevries@suse.de>
532
533 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
534 * Makefile.in: Regenerate.
535
68641fb7
TV
5362019-02-12 Tom de Vries <tdevries@suse.de>
537
538 PR libbacktrace/81983
539 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
540
c51b2c8c
TV
5412019-02-10 Tom de Vries <tdevries@suse.de>
542
543 * Makefile.am (BUILDTESTS): Add btest_lto.
544 * Makefile.in: Regenerate.
545 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
546 __attribute__((noclone)).
547
4af50e13
TV
5482019-02-08 Tom de Vries <tdevries@suse.de>
549
550 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
551 * print.c (backtrace_print): Same.
552 * simple.c (backtrace_simple): Same.
553
2bd0a246
TV
5542019-02-08 Tom de Vries <tdevries@suse.de>
555
556 PR libbacktrace/78063
557 * dwarf.c (build_address_map): Keep all parsed units.
558 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
559
3a3f5dd1
TV
5602019-01-31 Tom de Vries <tdevries@suse.de>
561
562 PR libbacktrace/89136
563 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
564 'debugaltlink_name_len =+ 1'.
565
fddbc193
TV
5662019-01-29 Tom de Vries <tdevries@suse.de>
567
568 * install-debuginfo-for-buildid.sh.in: New script.
569 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
570 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
571 * Makefile.in: Regenerate.
572 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
573 (READELF): Set with AC_CHECK_PROG.
574 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
575 * configure: Regenerate.
576 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
577 (elf_open_debugfile_by_buildid): ... here.
578
57f0d303
TV
5792019-01-29 Tom de Vries <tdevries@suse.de>
580
581 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
582 allocfail.
583 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
584 (check_PROGRAMS): Add BUILDTESTS.
585 * Makefile.in: Regenerate.
586
62d4a355
TV
5872019-01-28 Tom de Vries <tdevries@suse.de>
588
589 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
590 Use $< to access prerequisite.
591 * Makefile.in: Regenerate.
592
4bfcd139
NS
5932019-01-25 Nathan Sidwell <nathan@acm.org>
594
595 * elf.c (elf_add): Pass "" filename to recursive call with
596 separated debug.
597
c75795fa
TV
5982019-01-25 Tom de Vries <tdevries@suse.de>
599
600 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
601 filename == "".
602 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
603 * Makefile.in: Regenerate.
604
37ab491d
TV
6052019-01-25 Tom de Vries <tdevries@suse.de>
606
607 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
608 (TESTS): Rename dtest to btest_gnudebuglink.
609 * Makefile.in: Regenerate.
610
3f5d2012
TV
6112019-01-23 Tom de Vries <tdevries@suse.de>
612
613 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
614 (units_search, find_unit): Use size_t for offset.
615 (build_address_map): Use size_t for unit_offset.
616
5e2a7241
GP
6172019-01-20 Gerald Pfeifer <gerald@pfeifer.com>
618
619 * allocfail.c (main): Increase portability of printf statement.
620
8b248c17
ILT
6212019-01-18 Ian Lance Taylor <iant@golang.org>
622
623 PR libbacktrace/88890
624 * mmapio.c (backtrace_get_view): Change size parameter to
625 uint64_t. Check that value fits in size_t.
626 * read.c (backtrace_get_view): Likewise.
627 * internal.h (backtrace_get_view): Update declaration.
628 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
629
10f48858
TV
6302019-01-17 Tom de Vries <tdevries@suse.de>
631
632 PR libbacktrace/82857
633 * configure.ac (DWZ): Set with AC_CHECK_PROG.
634 (HAVE_DWZ): Set with AM_CONDITIONAL.
635 * configure: Regenerate.
636 * Makefile.am (TESTS): Add btest_dwz.
637 * Makefile.in: Regenerate.
638
1c2a9a37
TV
6392019-01-17 Tom de Vries <tdevries@suse.de>
640
641 PR libbacktrace/82857
642 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
643 (read_attribute): Handle DW_FORM_GNU_ref_alt using
644 ATTR_VAL_REF_ALT_INFO.
645 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
646
9d576782
TV
6472019-01-17 Tom de Vries <tdevries@suse.de>
648
649 * dwarf.c (struct unit): Add low_offset and high_offset fields.
650 (struct unit_vector): New type.
651 (struct dwarf_data): Add units and units_counts fields.
652 (find_unit): New function.
653 (find_address_ranges): Add and handle unit_tag parameter.
654 (build_address_map): Add and handle units_vec parameter.
655 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
656 units vector.
657
f2f00d3a
TV
6582019-01-17 Tom de Vries <tdevries@suse.de>
659
660 PR libbacktrace/82857
661 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
662 using altlink.
663
944f59ff
TV
6642019-01-17 Tom de Vries <tdevries@suse.de>
665
666 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
667 (read_attribute): Add altlink parameter. Handle missing altlink for
668 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
669 (find_address_ranges, build_address_map, build_dwarf_data): Add and
670 handle altlink parameter.
671 (read_referenced_name, read_function_entry): Add argument to
672 read_attribute call.
673
9ad458d5
TV
6742019-01-17 Tom de Vries <tdevries@suse.de>
675
676 * dwarf.c (struct dwarf_data): Add altlink field.
677 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
678 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
679 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
680 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
681 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
682 * xcoff.c (xcoff_add): Same.
683
e6f00c83
TV
6842019-01-17 Tom de Vries <tdevries@suse.de>
685
686 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
687 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
688 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
689 argument to backtrace_dwarf_add call.
690 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
691 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
692 * xcoff.c (xcoff_add): Same.
693
a34c2a3d
TV
6942019-01-17 Tom de Vries <tdevries@suse.de>
695
696 * elf.c (elf_add): Add and handle with_buildid_data and
697 with_buildid_size parameters. Handle .gnu_debugaltlink section.
698 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
699
07e1534f
TV
7002019-01-16 Tom de Vries <tdevries@suse.de>
701
702 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
703 of ...
704 (read_referenced_name): ... here, and ...
705 (read_function_entry): ... here.
706
df1de064
TV
7072019-01-16 Tom de Vries <tdevries@suse.de>
708
709 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
710 name.
711 (read_function_entry): Same. Don't allow name found via
712 DW_AT_abstract_origin or case DW_AT_specification to override linkage
713 name.
714
67914693
SL
7152019-01-09 Sandra Loosemore <sandra@codesourcery.com>
716
717 PR other/16615
718
719 * backtrace.h: Mechanically replace "can not" with "cannot".
720
a5544970
JJ
7212019-01-01 Jakub Jelinek <jakub@redhat.com>
722
723 Update copyright years.
724
4b420b27
GP
7252018-12-29 Gerald Pfeifer <gerald@pfeifer.com>
726
727 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
728 in sed pattern.
729 * Makefile.in: Regenerate.
730
eb33bf0a
TV
7312018-12-28 Tom de Vries <tdevries@suse.de>
732
733 * dwarf.c (build_address_map): Reuse unused units.
734
d9aa0961
TV
7352018-12-28 Tom de Vries <tdevries@suse.de>
736
737 * dwarf.c (build_address_map): Simplify by removing local variable
738 abbrevs.
739
40b8d3b2
ILT
7402018-12-28 Ian Lance Taylor <iant@golang.org>
741 Tom de Vries <tdevries@suse.de>
742
743 PR libbacktrace/88063
744 * dwarf.c (free_unit_addrs_vector): Remove.
745 (build_address_map): Keep track of allocated units in vector. Free
746 allocated units and corresponding abbrevs upon failure. Remove now
747 redundant call to free_unit_addrs_vector. Free addrs vector upon
748 failure. Free allocated unit vector.
749
53a52133
TV
7502018-12-28 Tom de Vries <tdevries@suse.de>
751
752 * dwarf.c (build_address_map): Free addrs vector upon failure.
753
a37a52e5
TV
7542018-12-14 Tom de Vries <tdevries@suse.de>
755
756 PR testsuite/88491
757 * allocfail.sh: Remove "set -o pipefail".
758
d665cd9b
TV
7592018-12-12 Tom de Vries <tdevries@suse.de>
760
761 * Makefile.am (TESTS): Add allocfail.sh.
762 (check_PROGRAMS): Add allocfail.
763 * Makefile.in: Regenerate.
764 * instrumented_alloc.c: New file. Redefine malloc and realloc.
765 Include alloc.c.
766 * allocfail.c: New file.
767 * allocfail.sh: New file.
768
187b9e1d
TV
7692018-11-30 Tom de Vries <tdevries@suse.de>
770
771 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
772 test_xcoff_64, test_pecoff and test_unknown.
773 * Makefile.in: Regenerate.
774 * test_format.c: New file.
775
9b7d1a97
TV
7762018-11-30 Tom de Vries <tdevries@suse.de>
777
778 * Makefile.am : Add _with_alloc version for each test in
779 check_PROGRAMS.
780 * Makefile.in: Regenerate.
781
518a3a21
TV
7822018-11-30 Tom de Vries <tdevries@suse.de>
783
784 * internal.h (backtrace_vector_free): New static inline fuction,
785 factored out of ...
786 * dwarf.c (read_line_info): ... here.
787
18c742b5
TV
7882018-11-28 Tom de Vries <tdevries@suse.de>
789
790 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
791 failure.
792
6d760a01
TV
7932018-11-27 Tom de Vries <tdevries@suse.de>
794
795 * mmap.c (backtrace_vector_release): Same.
796 * unittest.c (test1): Add check.
797
0c155f24
TV
7982018-11-27 Tom de Vries <tdevries@suse.de>
799
800 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
801 instead of realloc.
802 * Makefile.am (check_PROGRAMS): Add unittest.
803 * Makefile.in: Regenerate.
804 * unittest.c: New file.
805
292592c5
TV
8062018-11-22 Tom de Vries <tdevries@suse.de>
807
808 * dwarf.c (read_initial_length): Factor out of ...
809 (build_address_map, read_line_info): ... here.
810
17112570
TV
8112018-11-21 Tom de Vries <tdevries@suse.de>
812
813 * dwarf.c (read_string): Factor out of ...
814 (read_attribute, read_line_header, read_line_program): ... here.
815
22e05272
JM
8162018-10-31 Joseph Myers <joseph@codesourcery.com>
817
818 PR bootstrap/82856
819 * Makefile.am: Include multilib.am.
820 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
821 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
822
a2a86641
ILT
8232018-10-05 Ian Lance Taylor <iant@golang.org>
824
825 PR libbacktrace/87529
826 * backtrace.h: Document that backtrace_create_state should be
827 called only once.
828
2206fb89
IB
8292018-08-05 Iain Buclaw <ibuclaw@gdcproject.org>
830
831 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
832 * Makefile.in: Regenerate.
833 * config.h.in: Likewise.
834 * configure: Likewise.
835
ca9a1314
TR
8362018-08-01 Tony Reix <tony.reix@atos.net>
837
838 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
839 (struct xcoff_func, struct xcoff_func_vector): New structs.
840 (xcoff_syminfo): Drop leading dot from symbol name.
841 (xcoff_line_compare, xcoff_line_search): Remove.
842 (xcoff_func_compare, xcoff_func_search): New static functions.
843 (xcoff_lookup_pc): Search function table.
844 (xcoff_add_line, xcoff_process_linenos): Remove.
845 (xcoff_initialize_fileline): Build function table.
846
1ac6620a
DK
8472018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
848
849 PR other/86198
850 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
851 checking up to 36 bytes.
852
7b47ecf2
L
8532018-04-24 H.J. Lu <hongjiu.lu@intel.com>
854
855 * configure: Regenerated.
856
a0e1df88
JJ
8572018-04-19 Jakub Jelinek <jakub@redhat.com>
858
859 * configure: Regenerated.
860
21070494
ILT
8612018-04-17 Ian Lance Taylor <iant@golang.org>
862
863 * backtrace.c: Revert last two changes. Don't call mmap
864 directly.
865
c36af1b4
ILT
8662018-04-17 Ian Lance Taylor <iant@golang.org>
867
868 * backtrace.c: Include backtrace-supported.h before checking
869 BACKTRACE_USES_MALLOC.
870
83a658ca
ILT
8712018-04-17 Ian Lance Taylor <iant@golang.org>
872
873 * backtrace.c (backtrace_full): When testing whether we can
874 allocate memory, call mmap directly, and munmap the memory.
875
c5c4b2ae
JJ
8762018-04-04 Jakub Jelinek <jakub@redhat.com>
877
878 PR other/85161
879 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
880 big endian, only use 32-bit loads if endianity macros are predefined
881 and indicate big or little endian.
882
14e335ed
IT
8832018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
884
885 PR target/84148
886 * configure: Regenerate.
887
bcc23586
JJ
8882018-02-15 Jakub Jelinek <jakub@redhat.com>
889
890 PR other/82368
891 * elf.c (SHT_PROGBITS): Undefine and define.
892
da07141f
JJ
8932018-02-14 Jakub Jelinek <jakub@redhat.com>
894
895 PR other/82368
896 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
897 (struct elf_ppc64_opd_data): New type.
898 (elf_initialize_syminfo): Add opd argument, handle symbols
899 pointing into the PowerPC64 ELFv1 .opd section.
900 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
901 to structure with .opd data to elf_initialize_syminfo.
902
65d0b859
ILT
9032018-01-31 Ian Lance Taylor <iant@golang.org>
904
905 * elf.c (elf_add): Close descriptor if we use a debugfile.
906 * btest.c (check_open_files): New static function.
907 (main): Call check_open_files.
908
96f7c2a9
ILT
9092018-01-25 Ian Lance Taylor <iant@golang.org>
910
911 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
912 desired CRC is zero.
913 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
914
a794e494
ILT
9152018-01-25 Ian Lance Taylor <iant@golang.org>
916
917 * pecoff.c (coff_add): Only release syms_view if it is valid.
918
45f3ab19
ILT
9192018-01-25 Ian Lance Taylor <iant@golang.org>
920
921 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
922
017707ce
ILT
9232018-01-24 Ian Lance Taylor <iant@golang.org>
924
925 * pecoff.c (coff_add): Use coff_read4, not memcpy.
926
3fe3c7d7
ILT
9272018-01-24 Ian Lance Taylor <iant@golang.org>
928
929 PR other/68239
930 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
931 on the free list.
932
47c699f5
TR
9332018-01-19 Tony Reix <tony.reix@atos.net>
934
935 * xcoff.c (xcoff_incl_compare): New function.
936 (xcoff_incl_search): New function.
937 (xcoff_process_linenos): Use bsearch to find include file.
938 (xcoff_initialize_fileline): Sort include file information.
939
566588f1
ILT
9402018-01-16 Ian Lance Taylor <iant@golang.org>
941
942 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
943 288.
944 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
945 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
946 (elf_zlib_default_table): Update.
947 (elf_zlib_default_dist_table): New static array.
948 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
949 for block type 1.
950 * ztest.c (struct zlib_test): Add uncompressed_len.
951 (tests): Initialize uncompressed_len field. Add new test case.
952 (test_samples): Use uncompressed_len field.
953
85ec4feb
JJ
9542018-01-03 Jakub Jelinek <jakub@redhat.com>
955
956 Update copyright years.
957
44685d37
IT
9582017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
959
960 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
961 * aclocal.m4: Regenerate.
962 * Makefile.in: Likewise.
963 * configure: Likewise.
964
549d24e9
ILT
9652017-10-06 Ian Lance Taylor <iant@golang.org>
966
967 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
968 zlib uncompress function.
969
a978e26b
ILT
9702017-10-05 Ian Lance Taylor <iant@golang.org>
971
972 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
973 Read a four byte integer.
974 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
975 boundary before ever calling elf_zlib_fetch.
976 * ztest.c (test_large): Simplify print statements a bit.
977
8398c1df
ILT
9782017-10-02 Ian Lance Taylor <iant@golang.org>
979
980 * ztest.c: #include <errno.h>.
981 (TEST_TIMING): Don't define, don't test.
982 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
983 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
984 (ZLIB_CLOCK_GETTIME_ARG): Define.
985 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
986 * Makefile.am: Likewise.
987 * configure, Makefile.in: Rebuild.
988
dbc31f20
TS
9892017-10-02 Thomas Schwinge <thomas@codesourcery.com>
990
dd954c67
TS
991 PR other/67165
992 * Makefile.am: Append the content of clock_gettime_link to
993 ztest_LDADD.
994 * configure.ac: Test for the case that clock_gettime is in librt.
995 * Makefile.in: Regenerate.
996 * configure: Likewise.
997
dbc31f20
TS
998 PR other/67165
999 * configure.ac: Check for clock_gettime.
1000 * config.h.in: Regenerate.
1001 * configure: Likewise.
1002 * ztest.c (average_time, test_large): Conditionalize test timing
1003 on clock_gettime availability.
1004
e90c74f5
TR
10052017-09-29 Tony Reix <tony.reix@atos.net>
1006
1007 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
1008 (STYP_DWARF, SSUBTYP_DW*): Define.
1009 (enum dwarf_section): Define.
1010 (struct dwsect_info): Define.
1011 (xcoff_add): Look for DWARF sections, pass them to
1012 backtrace_dwarf_add.
1013
8da872d9
ILT
10142017-09-28 Ian Lance Taylor <iant@golang.org>
1015
1016 PR other/67165
1017 * elf.c (__builtin_prefetch): Define if not __GNUC__.
1018 (unlikely): Define.
1019 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
1020 (b_elf_chdr): Define type.
1021 (enum debug_section): Add ZDEBUG_xxx values.
1022 (debug_section_names): Add names for new sections.
1023 (struct debug_section_info): Add compressed field.
1024 (elf_zlib_failed, elf_zlib_fetch): New static functions.
1025 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
1026 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
1027 (HUFFMAN_SECONDARY_SHIFT): Define.
1028 (ZDEBUG_TABLE_SIZE): Define.
1029 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
1030 (final_next_secondary): New static variable if
1031 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
1032 (elf_zlib_inflate_table): New static function.
1033 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
1034 function to produce fixed Huffman table.
1035 (elf_zlib_default_table): New static variable.
1036 (elf_zlib_inflate): New static function.
1037 (elf_zlib_verify_checksum): Likewise.
1038 (elf_zlib_inflate_and_verify): Likewise.
1039 (elf_uncompress_zdebug): Likewise.
1040 (elf_uncompress_chdr): Likewise.
1041 (backtrace_uncompress_zdebug): New extern function.
1042 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
1043 sections, and uncompress them.
1044 * internal.h (backtrace_compress_zdebug): Declare.
1045 * ztest.c: New file.
1046 * configure.ac: Check for -lz and check whether the linker
1047 supports --compress-debug-sections.
1048 * Makefile.am (ztest_SOURCES): New variable.
1049 (ztest_CFLAGS, ztest_LDADD): New variables.
1050 (check_PROGRAMS): Add ztest.
1051 (ctestg_SOURCES): New variable.
1052 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
1053 (ctesta_SOURCES): New variable.
1054 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
1055 (check_PROGRAMS): Add ctestg and ctesta.
1056 * configure, config.h.in, Makefile.in: Rebuild.
1057
8c2ea6b2
ILT
10582017-09-22 Ian Lance Taylor <iant@golang.org>
1059
1060 PR sanitizer/77631
1061 * configure.ac: Check for lstat and readlink.
1062 * elf.c (lstat, readlink): Provide dummy versions if real versions
1063 are not available.
1064 * configure, config.h.in: Rebuild.
1065
f0de4542
ILT
10662017-09-21 Ian Lance Taylor <iant@google.com>
1067
1068 PR go/82284
1069 * elf.c (backtrace_initialize): Set pd.exe_filename.
1070
9283471b
ILT
10712017-09-20 Ian Lance Taylor <iant@golang.org>
1072 Denis Khalikov <d.khalikov@partner.samsung.com>
1073
1074 PR sanitizer/77631
1075 Support for external debug info.
1076 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
1077 (S_ISLNK): Define if not defined.
1078 (xstrnlen): Define if strnlen is not available.
1079 (b_elf_note): Define type.
1080 (NT_GNU_BUILD_ID): Define macro.
1081 (elf_crc32, elf_crc32_file): New static functions.
1082 (elf_is_symlink, elf_readlink): New static functions.
1083 (elf_open_debugfile_by_buildid): New static function.
1084 (elf_try_debugfile): New static function.
1085 (elf_find_debugfile_by_debuglink): New static function.
1086 (elf_open_debugfile_by_debuglink): New static function.
1087 (elf_add): Add filename and debuginfo parameters. Adjust all
1088 callers. Look for external debug info notes, and try to fetch
1089 debug info from external file.
1090 (struct phdr_data): Add exe_filename field.
1091 (phdr_callback): Pass filename to elf_add.
1092 (backtrace_initialize): Add filename parameter.
1093 * internal.h (backtrace_initialize): Add filename parameter.
1094 * fileline.c (fileline_initialize): Pass filename to
1095 backtrace_initialize.
1096 * pecoff.c (fileline_initialize): Add unused filename parameter.
1097 * unknown.c (fileline_initialize): Likewise.
1098 * xcoff.c (fileline_initialize): Likewise.
1099 * configure.ac: Check for objcopy --add-gnu-debuglink.
1100 * Makefile.am (dtest): New test target.
1101 * configure, Makefile.in: Rebuild.
1102
29788f90
SE
11032017-09-12 Steve Ellcey <sellcey@cavium.com>
1104
1105 PR other/81096
1106 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
1107 * Makefile.in: Regenerate.
1108
917a804c
SE
11092017-09-12 Steve Ellcey <sellcey@cavium.com>
1110
1111 PR other/81096
1112 * libbacktrace/Makefile.in
1113 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
1114
2e6af1b8
DE
11152017-08-02 David Edelsohn <dje.gcc@gmail.com>
1116
8a0e6224 1117 PR bootstrap/81638
2e6af1b8
DE
1118 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
1119
afce7deb
TR
11202017-07-28 Tony Reix <tony.reix@atos.net>
1121
1122 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
1123
cf311b03
RO
11242017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1125
1126 * fileline.c (fileline_initialize): Print pid_t as long.
1127
7e2a8417
TR
11282017-07-26 Tony Reix <tony.reix@atos.net>
1129
1130 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
1131 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
1132 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
1133 * configure, config.h.in: Regenerate.
1134
b3530b94
TR
11352017-07-21 Tony Reix <tony.reix@atos.net>
1136
1137 * filetype.awk: Add AIX XCOFF type detection.
1138 * configure.ac: Recognize xcoff format.
1139 * Makefile.am (FORMAT_FILES): Add xcoff.c.
1140 * fileline.c: Include <unistd.h>.
1141 (fileline_initialize): Add case for AIX procfs.
1142 * xcoff.c: New file.
1143 * configure, Makefile.in: Rebuild.
1144
e91a2ddc
RB
11452017-06-21 Richard Biener <rguenther@suse.de>
1146
1147 * configure.ac: Add AC_SYS_LARGEFILE.
1148 * config.h.in: Regenerate.
1149 * configure: Likewise.
1150
d1609a23
ILT
11512017-06-11 Ian Lance Taylor <iant@golang.org>
1152
1153 * elf.c (backtrace_initialize): Always set *fileline_fn.
1154 * ttest.c: New file.
1155 * btest.c: Move support functions into testlib.c. Change calls to
1156 check to pass file name.
1157 * testlib.c: New file, copied from (part of) btest.c.
1158 * testlib.h: New file, declarations for testlib.c.
1159 * edtest.c: Use testlib.h and testlib.c.
1160 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
1161 * Makefile.am (btest_SOURCES): Add testlib.c.
1162 (edtest_SOURCES): Likewise.
1163 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
1164 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
1165 * configure, Makefile.in: Rebuild.
1166
281161d1
TM
11672017-05-19 Than McIntosh <thanm@google.com>
1168
1169 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
1170 (read_line_header): Don't allocate dirs if dirs_count == 0.
1171 * edtest.c: New file.
1172 * edtest2.c: New file.
1173 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
1174 (check_PROGRAMS): Add edtest.
1175 (edtest2_build.c, gen_edtest2_build): New targets.
1176 * Makefile.in: Rebuild.
1177
121eb024
ST
11782017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
1179
1180 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
1181 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
1182
cbe34bb5
JJ
11832017-01-01 Jakub Jelinek <jakub@redhat.com>
1184
1185 Update copyright years.
1186
84c1b9d3
MK
11872016-11-15 Matthias Klose <doko@ubuntu.com>
1188
1189 * configure: Regenerate.
1190
84ebf639
CL
11912016-09-11 Carlos Liam <carlos@aarzee.me>
1192
1193 * all: Remove meaningless trailing whitespace.
1194
28644f75
UB
11952016-05-18 Uros Bizjak <ubizjak@gmail.com>
1196
1197 PR target/71161
1198 * elf.c (phdr_callback) [__i386__]: Add
1199 __attribute__((__force_align_arg_pointer__)).
1200
26ac52db
MO
12012016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1202
1203 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
1204 avoid possible crash.
1205 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
1206 missing debug info anymore.
1207
09b08e17
JDA
12082016-02-06 John David Anglin <danglin@gcc.gnu.org>
1209
1210 * mmap.c (MAP_FAILED): Define if not defined.
1211
818ab71a
JJ
12122016-01-04 Jakub Jelinek <jakub@redhat.com>
1213
1214 Update copyright years.
1215
5b4bbc7d
AP
12162015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
1217
28644f75
UB
1218 * configure.ac: Specify that DJGPP do not have mmap
1219 even when sys/mman.h exists.
5b4bbc7d
AP
1220 * configure: Regenerate
1221
2f401a8f
JDA
12222015-12-09 John David Anglin <danglin@gcc.gnu.org>
1223
28644f75 1224 PR libgfortran/68115
2f401a8f
JDA
1225 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
1226 * configure: Regenerate.
1227 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
1228 to void.
1229
750cdaf7
ILT
12302015-09-17 Ian Lance Taylor <iant@google.com>
1231
1232 * posix.c (backtrace_open): Cast second argument of open() to int.
1233
fc002444
ILT
12342015-09-11 Ian Lance Taylor <iant@google.com>
1235
1236 * Makefile.am (backtrace.lo): Depend on internal.h.
1237 (sort.lo, stest.lo): Add explicit dependencies.
1238 * Makefile.in: Rebuild.
1239
50809ff9
HPN
12402015-09-09 Hans-Peter Nilsson <hp@axis.com>
1241
1242 * backtrace.c: #include <sys/types.h>.
1243
c478516b
ILT
12442015-09-08 Ian Lance Taylor <iant@google.com>
1245
1246 PR other/67457
1247 * backtrace.c: #include "internal.h".
1248 (struct backtrace_data): Add can_alloc field.
1249 (unwind): If can_alloc is false, don't try to get file/line
1250 information.
1251 (backtrace_full): Set can_alloc field in bdata.
1252 * alloc.c (backtrace_alloc): Don't call error_callback if it is
1253 NULL.
1254 * mmap.c (backtrace_alloc): Likewise.
1255 * internal.h: Update comments for backtrace_alloc and
1256 backtrace_free.
1257
981d281f
ILT
12582015-09-08 Ian Lance Taylor <iant@google.com>
1259
1260 PR other/67457
1261 * mmap.c (backtrace_alloc): Correct test for mmap failure.
1262
8f5027bf
UW
12632015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1264
1265 * configure.ac: For spu-*-* targets, set have_fcntl to no.
1266 * configure: Regenerate.
1267
7e5c7547
UW
12682015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1269
1270 * configure.ac: Remove [disable-shared] argument to LT_INIT.
1271 Remove setting PIC_FLAG when building as target library.
1272 * configure: Regenerate.
1273
7ce9cf39
HPN
12742015-08-26 Hans-Peter Nilsson <hp@axis.com>
1275
1276 * configure.ac: Only compile with -fPIC if the target
1277 supports it.
1278 * configure: Regenerate.
1279
1b533361
UW
12802015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1281
1282 * configure.ac: Set have_mmap to no on spu-*-* targets.
1283 * configure: Regenerate.
1284
d96fa208
ILT
12852015-08-13 Ian Lance Taylor <iant@google.com>
1286
1287 * dwarf.c (read_function_entry): Add vec_inlined parameter.
1288 Change all callers.
1289
d99a7b4d
MS
12902015-06-11 Martin Sebor <msebor@redhat.com>
1291
1292 PR sanitizer/65479
1293 * dwarf.c (struct line): Add new field idx.
1294 (line_compare): Use it.
1295 (add_line): Set it.
1296 (read_line_info): Reset it.
1297
e24afc10
TG
12982015-05-29 Tristan Gingold <gingold@adacore.com>
1299
1300 * pecoff.c: New file.
1301 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
1302 * Makefile.in: Regenerate.
1303 * filetype.awk: Detect pecoff.
1304 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
1305 Add pecoff.
1306 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
1307 true.
1308 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
1309 * configure: Regenerate.
1310 * pecoff.c: New file.
1311
df96c0f7
MH
13122015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1313
1314 * Makefile.in: Regenerated with automake-1.11.6.
1315 * aclocal.m4: Likewise.
1316 * configure: Likewise.
1317
2b8fa469
MK
13182015-01-24 Matthias Klose <doko@ubuntu.com>
1319
1320 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
1321 * configure: Regenerate.
1322
5624e564
JJ
13232015-01-05 Jakub Jelinek <jakub@redhat.com>
1324
1325 Update copyright years.
1326
a699d672
L
13272014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1328
1329 PR bootstrap/63784
1330 * configure: Regenerated.
1331
35485da9
DM
13322014-11-11 David Malcolm <dmalcolm@redhat.com>
1333
1334 * ChangeLog.jit: New.
1335
ebf6d33b
FXC
13362014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1337
1338 PR target/63610
1339 * configure: Regenerate.
1340
c96601d2
ILT
13412014-10-23 Ian Lance Taylor <iant@google.com>
1342
1343 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1344 Fix to return void *.
1345
d573fd89
ILT
13462014-05-08 Ian Lance Taylor <iant@google.com>
1347
1348 * mmap.c (backtrace_free): If freeing a large aligned block of
1349 memory, call munmap rather than holding onto it.
1350 (backtrace_vector_grow): When growing a vector, double the number
1351 of pages requested. When releasing the old version of a grown
1352 vector, pass the correct size to backtrace_free.
1353
dbe20842
ILT
13542014-03-07 Ian Lance Taylor <iant@google.com>
1355
1356 * sort.c (backtrace_qsort): Use middle element as pivot.
1357
c5604b48
ILT
13582014-03-06 Ian Lance Taylor <iant@google.com>
1359
1360 * sort.c: New file.
1361 * stest.c: New file.
1362 * internal.h (backtrace_qsort): Declare.
1363 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1364 (read_line_info, read_function_entry): Likewise.
1365 (read_function_info, build_dwarf_data): Likewise.
1366 * elf.c (elf_initialize_syminfo): Likewise.
1367 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1368 (stest_SOURCES, stest_LDADD): Define.
1369 (check_PROGRAMS): Add stest.
1370
63fefb4b
MDM
13712014-02-07 Misty De Meo <misty@brew.sh>
1372
1373 PR target/58710
1374 * configure.ac: Use AC_LINK_IFELSE in check for
1375 _Unwind_GetIPInfo.
1376 * configure: Regenerate.
1377
afeba5cb
RS
13782014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1379
1380 Update copyright years
1381
0284b52e
JJ
13822013-12-06 Jakub Jelinek <jakub@redhat.com>
1383
1384 * elf.c (ET_DYN): Undefine and define again.
1385 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1386 return early -1 without closing the descriptor.
1387 (struct phdr_data): Add exe_descriptor.
1388 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1389 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1390 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1391 call to elf_add.
1392 (backtrace_initialize): Adjust call to elf_add. If it returns
1393 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1394
bfd74f22
ILT
13952013-12-05 Ian Lance Taylor <iant@google.com>
1396
1397 * alloc.c (backtrace_vector_finish): Add error_callback and data
1398 parameters. Call backtrace_vector_release. Return address base.
1399 * mmap.c (backtrace_vector_finish): Add error_callback and data
1400 parameters. Return address base.
1401 * dwarf.c (read_function_info): Get new address base from
1402 backtrace_vector_finish.
1403 * internal.h (backtrace_vector_finish): Update declaration.
1404
b8ddd61b
ILT
14052013-11-27 Ian Lance Taylor <iant@google.com>
1406
1407 * dwarf.c (find_address_ranges): New static function, broken out
1408 of build_address_map.
1409 (build_address_map): Call it.
1410 * btest.c (check): Check for missing filename or function, rather
1411 than crashing.
1412 (f3): Check that enough frames were returned.
1413
64856e1e
JJ
14142013-11-19 Jakub Jelinek <jakub@redhat.com>
1415
1f96a712
JJ
1416 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1417 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1418 last argument.
1419 * btest.c (struct symdata): Add size field.
1420 (callback_three): Add symsize argument. Copy it to the data->size
1421 field.
1422 (f23): Set symdata.size to 0.
1423 (test5): Likewise. If sizeof (int) > 1, lookup address of
1424 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1425 values.
1426
64856e1e
JJ
1427 * atomic.c: Include sys/types.h.
1428
49579c7e
ILT
14292013-11-18 Ian Lance Taylor <iant@google.com>
1430
1431 * configure.ac: Check for support of __atomic extensions.
1432 * internal.h: Declare or #define atomic functions for use in
1433 backtrace code.
1434 * atomic.c: New file.
1435 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1436 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1437 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1438 (backtrace_initialize): Likewise.
1439 * fileline.c (fileline_initialize): Likewise.
1440 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1441 * configure, config.h.in, Makefile.in: Rebuild.
1442
582f5a2d
JJ
14432013-11-18 Jakub Jelinek <jakub@redhat.com>
1444
f1857815
JJ
1445 * elf.c (SHN_UNDEF): Define.
1446 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1447 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1448 (elf_add): Adjust caller.
1449
582f5a2d
JJ
1450 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1451
25e6253e
ILT
14522013-11-16 Ian Lance Taylor <iant@google.com>
1453
1454 * backtrace.h (backtrace_create_state): Correct comment about
1455 threading.
1456
cfa658e4
ILT
14572013-11-15 Ian Lance Taylor <iant@google.com>
1458
1459 * backtrace.h (backtrace_syminfo): Update comment and parameter
1460 name to take any address, not just a PC value.
1461 * elf.c (STT_OBJECT): Define.
1462 (elf_nosyms): Rename parameter pc to addr.
1463 (elf_symbol_search): Rename local variable pc to addr.
1464 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1465 (elf_syminfo): Rename parameter pc to addr.
1466 * btest.c (global): New global variable.
1467 (test5): New test.
1468 (main): Call test5.
1469
6c084a5b
ILT
14702013-10-17 Ian Lance Taylor <iant@google.com>
1471
1472 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1473 is missing.
1474
459260ec
DM
14752013-10-15 David Malcolm <dmalcolm@redhat.com>
1476
1477 * configure.ac: Add --enable-host-shared, setting up
1478 pre-existing PIC_FLAG variable within Makefile.am et al.
1479 * configure: Regenerate.
1480
3cbe17f7
AM
14812013-09-20 Alan Modra <amodra@gmail.com>
1482
1483 * configure: Regenerate.
1484
78625ce6
AM
14852013-07-23 Alexander Monakov <amonakov@ispras.ru>
1486
1487 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1488
0153887c
AM
14892013-07-23 Alexander Monakov <amonakov@ispras.ru>
1490
1491 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1492 dl_iterate_phdr callbacks.
1493
85d8c21e
ILT
14942013-03-25 Ian Lance Taylor <iant@google.com>
1495
1496 * alloc.c: #include <sys/types.h>.
1497 * mmap.c: Likewise.
1498
38811401
ILT
14992013-01-31 Ian Lance Taylor <iant@google.com>
1500
1501 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1502 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1503
1e678aed
JJ
15042013-01-25 Jakub Jelinek <jakub@redhat.com>
1505
1506 PR other/56076
1507 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1508 attribute was not seen.
1509
6b514c53
ILT
15102013-01-16 Ian Lance Taylor <iant@google.com>
1511
1512 * dwarf.c (struct unit): Add filename and abs_filename fields.
1513 (build_address_map): Set new fields when reading unit.
1514 (dwarf_lookup_pc): If we don't find an entry in the line table,
1515 just return the main file name.
1516
f8a7e1a4
RS
15172013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1518
1519 Update copyright years.
1520
c3de1960
ILT
15212013-01-01 Ian Lance Taylor <iant@google.com>
1522
1523 PR bootstrap/54834
1524 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1525 $(MULTIBUILDTOP)/../../gcc/include.
1526 * Makefile.in: Rebuild.
1527
2a5195d9
ILT
15282013-01-01 Ian Lance Taylor <iant@google.com>
1529
1530 PR other/55536
1531 * mmap.c (backtrace_alloc): Don't call sync functions if not
1532 threaded.
1533 (backtrace_free): Likewise.
1534
85619b6f
JDA
15352012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1536
1537 * mmapio.c: Define MAP_FAILED if not defined.
1538
36a58fb3
JJ
15392012-12-11 Jakub Jelinek <jakub@redhat.com>
1540
1541 PR bootstrap/54926
1542 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1543 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1544 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1545 accepts it.
1546 * Makefile.in: Regenerated.
1547 * configure: Regenerated.
1548
a58dfde0
JJ
15492012-12-07 Jakub Jelinek <jakub@redhat.com>
1550
1551 PR bootstrap/54926
1552 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1553 * Makefile.in: Regenerated.
1554
b20ade36
ILT
15552012-11-20 Ian Lance Taylor <iant@google.com>
1556
1557 * dwarf.c (read_attribute): Always clear val.
1558
73c3ed27
ILT
15592012-11-13 Ian Lance Taylor <iant@google.com>
1560
1561 PR other/55312
1562 * configure.ac: Only add -Werror if building a target library.
2a5195d9 1563 * configure: Rebuild.
73c3ed27 1564
33521509
ILT
15652012-11-12 Ian Lance Taylor <iant@google.com>
1566 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1567 Gerald Pfeifer <gerald@pfeifer.com>
1568
1569 * configure.ac: Check for getexecname.
1570 * fileline.c: #include <errno.h>. Define getexecname if not
1571 available.
1572 (fileline_initialize): Try to find the executable in a few
1573 different ways.
1574 * print.c (error_callback): Only print the filename if it came
1575 from the backtrace state.
1576 * configure, config.h.in: Rebuild.
1577
8fe91dea
ILT
15782012-10-29 Ian Lance Taylor <iant@google.com>
1579
1580 * mmap.c (backtrace_vector_release): Correct last patch: add
1581 aligned, not size.
1582
8277de34
ILT
15832012-10-29 Ian Lance Taylor <iant@google.com>
1584
1585 * mmap.c (backtrace_vector_release): Make sure freed block is
1586 aligned on 8-byte boundary.
1587
73f41491
ILT
15882012-10-26 Ian Lance Taylor <iant@google.com>
1589
1590 PR other/55087
1591 * posix.c (backtrace_open): Add does_not_exist parameter.
1592 * elf.c (phdr_callback): Do not warn if shared library could not
1593 be opened.
1594 * fileline.c (fileline_initialize): Update calls to
1595 backtrace_open.
1596 * internal.h (backtrace_open): Update declaration.
1597
385710cf
JH
15982012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
1599
1600 PR target/55061
1601 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1602 * configure: Regenerate.
1603
32061319
ILT
16042012-10-24 Ian Lance Taylor <iant@google.com>
1605
1606 PR target/55061
1607 * configure.ac: Check whether -funwind-tables option works.
1608 * configure: Rebuild.
1609
5551b12c
ILT
16102012-10-11 Ian Lance Taylor <iant@google.com>
1611
1612 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1613 * configure: Rebuild.
1614
40d15b5b
ILT
16152012-10-10 Ian Lance Taylor <iant@google.com>
1616
1617 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1618 lower case.
1619
74f80620
HPN
16202012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
1621
1622 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1623
ce8aa074
ILT
16242012-10-09 Ian Lance Taylor <iant@google.com>
1625
1626 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1627 (backtrace_dwarf_add): Likewise.
1628
e561a992
ILT
16292012-10-09 Ian Lance Taylor <iant@google.com>
1630
1631 Add support for tracing through shared libraries.
1632 * configure.ac: Check for link.h and dl_iterate_phdr.
1633 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1634 ELF macros before #defining them.
1635 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1636 dl_iterate_phdr.
1637 (struct elf_syminfo_data): Add next field.
1638 (elf_initialize_syminfo): Initialize next field.
1639 (elf_add_syminfo_data): New static function.
1640 (elf_add): New static function, broken out of
1641 backtrace_initialize. Call backtrace_dwarf_add instead of
1642 backtrace_dwarf_initialize.
1643 (struct phdr_data): Define.
1644 (phdr_callback): New static function.
1645 (backtrace_initialize): Call elf_add.
1646 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1647 (add_unit_addr): Add base_address parameter. Change all callers.
1648 (add_unit_ranges, build_address_map): Likewise.
1649 (add_line): Add ddata parameter. Change all callers.
1650 (read_line_program, add_function_range): Likewise.
1651 (dwarf_lookup_pc): New static function, broken out of
1652 dwarf_fileline.
1653 (dwarf_fileline): Call dwarf_lookup_pc.
1654 (build_dwarf_data): New static function.
1655 (backtrace_dwarf_add): New function.
1656 (backtrace_dwarf_initialize): Remove.
1657 * internal.h (backtrace_dwarf_initialize): Don't declare.
1658 (backtrace_dwarf_add): Declare.
1659 * configure, config.h.in: Rebuild.
1660
068ef6d1
GP
16612012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
1662
1663 * btest.c (f23): Avoid uninitialized variable warning.
e561a992 1664
244e2d9c
ILT
16652012-10-04 Ian Lance Taylor <iant@google.com>
1666
1667 * dwarf.c: If the system header files do not declare strnlen,
1668 provide our own version.
1669
be4ba8ae
ILT
16702012-10-03 Ian Lance Taylor <iant@google.com>
1671
1672 * dwarf.c (read_uleb128): Fix overflow test.
1673 (read_sleb128): Likewise.
1674 (build_address_map): Don't change unit_buf.start.
1675
56195009
UB
16762012-10-02 Uros Bizjak <ubizjak@gmail.com>
1677
faf86a02
UB
1678 PR other/54761
1679 * configure.ac (EXTRA_FLAGS): New.
56195009 1680 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
faf86a02 1681 * configure, Makefile.in: Regenerate.
56195009 1682
8a447b3d
ILT
16832012-09-29 Ian Lance Taylor <iant@google.com>
1684
1685 PR other/54749
1686 * fileline.c (fileline_initialize): Pass errnum as -1 when
1687 reporting that we could not read executable information after a
1688 previous failure.
1689
af710874
ILT
16902012-09-27 Ian Lance Taylor <iant@google.com>
1691
1692 PR bootstrap/54732
1693 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1694 * Makefile.am: Add dependencies for all objects.
1695 * configure, aclocal.m4, Makefile.in: Rebuild.
1696
588f4f8f
ILT
16972012-09-27 Ian Lance Taylor <iant@google.com>
1698
1699 PR other/54726
1700 * elf.c (backtrace_initialize): Set *fileln_fn, not
1701 state->fileln_fn.
1702
64b89453
ILT
17032012-09-19 Ian Lance Taylor <iant@google.com>
1704
1705 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1706 as a target library.
1707 * configure: Rebuild.
1708
76850556
RO
17092012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1710 Ian Lance Taylor <iant@google.com>
1711
92a285c1
ML
1712 * configure.ac (GCC_HEADER_STDINT): Invoke.
1713 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1714 * btest.c: Don't include <stdint.h>.
1715 * dwarf.c: Likewise.
1716 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
76850556 1717
9425c00b
ILT
17182012-09-18 Ian Lance Taylor <iant@google.com>
1719
1720 PR bootstrap/54623
1721 * Makefile.am (AM_CPPFLAGS): Define.
1722 (AM_CFLAGS): Remove -I options.
1723 * Makefile.in: Rebuild.
1724
3319ef17
ILT
17252012-09-18 Ian Lance Taylor <iant@google.com>
1726
1727 * posix.c (O_BINARY): Define if not defined.
1728 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1729 HAVE_FCNTL is defined.
1730 * configure.ac: Test for the fcntl function.
1731 * configure, config.h.in: Rebuild.
1732
bd3e497d
ILT
17332012-09-18 Ian Lance Taylor <iant@google.com>
1734
1735 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1736
30e15876
ILT
17372012-09-18 Ian Lance Taylor <iant@google.com>
1738
1739 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1740
d4c059d5
ILT
17412012-09-18 Ian Lance Taylor <iant@google.com>
1742
1743 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1744 * mmapio.c: Don't define _GNU_SOURCE.
1745 * configure, config.h.in: Rebuild.
1746
772a71a9
ILT
17472012-09-18 Ian Lance Taylor <iant@google.com>
1748
1749 * configure.ac: Check whether strnlen is declared.
1750 * dwarf.c: Declare strnlen if not declared.
1751 * configure, config.h.in: Rebuild.
1752
c0558468
RO
17532012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1754
1755 * fileline.c: Include <stdlib.h>.
1756 * mmap.c: Likewise.
1757
c5812e0b
ILT
17582012-09-17 Ian Lance Taylor <iant@google.com>
1759
1760 PR bootstrap/54611
1761 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1762 parameter.
1763
e8f4008a
GP
17642012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1765
1766 PR bootstrap/54611
1767 * nounwind.c (backtrace_simple): Add state parameter.
1768
f588eb27
ILT
17692012-09-17 Ian Lance Taylor <iant@google.com>
1770
1771 PR bootstrap/54609
1772 * unknown.c (unknown_fileline): Add state parameter, remove
1773 fileline_data parameter, name error_callback parameter.
1774 (backtrace_initialize): Add state parameter.
1775
eff02e4f
ILT
17762012-09-17 Ian Lance Taylor <iant@google.com>
1777
1778 * Initial implementation.
818ab71a 1779\f
c48514be 1780Copyright (C) 2012-2021 Free Software Foundation, Inc.
818ab71a
JJ
1781
1782Copying and distribution of this file, with or without modification,
1783are permitted in any medium without royalty provided the copyright
1784notice and this notice are preserved.