ChangeLog revision 1.1.1.17 1 2021-04-08 Release Manager
2
3 * GCC 10.3.0 released.
4
5 2021-01-03 Iain Sandoe <iain (a] sandoe.co.uk>
6 Jakub Jelinek <jakub (a] redhat.com>
7
8 PR target/97865
9 * configure: Regenerate.
10
11 2020-07-23 Release Manager
12
13 * GCC 10.2.0 released.
14
15 2020-07-08 Ian Lance Taylor <iant (a] golang.org>
16
17 * configure.ac: Test linker support for DWARF5
18 * configure: Regenerate
19
20 2020-05-07 Release Manager
21
22 * GCC 10.1.0 released.
23
24 2020-02-15 Ian Lance Taylor <iant (a] golang.org>
25
26 * ztest.c (test_large): Update file to current libgo test file.
27
28 2020-02-03 Ian Lance Taylor <iant (a] golang.org>
29
30 * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
31 (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
32 (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
33 (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
34 (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
35 (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
36 (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
37 (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
38 (stest_alloc_CFLAGS): Likewise.
39 * Makefile.in: Regenerate.
40 * ztest.c (error_callback_compress): Mark vdata unused.
41 (test_large): Add casts to avoid warnings.
42
43 2020-01-01 Jakub Jelinek <jakub (a] redhat.com>
44
45 Update copyright years.
46
47 2019-12-13 Ian Lance Taylor <iant (a] golang.org>
48
49 Add DWARF 5 support.
50 * dwarf.c (struct attr): Add val field.
51 (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
52 ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
53 (struct line_header): Add addrsize field.
54 (struct line_header_format): Define.
55 (struct unit): Add str_offsets_base, addr_base, and rnglists_base
56 fields.
57 (read_uint24): New static function.
58 (read_attribute): Add implicit_val parameter. Replace dwarf_str
59 and dwarf_str_size parameters with dwarf_sections parameter. Add
60 support for new DWARF 5 forms. Change all callers.
61 (resolve_string): New static function.
62 (resolve_addr_index): Likewise.
63 (read_abbrevs): Support DW_FORM_implicit_const.
64 (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
65 and ranges_is_index fields.
66 (update_pcrange): Support DWARF 5 encodings.
67 (add_high_low_range): New static function, split out of
68 add_ranges.
69 (add_ranges_from_ranges): Likewise.
70 (add_ranges_from_rnglists): New static function.
71 (add_ranges): Just call new helper functions.
72 (find_address_ranges): Use resolve_string for strings, after
73 reading all attributes. Handle new DWARF 5 attributes.
74 (build_address_map): Support DWARF 5 compilation units.
75 (read_v2_paths): New static function, split out of
76 read_line_header.
77 (read_lnct): New static function.
78 (read_line_header_format_entries): Likewise.
79 (read_line_header): Add ddata parameter. Support DWARF 5 line
80 headers. Call new helper functions. Change all callers.
81 (read_line_program): Use addrsize from line program header. Don't
82 special case directory index 0 for DWARF 5.
83 (read_referenced_name): Use resolve_string.
84 (read_function_entry): Handle DWARF 5 encodings. Use
85 resolve_string.
86 * internal.h (enum dwarf_section): Add DEBUG_ADDR,
87 DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
88 * elf.c (dwarf_section_names): Add new section names.
89 * pecoff.c (dwarf_section_names): Likewise.
90 * xcoff.c (xcoff_add): Clear dwarf_sections before setting
91 fields.
92 * configure.ac: Define HAVE_DWARF5 automake conditional.
93 * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
94 (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
95 (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
96 (dwarf5_alloc_LDADD): Likewise.
97 (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
98 (CLEANFILES, clean-local): Define.
99
100 2019-12-08 Ian Lance Taylor <iant (a] golang.org>
101
102 * dwarf.c (struct pcrange): Define.
103 (update_pcrange, add_ranges): New static functions.
104 (add_unit_addr): Change signature to work with add_ranges. Don't
105 add base_address here.
106 (add_unit_ranges): Remove.
107 (find_address_ranges): Replace str/ranges parameters with
108 dwarf_sections. Use update_pcrange and add_ranges. Change all
109 callers.
110 (add_function_range): Change signature to work with add_ranges.
111 Don't add base_address here.
112 (add_function_ranges): Remove.
113 (read_function_entry): Use update_pcrange and add_ranges.
114
115 2019-12-04 Ian Lance Taylor <iant (a] golang.org>
116
117 * edtest.c (test1): Add noclone attribute.
118
119 2019-12-04 Ian Lance Taylor <iant (a] golang.org>
120
121 * internal.h (enum dwarf_section): Define.
122 (struct dwarf_sections): Define.
123 (backtrace_dwarf_add): Update declaration to replace specific
124 section parameters with dwarf_sections parameter.
125 * dwarf.c (struct dwarf_data): Replace specific section fields
126 with dwarf_sections field.
127 (read_attribute): Use dwarf_sections with altlink.
128 (build_address_map): Replace specific section parameters with
129 dwarf_sections parameter. Change all callers.
130 (read_line_info): Use dwarf_sections with ddata.
131 (read_referenced_name): Likewise.
132 (add_function_ranges): Likewise.
133 (read_function_entry): Likewise.
134 (read_function_info): Likewise.
135 (build_dwarf_data): Replace specific section parameters with
136 dwarf_sections parameter. Change all callers.
137 (backtrace_dwarf_add): Likewise.
138 * elf.c (enum debug_section): Remove.
139 (dwarf_section_names): Remove .zdebug names.
140 (elf_add): Track zsections separately. Build dwarf_sections.
141 * pecoff.c (enum debug_section): Remove.
142 (struct debug_section_info): Remove data field.
143 (coff_add): Build dwarf_sections.
144 * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
145 references with DEBUG_xxx references.
146 (xcoff_add): Build dwarf_sections.
147
148 2019-09-27 Maciej W. Rozycki <macro (a] wdc.com>
149
150 * configure: Regenerate.
151
152 2019-09-26 Ian Lance Taylor <iant (a] golang.org>
153
154 PR libbacktrace/91908
155 * pecoff.c (backtrace_initialize): Explicitly cast unchecked
156 __sync_bool_compare_and_swap to void.
157 * xcoff.c (backtrace_initialize): Likewise.
158
159 2019-09-03 Ulrich Weigand <uweigand (a] de.ibm.com>
160
161 * configure.ac: Remove references to spu.
162 * configure: Regenerate.
163
164 2019-05-24 Clement Chigot <clement.chigot (a] atos.net>
165
166 * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
167 test_elf_64.
168 * Makefile.in: Regenerate.
169
170 2019-05-14 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
171
172 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
173 handling.
174 * configure: Regenerate.
175
176 2019-03-11 Ian Lance Taylor <iant (a] golang.org>
177
178 PR libbacktrace/89669
179 * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
180 HAVE_ELF.
181 * Makefile.in: Regenerate.
182
183 2019-02-26 Tom de Vries <tdevries (a] suse.de>
184
185 * btest.c (test5): Allow global.* as minimal symbol name for global.
186
187 2019-02-26 Tom de Vries <tdevries (a] suse.de>
188
189 * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
190 * Makefile.in: Regenerate.
191
192 2019-02-12 Tom de Vries <tdevries (a] suse.de>
193
194 PR libbacktrace/81983
195 * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
196
197 2019-02-10 Tom de Vries <tdevries (a] suse.de>
198
199 * Makefile.am (BUILDTESTS): Add btest_lto.
200 * Makefile.in: Regenerate.
201 * btest.c (test1, f2, f3, test3, f22, f23): Declare with
202 __attribute__((noclone)).
203
204 2019-02-08 Tom de Vries <tdevries (a] suse.de>
205
206 * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
207 * print.c (backtrace_print): Same.
208 * simple.c (backtrace_simple): Same.
209
210 2019-02-08 Tom de Vries <tdevries (a] suse.de>
211
212 PR libbacktrace/78063
213 * dwarf.c (build_address_map): Keep all parsed units.
214 (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
215
216 2019-01-31 Tom de Vries <tdevries (a] suse.de>
217
218 PR libbacktrace/89136
219 * elf.c (elf_add): Read build-id if with_buildid_data. Fix
220 'debugaltlink_name_len =+ 1'.
221
222 2019-01-29 Tom de Vries <tdevries (a] suse.de>
223
224 * install-debuginfo-for-buildid.sh.in: New script.
225 * Makefile.am (check_PROGRAMS): Add b2test and b3test.
226 (TESTS): Add b2test_buildid and b3test_dwz_buildid.
227 * Makefile.in: Regenerate.
228 * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
229 (READELF): Set with AC_CHECK_PROG.
230 (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
231 * configure: Regenerate.
232 * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
233 (elf_open_debugfile_by_buildid): ... here.
234
235 2019-01-29 Tom de Vries <tdevries (a] suse.de>
236
237 * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
238 allocfail.
239 (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
240 (check_PROGRAMS): Add BUILDTESTS.
241 * Makefile.in: Regenerate.
242
243 2019-01-28 Tom de Vries <tdevries (a] suse.de>
244
245 * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
246 Use $< to access prerequisite.
247 * Makefile.in: Regenerate.
248
249 2019-01-25 Nathan Sidwell <nathan (a] acm.org>
250
251 * elf.c (elf_add): Pass "" filename to recursive call with
252 separated debug.
253
254 2019-01-25 Tom de Vries <tdevries (a] suse.de>
255
256 * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
257 filename == "".
258 * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
259 * Makefile.in: Regenerate.
260
261 2019-01-25 Tom de Vries <tdevries (a] suse.de>
262
263 * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
264 (TESTS): Rename dtest to btest_gnudebuglink.
265 * Makefile.in: Regenerate.
266
267 2019-01-23 Tom de Vries <tdevries (a] suse.de>
268
269 * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
270 (units_search, find_unit): Use size_t for offset.
271 (build_address_map): Use size_t for unit_offset.
272
273 2019-01-20 Gerald Pfeifer <gerald (a] pfeifer.com>
274
275 * allocfail.c (main): Increase portability of printf statement.
276
277 2019-01-18 Ian Lance Taylor <iant (a] golang.org>
278
279 PR libbacktrace/88890
280 * mmapio.c (backtrace_get_view): Change size parameter to
281 uint64_t. Check that value fits in size_t.
282 * read.c (backtrace_get_view): Likewise.
283 * internal.h (backtrace_get_view): Update declaration.
284 * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
285
286 2019-01-17 Tom de Vries <tdevries (a] suse.de>
287
288 PR libbacktrace/82857
289 * configure.ac (DWZ): Set with AC_CHECK_PROG.
290 (HAVE_DWZ): Set with AM_CONDITIONAL.
291 * configure: Regenerate.
292 * Makefile.am (TESTS): Add btest_dwz.
293 * Makefile.in: Regenerate.
294
295 2019-01-17 Tom de Vries <tdevries (a] suse.de>
296
297 PR libbacktrace/82857
298 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
299 (read_attribute): Handle DW_FORM_GNU_ref_alt using
300 ATTR_VAL_REF_ALT_INFO.
301 (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
302
303 2019-01-17 Tom de Vries <tdevries (a] suse.de>
304
305 * dwarf.c (struct unit): Add low_offset and high_offset fields.
306 (struct unit_vector): New type.
307 (struct dwarf_data): Add units and units_counts fields.
308 (find_unit): New function.
309 (find_address_ranges): Add and handle unit_tag parameter.
310 (build_address_map): Add and handle units_vec parameter.
311 (build_dwarf_data): Pass units_vec to build_address_map. Store resulting
312 units vector.
313
314 2019-01-17 Tom de Vries <tdevries (a] suse.de>
315
316 PR libbacktrace/82857
317 * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
318 using altlink.
319
320 2019-01-17 Tom de Vries <tdevries (a] suse.de>
321
322 * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
323 (read_attribute): Add altlink parameter. Handle missing altlink for
324 DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
325 (find_address_ranges, build_address_map, build_dwarf_data): Add and
326 handle altlink parameter.
327 (read_referenced_name, read_function_entry): Add argument to
328 read_attribute call.
329
330 2019-01-17 Tom de Vries <tdevries (a] suse.de>
331
332 * dwarf.c (struct dwarf_data): Add altlink field.
333 (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
334 * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
335 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
336 * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
337 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
338 * xcoff.c (xcoff_add): Same.
339
340 2019-01-17 Tom de Vries <tdevries (a] suse.de>
341
342 * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
343 * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
344 * elf.c (elf_add): Add and handle fileline_entry parameter. Add
345 argument to backtrace_dwarf_add call.
346 (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
347 * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
348 * xcoff.c (xcoff_add): Same.
349
350 2019-01-17 Tom de Vries <tdevries (a] suse.de>
351
352 * elf.c (elf_add): Add and handle with_buildid_data and
353 with_buildid_size parameters. Handle .gnu_debugaltlink section.
354 (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
355
356 2019-01-16 Tom de Vries <tdevries (a] suse.de>
357
358 * dwarf.c (read_referenced_name_from_attr): New function. Factor out
359 of ...
360 (read_referenced_name): ... here, and ...
361 (read_function_entry): ... here.
362
363 2019-01-16 Tom de Vries <tdevries (a] suse.de>
364
365 * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
366 name.
367 (read_function_entry): Same. Don't allow name found via
368 DW_AT_abstract_origin or case DW_AT_specification to override linkage
369 name.
370
371 2019-01-09 Sandra Loosemore <sandra (a] codesourcery.com>
372
373 PR other/16615
374
375 * backtrace.h: Mechanically replace "can not" with "cannot".
376
377 2019-01-01 Jakub Jelinek <jakub (a] redhat.com>
378
379 Update copyright years.
380
381 2018-12-29 Gerald Pfeifer <gerald (a] pfeifer.com>
382
383 * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
384 in sed pattern.
385 * Makefile.in: Regenerate.
386
387 2018-12-28 Tom de Vries <tdevries (a] suse.de>
388
389 * dwarf.c (build_address_map): Reuse unused units.
390
391 2018-12-28 Tom de Vries <tdevries (a] suse.de>
392
393 * dwarf.c (build_address_map): Simplify by removing local variable
394 abbrevs.
395
396 2018-12-28 Ian Lance Taylor <iant (a] golang.org>
397 Tom de Vries <tdevries (a] suse.de>
398
399 PR libbacktrace/88063
400 * dwarf.c (free_unit_addrs_vector): Remove.
401 (build_address_map): Keep track of allocated units in vector. Free
402 allocated units and corresponding abbrevs upon failure. Remove now
403 redundant call to free_unit_addrs_vector. Free addrs vector upon
404 failure. Free allocated unit vector.
405
406 2018-12-28 Tom de Vries <tdevries (a] suse.de>
407
408 * dwarf.c (build_address_map): Free addrs vector upon failure.
409
410 2018-12-14 Tom de Vries <tdevries (a] suse.de>
411
412 PR testsuite/88491
413 * allocfail.sh: Remove "set -o pipefail".
414
415 2018-12-12 Tom de Vries <tdevries (a] suse.de>
416
417 * Makefile.am (TESTS): Add allocfail.sh.
418 (check_PROGRAMS): Add allocfail.
419 * Makefile.in: Regenerate.
420 * instrumented_alloc.c: New file. Redefine malloc and realloc.
421 Include alloc.c.
422 * allocfail.c: New file.
423 * allocfail.sh: New file.
424
425 2018-11-30 Tom de Vries <tdevries (a] suse.de>
426
427 * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
428 test_xcoff_64, test_pecoff and test_unknown.
429 * Makefile.in: Regenerate.
430 * test_format.c: New file.
431
432 2018-11-30 Tom de Vries <tdevries (a] suse.de>
433
434 * Makefile.am : Add _with_alloc version for each test in
435 check_PROGRAMS.
436 * Makefile.in: Regenerate.
437
438 2018-11-30 Tom de Vries <tdevries (a] suse.de>
439
440 * internal.h (backtrace_vector_free): New static inline fuction,
441 factored out of ...
442 * dwarf.c (read_line_info): ... here.
443
444 2018-11-28 Tom de Vries <tdevries (a] suse.de>
445
446 * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
447 failure.
448
449 2018-11-27 Tom de Vries <tdevries (a] suse.de>
450
451 * mmap.c (backtrace_vector_release): Same.
452 * unittest.c (test1): Add check.
453
454 2018-11-27 Tom de Vries <tdevries (a] suse.de>
455
456 * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
457 instead of realloc.
458 * Makefile.am (check_PROGRAMS): Add unittest.
459 * Makefile.in: Regenerate.
460 * unittest.c: New file.
461
462 2018-11-22 Tom de Vries <tdevries (a] suse.de>
463
464 * dwarf.c (read_initial_length): Factor out of ...
465 (build_address_map, read_line_info): ... here.
466
467 2018-11-21 Tom de Vries <tdevries (a] suse.de>
468
469 * dwarf.c (read_string): Factor out of ...
470 (read_attribute, read_line_header, read_line_program): ... here.
471
472 2018-10-31 Joseph Myers <joseph (a] codesourcery.com>
473
474 PR bootstrap/82856
475 * Makefile.am: Include multilib.am.
476 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
477 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
478
479 2018-10-05 Ian Lance Taylor <iant (a] golang.org>
480
481 PR libbacktrace/87529
482 * backtrace.h: Document that backtrace_create_state should be
483 called only once.
484
485 2018-08-05 Iain Buclaw <ibuclaw (a] gdcproject.org>
486
487 * configure.ac: Move define of HAVE_ZLIB into check for -lz.
488 * Makefile.in: Regenerate.
489 * config.h.in: Likewise.
490 * configure: Likewise.
491
492 2018-08-01 Tony Reix <tony.reix (a] atos.net>
493
494 * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
495 (struct xcoff_func, struct xcoff_func_vector): New structs.
496 (xcoff_syminfo): Drop leading dot from symbol name.
497 (xcoff_line_compare, xcoff_line_search): Remove.
498 (xcoff_func_compare, xcoff_func_search): New static functions.
499 (xcoff_lookup_pc): Search function table.
500 (xcoff_add_line, xcoff_process_linenos): Remove.
501 (xcoff_initialize_fileline): Build function table.
502
503 2018-06-21 Denis Khalikov <d.khalikov (a] partner.samsung.com>
504
505 PR other/86198
506 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
507 checking up to 36 bytes.
508
509 2018-04-24 H.J. Lu <hongjiu.lu (a] intel.com>
510
511 * configure: Regenerated.
512
513 2018-04-19 Jakub Jelinek <jakub (a] redhat.com>
514
515 * configure: Regenerated.
516
517 2018-04-17 Ian Lance Taylor <iant (a] golang.org>
518
519 * backtrace.c: Revert last two changes. Don't call mmap
520 directly.
521
522 2018-04-17 Ian Lance Taylor <iant (a] golang.org>
523
524 * backtrace.c: Include backtrace-supported.h before checking
525 BACKTRACE_USES_MALLOC.
526
527 2018-04-17 Ian Lance Taylor <iant (a] golang.org>
528
529 * backtrace.c (backtrace_full): When testing whether we can
530 allocate memory, call mmap directly, and munmap the memory.
531
532 2018-04-04 Jakub Jelinek <jakub (a] redhat.com>
533
534 PR other/85161
535 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
536 big endian, only use 32-bit loads if endianity macros are predefined
537 and indicate big or little endian.
538
539 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist (a] intel.com>
540
541 PR target/84148
542 * configure: Regenerate.
543
544 2018-02-15 Jakub Jelinek <jakub (a] redhat.com>
545
546 PR other/82368
547 * elf.c (SHT_PROGBITS): Undefine and define.
548
549 2018-02-14 Jakub Jelinek <jakub (a] redhat.com>
550
551 PR other/82368
552 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
553 (struct elf_ppc64_opd_data): New type.
554 (elf_initialize_syminfo): Add opd argument, handle symbols
555 pointing into the PowerPC64 ELFv1 .opd section.
556 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
557 to structure with .opd data to elf_initialize_syminfo.
558
559 2018-01-31 Ian Lance Taylor <iant (a] golang.org>
560
561 * elf.c (elf_add): Close descriptor if we use a debugfile.
562 * btest.c (check_open_files): New static function.
563 (main): Call check_open_files.
564
565 2018-01-25 Ian Lance Taylor <iant (a] golang.org>
566
567 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
568 desired CRC is zero.
569 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
570
571 2018-01-25 Ian Lance Taylor <iant (a] golang.org>
572
573 * pecoff.c (coff_add): Only release syms_view if it is valid.
574
575 2018-01-25 Ian Lance Taylor <iant (a] golang.org>
576
577 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
578
579 2018-01-24 Ian Lance Taylor <iant (a] golang.org>
580
581 * pecoff.c (coff_add): Use coff_read4, not memcpy.
582
583 2018-01-24 Ian Lance Taylor <iant (a] golang.org>
584
585 PR other/68239
586 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
587 on the free list.
588
589 2018-01-19 Tony Reix <tony.reix (a] atos.net>
590
591 * xcoff.c (xcoff_incl_compare): New function.
592 (xcoff_incl_search): New function.
593 (xcoff_process_linenos): Use bsearch to find include file.
594 (xcoff_initialize_fileline): Sort include file information.
595
596 2018-01-16 Ian Lance Taylor <iant (a] golang.org>
597
598 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
599 288.
600 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
601 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
602 (elf_zlib_default_table): Update.
603 (elf_zlib_default_dist_table): New static array.
604 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
605 for block type 1.
606 * ztest.c (struct zlib_test): Add uncompressed_len.
607 (tests): Initialize uncompressed_len field. Add new test case.
608 (test_samples): Use uncompressed_len field.
609
610 2018-01-03 Jakub Jelinek <jakub (a] redhat.com>
611
612 Update copyright years.
613
614 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist (a] intel.com>
615
616 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
617 * aclocal.m4: Regenerate.
618 * Makefile.in: Likewise.
619 * configure: Likewise.
620
621 2017-10-06 Ian Lance Taylor <iant (a] golang.org>
622
623 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
624 zlib uncompress function.
625
626 2017-10-05 Ian Lance Taylor <iant (a] golang.org>
627
628 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
629 Read a four byte integer.
630 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
631 boundary before ever calling elf_zlib_fetch.
632 * ztest.c (test_large): Simplify print statements a bit.
633
634 2017-10-02 Ian Lance Taylor <iant (a] golang.org>
635
636 * ztest.c: #include <errno.h>.
637 (TEST_TIMING): Don't define, don't test.
638 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
639 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
640 (ZLIB_CLOCK_GETTIME_ARG): Define.
641 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
642 * Makefile.am: Likewise.
643 * configure, Makefile.in: Rebuild.
644
645 2017-10-02 Thomas Schwinge <thomas (a] codesourcery.com>
646
647 PR other/67165
648 * Makefile.am: Append the content of clock_gettime_link to
649 ztest_LDADD.
650 * configure.ac: Test for the case that clock_gettime is in librt.
651 * Makefile.in: Regenerate.
652 * configure: Likewise.
653
654 PR other/67165
655 * configure.ac: Check for clock_gettime.
656 * config.h.in: Regenerate.
657 * configure: Likewise.
658 * ztest.c (average_time, test_large): Conditionalize test timing
659 on clock_gettime availability.
660
661 2017-09-29 Tony Reix <tony.reix (a] atos.net>
662
663 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
664 (STYP_DWARF, SSUBTYP_DW*): Define.
665 (enum dwarf_section): Define.
666 (struct dwsect_info): Define.
667 (xcoff_add): Look for DWARF sections, pass them to
668 backtrace_dwarf_add.
669
670 2017-09-28 Ian Lance Taylor <iant (a] golang.org>
671
672 PR other/67165
673 * elf.c (__builtin_prefetch): Define if not __GNUC__.
674 (unlikely): Define.
675 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
676 (b_elf_chdr): Define type.
677 (enum debug_section): Add ZDEBUG_xxx values.
678 (debug_section_names): Add names for new sections.
679 (struct debug_section_info): Add compressed field.
680 (elf_zlib_failed, elf_zlib_fetch): New static functions.
681 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
682 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
683 (HUFFMAN_SECONDARY_SHIFT): Define.
684 (ZDEBUG_TABLE_SIZE): Define.
685 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
686 (final_next_secondary): New static variable if
687 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
688 (elf_zlib_inflate_table): New static function.
689 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
690 function to produce fixed Huffman table.
691 (elf_zlib_default_table): New static variable.
692 (elf_zlib_inflate): New static function.
693 (elf_zlib_verify_checksum): Likewise.
694 (elf_zlib_inflate_and_verify): Likewise.
695 (elf_uncompress_zdebug): Likewise.
696 (elf_uncompress_chdr): Likewise.
697 (backtrace_uncompress_zdebug): New extern function.
698 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
699 sections, and uncompress them.
700 * internal.h (backtrace_compress_zdebug): Declare.
701 * ztest.c: New file.
702 * configure.ac: Check for -lz and check whether the linker
703 supports --compress-debug-sections.
704 * Makefile.am (ztest_SOURCES): New variable.
705 (ztest_CFLAGS, ztest_LDADD): New variables.
706 (check_PROGRAMS): Add ztest.
707 (ctestg_SOURCES): New variable.
708 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
709 (ctesta_SOURCES): New variable.
710 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
711 (check_PROGRAMS): Add ctestg and ctesta.
712 * configure, config.h.in, Makefile.in: Rebuild.
713
714 2017-09-22 Ian Lance Taylor <iant (a] golang.org>
715
716 PR sanitizer/77631
717 * configure.ac: Check for lstat and readlink.
718 * elf.c (lstat, readlink): Provide dummy versions if real versions
719 are not available.
720 * configure, config.h.in: Rebuild.
721
722 2017-09-21 Ian Lance Taylor <iant (a] google.com>
723
724 PR go/82284
725 * elf.c (backtrace_initialize): Set pd.exe_filename.
726
727 2017-09-20 Ian Lance Taylor <iant (a] golang.org>
728 Denis Khalikov <d.khalikov (a] partner.samsung.com>
729
730 PR sanitizer/77631
731 Support for external debug info.
732 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
733 (S_ISLNK): Define if not defined.
734 (xstrnlen): Define if strnlen is not available.
735 (b_elf_note): Define type.
736 (NT_GNU_BUILD_ID): Define macro.
737 (elf_crc32, elf_crc32_file): New static functions.
738 (elf_is_symlink, elf_readlink): New static functions.
739 (elf_open_debugfile_by_buildid): New static function.
740 (elf_try_debugfile): New static function.
741 (elf_find_debugfile_by_debuglink): New static function.
742 (elf_open_debugfile_by_debuglink): New static function.
743 (elf_add): Add filename and debuginfo parameters. Adjust all
744 callers. Look for external debug info notes, and try to fetch
745 debug info from external file.
746 (struct phdr_data): Add exe_filename field.
747 (phdr_callback): Pass filename to elf_add.
748 (backtrace_initialize): Add filename parameter.
749 * internal.h (backtrace_initialize): Add filename parameter.
750 * fileline.c (fileline_initialize): Pass filename to
751 backtrace_initialize.
752 * pecoff.c (fileline_initialize): Add unused filename parameter.
753 * unknown.c (fileline_initialize): Likewise.
754 * xcoff.c (fileline_initialize): Likewise.
755 * configure.ac: Check for objcopy --add-gnu-debuglink.
756 * Makefile.am (dtest): New test target.
757 * configure, Makefile.in: Rebuild.
758
759 2017-09-12 Steve Ellcey <sellcey (a] cavium.com>
760
761 PR other/81096
762 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
763 * Makefile.in: Regenerate.
764
765 2017-09-12 Steve Ellcey <sellcey (a] cavium.com>
766
767 PR other/81096
768 * libbacktrace/Makefile.in
769 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
770
771 2017-08-02 David Edelsohn <dje.gcc (a] gmail.com>
772
773 PR bootstrap/81638
774 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
775
776 2017-07-28 Tony Reix <tony.reix (a] atos.net>
777
778 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
779
780 2017-07-28 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
781
782 * fileline.c (fileline_initialize): Print pid_t as long.
783
784 2017-07-26 Tony Reix <tony.reix (a] atos.net>
785
786 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
787 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
788 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
789 * configure, config.h.in: Regenerate.
790
791 2017-07-21 Tony Reix <tony.reix (a] atos.net>
792
793 * filetype.awk: Add AIX XCOFF type detection.
794 * configure.ac: Recognize xcoff format.
795 * Makefile.am (FORMAT_FILES): Add xcoff.c.
796 * fileline.c: Include <unistd.h>.
797 (fileline_initialize): Add case for AIX procfs.
798 * xcoff.c: New file.
799 * configure, Makefile.in: Rebuild.
800
801 2017-06-21 Richard Biener <rguenther (a] suse.de>
802
803 * configure.ac: Add AC_SYS_LARGEFILE.
804 * config.h.in: Regenerate.
805 * configure: Likewise.
806
807 2017-06-11 Ian Lance Taylor <iant (a] golang.org>
808
809 * elf.c (backtrace_initialize): Always set *fileline_fn.
810 * ttest.c: New file.
811 * btest.c: Move support functions into testlib.c. Change calls to
812 check to pass file name.
813 * testlib.c: New file, copied from (part of) btest.c.
814 * testlib.h: New file, declarations for testlib.c.
815 * edtest.c: Use testlib.h and testlib.c.
816 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
817 * Makefile.am (btest_SOURCES): Add testlib.c.
818 (edtest_SOURCES): Likewise.
819 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
820 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
821 * configure, Makefile.in: Rebuild.
822
823 2017-05-19 Than McIntosh <thanm (a] google.com>
824
825 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
826 (read_line_header): Don't allocate dirs if dirs_count == 0.
827 * edtest.c: New file.
828 * edtest2.c: New file.
829 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
830 (check_PROGRAMS): Add edtest.
831 (edtest2_build.c, gen_edtest2_build): New targets.
832 * Makefile.in: Rebuild.
833
834 2017-03-08 Sam Thursfield <sam.thursfield (a] codethink.co.uk>
835
836 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
837 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
838
839 2017-01-01 Jakub Jelinek <jakub (a] redhat.com>
840
841 Update copyright years.
842
843 2016-11-15 Matthias Klose <doko (a] ubuntu.com>
844
845 * configure: Regenerate.
846
847 2016-09-11 Carlos Liam <carlos (a] aarzee.me>
848
849 * all: Remove meaningless trailing whitespace.
850
851 2016-05-18 Uros Bizjak <ubizjak (a] gmail.com>
852
853 PR target/71161
854 * elf.c (phdr_callback) [__i386__]: Add
855 __attribute__((__force_align_arg_pointer__)).
856
857 2016-03-02 Maxim Ostapenko <m.ostapenko (a] partner.samsung.com>
858
859 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
860 avoid possible crash.
861 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
862 missing debug info anymore.
863
864 2016-02-06 John David Anglin <danglin (a] gcc.gnu.org>
865
866 * mmap.c (MAP_FAILED): Define if not defined.
867
868 2016-01-04 Jakub Jelinek <jakub (a] redhat.com>
869
870 Update copyright years.
871
872 2015-12-18 Andris Pavenis <andris.pavenis (a] iki.fi>
873
874 * configure.ac: Specify that DJGPP do not have mmap
875 even when sys/mman.h exists.
876 * configure: Regenerate
877
878 2015-12-09 John David Anglin <danglin (a] gcc.gnu.org>
879
880 PR libgfortran/68115
881 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
882 * configure: Regenerate.
883 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
884 to void.
885
886 2015-09-17 Ian Lance Taylor <iant (a] google.com>
887
888 * posix.c (backtrace_open): Cast second argument of open() to int.
889
890 2015-09-11 Ian Lance Taylor <iant (a] google.com>
891
892 * Makefile.am (backtrace.lo): Depend on internal.h.
893 (sort.lo, stest.lo): Add explicit dependencies.
894 * Makefile.in: Rebuild.
895
896 2015-09-09 Hans-Peter Nilsson <hp (a] axis.com>
897
898 * backtrace.c: #include <sys/types.h>.
899
900 2015-09-08 Ian Lance Taylor <iant (a] google.com>
901
902 PR other/67457
903 * backtrace.c: #include "internal.h".
904 (struct backtrace_data): Add can_alloc field.
905 (unwind): If can_alloc is false, don't try to get file/line
906 information.
907 (backtrace_full): Set can_alloc field in bdata.
908 * alloc.c (backtrace_alloc): Don't call error_callback if it is
909 NULL.
910 * mmap.c (backtrace_alloc): Likewise.
911 * internal.h: Update comments for backtrace_alloc and
912 backtrace_free.
913
914 2015-09-08 Ian Lance Taylor <iant (a] google.com>
915
916 PR other/67457
917 * mmap.c (backtrace_alloc): Correct test for mmap failure.
918
919 2015-08-31 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com>
920
921 * configure.ac: For spu-*-* targets, set have_fcntl to no.
922 * configure: Regenerate.
923
924 2015-08-27 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com>
925
926 * configure.ac: Remove [disable-shared] argument to LT_INIT.
927 Remove setting PIC_FLAG when building as target library.
928 * configure: Regenerate.
929
930 2015-08-26 Hans-Peter Nilsson <hp (a] axis.com>
931
932 * configure.ac: Only compile with -fPIC if the target
933 supports it.
934 * configure: Regenerate.
935
936 2015-08-24 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com>
937
938 * configure.ac: Set have_mmap to no on spu-*-* targets.
939 * configure: Regenerate.
940
941 2015-08-13 Ian Lance Taylor <iant (a] google.com>
942
943 * dwarf.c (read_function_entry): Add vec_inlined parameter.
944 Change all callers.
945
946 2015-06-11 Martin Sebor <msebor (a] redhat.com>
947
948 PR sanitizer/65479
949 * dwarf.c (struct line): Add new field idx.
950 (line_compare): Use it.
951 (add_line): Set it.
952 (read_line_info): Reset it.
953
954 2015-05-29 Tristan Gingold <gingold (a] adacore.com>
955
956 * pecoff.c: New file.
957 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
958 * Makefile.in: Regenerate.
959 * filetype.awk: Detect pecoff.
960 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
961 Add pecoff.
962 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
963 true.
964 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
965 * configure: Regenerate.
966 * pecoff.c: New file.
967
968 2015-05-13 Michael Haubenwallner <michael.haubenwallner (a] ssi-schaefer.com>
969
970 * Makefile.in: Regenerated with automake-1.11.6.
971 * aclocal.m4: Likewise.
972 * configure: Likewise.
973
974 2015-01-24 Matthias Klose <doko (a] ubuntu.com>
975
976 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
977 * configure: Regenerate.
978
979 2015-01-05 Jakub Jelinek <jakub (a] redhat.com>
980
981 Update copyright years.
982
983 2014-11-21 H.J. Lu <hongjiu.lu (a] intel.com>
984
985 PR bootstrap/63784
986 * configure: Regenerated.
987
988 2014-11-11 David Malcolm <dmalcolm (a] redhat.com>
989
990 * ChangeLog.jit: New.
991
992 2014-11-11 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
993
994 PR target/63610
995 * configure: Regenerate.
996
997 2014-10-23 Ian Lance Taylor <iant (a] google.com>
998
999 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
1000 Fix to return void *.
1001
1002 2014-05-08 Ian Lance Taylor <iant (a] google.com>
1003
1004 * mmap.c (backtrace_free): If freeing a large aligned block of
1005 memory, call munmap rather than holding onto it.
1006 (backtrace_vector_grow): When growing a vector, double the number
1007 of pages requested. When releasing the old version of a grown
1008 vector, pass the correct size to backtrace_free.
1009
1010 2014-03-07 Ian Lance Taylor <iant (a] google.com>
1011
1012 * sort.c (backtrace_qsort): Use middle element as pivot.
1013
1014 2014-03-06 Ian Lance Taylor <iant (a] google.com>
1015
1016 * sort.c: New file.
1017 * stest.c: New file.
1018 * internal.h (backtrace_qsort): Declare.
1019 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
1020 (read_line_info, read_function_entry): Likewise.
1021 (read_function_info, build_dwarf_data): Likewise.
1022 * elf.c (elf_initialize_syminfo): Likewise.
1023 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
1024 (stest_SOURCES, stest_LDADD): Define.
1025 (check_PROGRAMS): Add stest.
1026
1027 2014-02-07 Misty De Meo <misty (a] brew.sh>
1028
1029 PR target/58710
1030 * configure.ac: Use AC_LINK_IFELSE in check for
1031 _Unwind_GetIPInfo.
1032 * configure: Regenerate.
1033
1034 2014-01-02 Richard Sandiford <rdsandiford (a] googlemail.com>
1035
1036 Update copyright years
1037
1038 2013-12-06 Jakub Jelinek <jakub (a] redhat.com>
1039
1040 * elf.c (ET_DYN): Undefine and define again.
1041 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
1042 return early -1 without closing the descriptor.
1043 (struct phdr_data): Add exe_descriptor.
1044 (phdr_callback): If pd->exe_descriptor is not -1, for very first
1045 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
1046 otherwise backtrace_close the exe_descriptor if not -1. Adjust
1047 call to elf_add.
1048 (backtrace_initialize): Adjust call to elf_add. If it returns
1049 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
1050
1051 2013-12-05 Ian Lance Taylor <iant (a] google.com>
1052
1053 * alloc.c (backtrace_vector_finish): Add error_callback and data
1054 parameters. Call backtrace_vector_release. Return address base.
1055 * mmap.c (backtrace_vector_finish): Add error_callback and data
1056 parameters. Return address base.
1057 * dwarf.c (read_function_info): Get new address base from
1058 backtrace_vector_finish.
1059 * internal.h (backtrace_vector_finish): Update declaration.
1060
1061 2013-11-27 Ian Lance Taylor <iant (a] google.com>
1062
1063 * dwarf.c (find_address_ranges): New static function, broken out
1064 of build_address_map.
1065 (build_address_map): Call it.
1066 * btest.c (check): Check for missing filename or function, rather
1067 than crashing.
1068 (f3): Check that enough frames were returned.
1069
1070 2013-11-19 Jakub Jelinek <jakub (a] redhat.com>
1071
1072 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
1073 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
1074 last argument.
1075 * btest.c (struct symdata): Add size field.
1076 (callback_three): Add symsize argument. Copy it to the data->size
1077 field.
1078 (f23): Set symdata.size to 0.
1079 (test5): Likewise. If sizeof (int) > 1, lookup address of
1080 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
1081 values.
1082
1083 * atomic.c: Include sys/types.h.
1084
1085 2013-11-18 Ian Lance Taylor <iant (a] google.com>
1086
1087 * configure.ac: Check for support of __atomic extensions.
1088 * internal.h: Declare or #define atomic functions for use in
1089 backtrace code.
1090 * atomic.c: New file.
1091 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
1092 (dwarf_fileline, backtrace_dwarf_add): Likewise.
1093 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
1094 (backtrace_initialize): Likewise.
1095 * fileline.c (fileline_initialize): Likewise.
1096 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
1097 * configure, config.h.in, Makefile.in: Rebuild.
1098
1099 2013-11-18 Jakub Jelinek <jakub (a] redhat.com>
1100
1101 * elf.c (SHN_UNDEF): Define.
1102 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
1103 with st_shndx == SHN_UNDEF. Add base_address to address fields.
1104 (elf_add): Adjust caller.
1105
1106 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
1107
1108 2013-11-16 Ian Lance Taylor <iant (a] google.com>
1109
1110 * backtrace.h (backtrace_create_state): Correct comment about
1111 threading.
1112
1113 2013-11-15 Ian Lance Taylor <iant (a] google.com>
1114
1115 * backtrace.h (backtrace_syminfo): Update comment and parameter
1116 name to take any address, not just a PC value.
1117 * elf.c (STT_OBJECT): Define.
1118 (elf_nosyms): Rename parameter pc to addr.
1119 (elf_symbol_search): Rename local variable pc to addr.
1120 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
1121 (elf_syminfo): Rename parameter pc to addr.
1122 * btest.c (global): New global variable.
1123 (test5): New test.
1124 (main): Call test5.
1125
1126 2013-10-17 Ian Lance Taylor <iant (a] google.com>
1127
1128 * elf.c (elf_add): Don't get the wrong offsets if a debug section
1129 is missing.
1130
1131 2013-10-15 David Malcolm <dmalcolm (a] redhat.com>
1132
1133 * configure.ac: Add --enable-host-shared, setting up
1134 pre-existing PIC_FLAG variable within Makefile.am et al.
1135 * configure: Regenerate.
1136
1137 2013-09-20 Alan Modra <amodra (a] gmail.com>
1138
1139 * configure: Regenerate.
1140
1141 2013-07-23 Alexander Monakov <amonakov (a] ispras.ru>
1142
1143 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
1144
1145 2013-07-23 Alexander Monakov <amonakov (a] ispras.ru>
1146
1147 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
1148 dl_iterate_phdr callbacks.
1149
1150 2013-03-25 Ian Lance Taylor <iant (a] google.com>
1151
1152 * alloc.c: #include <sys/types.h>.
1153 * mmap.c: Likewise.
1154
1155 2013-01-31 Ian Lance Taylor <iant (a] google.com>
1156
1157 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
1158 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
1159
1160 2013-01-25 Jakub Jelinek <jakub (a] redhat.com>
1161
1162 PR other/56076
1163 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
1164 attribute was not seen.
1165
1166 2013-01-16 Ian Lance Taylor <iant (a] google.com>
1167
1168 * dwarf.c (struct unit): Add filename and abs_filename fields.
1169 (build_address_map): Set new fields when reading unit.
1170 (dwarf_lookup_pc): If we don't find an entry in the line table,
1171 just return the main file name.
1172
1173 2013-01-14 Richard Sandiford <rdsandiford (a] googlemail.com>
1174
1175 Update copyright years.
1176
1177 2013-01-01 Ian Lance Taylor <iant (a] google.com>
1178
1179 PR bootstrap/54834
1180 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
1181 $(MULTIBUILDTOP)/../../gcc/include.
1182 * Makefile.in: Rebuild.
1183
1184 2013-01-01 Ian Lance Taylor <iant (a] google.com>
1185
1186 PR other/55536
1187 * mmap.c (backtrace_alloc): Don't call sync functions if not
1188 threaded.
1189 (backtrace_free): Likewise.
1190
1191 2012-12-12 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca>
1192
1193 * mmapio.c: Define MAP_FAILED if not defined.
1194
1195 2012-12-11 Jakub Jelinek <jakub (a] redhat.com>
1196
1197 PR bootstrap/54926
1198 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
1199 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
1200 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
1201 accepts it.
1202 * Makefile.in: Regenerated.
1203 * configure: Regenerated.
1204
1205 2012-12-07 Jakub Jelinek <jakub (a] redhat.com>
1206
1207 PR bootstrap/54926
1208 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
1209 * Makefile.in: Regenerated.
1210
1211 2012-11-20 Ian Lance Taylor <iant (a] google.com>
1212
1213 * dwarf.c (read_attribute): Always clear val.
1214
1215 2012-11-13 Ian Lance Taylor <iant (a] google.com>
1216
1217 PR other/55312
1218 * configure.ac: Only add -Werror if building a target library.
1219 * configure: Rebuild.
1220
1221 2012-11-12 Ian Lance Taylor <iant (a] google.com>
1222 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
1223 Gerald Pfeifer <gerald (a] pfeifer.com>
1224
1225 * configure.ac: Check for getexecname.
1226 * fileline.c: #include <errno.h>. Define getexecname if not
1227 available.
1228 (fileline_initialize): Try to find the executable in a few
1229 different ways.
1230 * print.c (error_callback): Only print the filename if it came
1231 from the backtrace state.
1232 * configure, config.h.in: Rebuild.
1233
1234 2012-10-29 Ian Lance Taylor <iant (a] google.com>
1235
1236 * mmap.c (backtrace_vector_release): Correct last patch: add
1237 aligned, not size.
1238
1239 2012-10-29 Ian Lance Taylor <iant (a] google.com>
1240
1241 * mmap.c (backtrace_vector_release): Make sure freed block is
1242 aligned on 8-byte boundary.
1243
1244 2012-10-26 Ian Lance Taylor <iant (a] google.com>
1245
1246 PR other/55087
1247 * posix.c (backtrace_open): Add does_not_exist parameter.
1248 * elf.c (phdr_callback): Do not warn if shared library could not
1249 be opened.
1250 * fileline.c (fileline_initialize): Update calls to
1251 backtrace_open.
1252 * internal.h (backtrace_open): Update declaration.
1253
1254 2012-10-26 Jack Howarth <howarth (a] bromo.med.uc.edu>
1255
1256 PR target/55061
1257 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
1258 * configure: Regenerate.
1259
1260 2012-10-24 Ian Lance Taylor <iant (a] google.com>
1261
1262 PR target/55061
1263 * configure.ac: Check whether -funwind-tables option works.
1264 * configure: Rebuild.
1265
1266 2012-10-11 Ian Lance Taylor <iant (a] google.com>
1267
1268 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
1269 * configure: Rebuild.
1270
1271 2012-10-10 Ian Lance Taylor <iant (a] google.com>
1272
1273 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
1274 lower case.
1275
1276 2012-10-10 Hans-Peter Nilsson <hp (a] bitrange.com>
1277
1278 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
1279
1280 2012-10-09 Ian Lance Taylor <iant (a] google.com>
1281
1282 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
1283 (backtrace_dwarf_add): Likewise.
1284
1285 2012-10-09 Ian Lance Taylor <iant (a] google.com>
1286
1287 Add support for tracing through shared libraries.
1288 * configure.ac: Check for link.h and dl_iterate_phdr.
1289 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
1290 ELF macros before #defining them.
1291 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
1292 dl_iterate_phdr.
1293 (struct elf_syminfo_data): Add next field.
1294 (elf_initialize_syminfo): Initialize next field.
1295 (elf_add_syminfo_data): New static function.
1296 (elf_add): New static function, broken out of
1297 backtrace_initialize. Call backtrace_dwarf_add instead of
1298 backtrace_dwarf_initialize.
1299 (struct phdr_data): Define.
1300 (phdr_callback): New static function.
1301 (backtrace_initialize): Call elf_add.
1302 * dwarf.c (struct dwarf_data): Add next and base_address fields.
1303 (add_unit_addr): Add base_address parameter. Change all callers.
1304 (add_unit_ranges, build_address_map): Likewise.
1305 (add_line): Add ddata parameter. Change all callers.
1306 (read_line_program, add_function_range): Likewise.
1307 (dwarf_lookup_pc): New static function, broken out of
1308 dwarf_fileline.
1309 (dwarf_fileline): Call dwarf_lookup_pc.
1310 (build_dwarf_data): New static function.
1311 (backtrace_dwarf_add): New function.
1312 (backtrace_dwarf_initialize): Remove.
1313 * internal.h (backtrace_dwarf_initialize): Don't declare.
1314 (backtrace_dwarf_add): Declare.
1315 * configure, config.h.in: Rebuild.
1316
1317 2012-10-04 Gerald Pfeifer <gerald (a] pfeifer.com>
1318
1319 * btest.c (f23): Avoid uninitialized variable warning.
1320
1321 2012-10-04 Ian Lance Taylor <iant (a] google.com>
1322
1323 * dwarf.c: If the system header files do not declare strnlen,
1324 provide our own version.
1325
1326 2012-10-03 Ian Lance Taylor <iant (a] google.com>
1327
1328 * dwarf.c (read_uleb128): Fix overflow test.
1329 (read_sleb128): Likewise.
1330 (build_address_map): Don't change unit_buf.start.
1331
1332 2012-10-02 Uros Bizjak <ubizjak (a] gmail.com>
1333
1334 PR other/54761
1335 * configure.ac (EXTRA_FLAGS): New.
1336 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
1337 * configure, Makefile.in: Regenerate.
1338
1339 2012-09-29 Ian Lance Taylor <iant (a] google.com>
1340
1341 PR other/54749
1342 * fileline.c (fileline_initialize): Pass errnum as -1 when
1343 reporting that we could not read executable information after a
1344 previous failure.
1345
1346 2012-09-27 Ian Lance Taylor <iant (a] google.com>
1347
1348 PR bootstrap/54732
1349 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
1350 * Makefile.am: Add dependencies for all objects.
1351 * configure, aclocal.m4, Makefile.in: Rebuild.
1352
1353 2012-09-27 Ian Lance Taylor <iant (a] google.com>
1354
1355 PR other/54726
1356 * elf.c (backtrace_initialize): Set *fileln_fn, not
1357 state->fileln_fn.
1358
1359 2012-09-19 Ian Lance Taylor <iant (a] google.com>
1360
1361 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
1362 as a target library.
1363 * configure: Rebuild.
1364
1365 2012-09-19 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
1366 Ian Lance Taylor <iant (a] google.com>
1367
1368 * configure.ac (GCC_HEADER_STDINT): Invoke.
1369 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
1370 * btest.c: Don't include <stdint.h>.
1371 * dwarf.c: Likewise.
1372 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
1373
1374 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1375
1376 PR bootstrap/54623
1377 * Makefile.am (AM_CPPFLAGS): Define.
1378 (AM_CFLAGS): Remove -I options.
1379 * Makefile.in: Rebuild.
1380
1381 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1382
1383 * posix.c (O_BINARY): Define if not defined.
1384 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
1385 HAVE_FCNTL is defined.
1386 * configure.ac: Test for the fcntl function.
1387 * configure, config.h.in: Rebuild.
1388
1389 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1390
1391 * btest.c (test1, test2, test3, test4): Add the unused attribute.
1392
1393 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1394
1395 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
1396
1397 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1398
1399 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
1400 * mmapio.c: Don't define _GNU_SOURCE.
1401 * configure, config.h.in: Rebuild.
1402
1403 2012-09-18 Ian Lance Taylor <iant (a] google.com>
1404
1405 * configure.ac: Check whether strnlen is declared.
1406 * dwarf.c: Declare strnlen if not declared.
1407 * configure, config.h.in: Rebuild.
1408
1409 2012-09-18 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
1410
1411 * fileline.c: Include <stdlib.h>.
1412 * mmap.c: Likewise.
1413
1414 2012-09-17 Ian Lance Taylor <iant (a] google.com>
1415
1416 PR bootstrap/54611
1417 * nounwind.c (backtrace_full): Rename from backtrace. Add state
1418 parameter.
1419
1420 2012-09-17 Gerald Pfeifer <gerald (a] pfeifer.com>
1421
1422 PR bootstrap/54611
1423 * nounwind.c (backtrace_simple): Add state parameter.
1424
1425 2012-09-17 Ian Lance Taylor <iant (a] google.com>
1426
1427 PR bootstrap/54609
1428 * unknown.c (unknown_fileline): Add state parameter, remove
1429 fileline_data parameter, name error_callback parameter.
1430 (backtrace_initialize): Add state parameter.
1431
1432 2012-09-17 Ian Lance Taylor <iant (a] google.com>
1433
1434 * Initial implementation.
1435
1437 Copyright (C) 2012-2020 Free Software Foundation, Inc.
1438
1439 Copying and distribution of this file, with or without modification,
1440 are permitted in any medium without royalty provided the copyright
1441 notice and this notice are preserved.
1442