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