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