1 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3 Update copyright years.
5 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
7 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
8 * aclocal.m4: Regenerate.
9 * Makefile.in: Likewise.
10 * configure: Likewise.
12 2017-10-06 Ian Lance Taylor <iant@golang.org>
14 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
15 zlib uncompress function.
17 2017-10-05 Ian Lance Taylor <iant@golang.org>
19 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
20 Read a four byte integer.
21 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
22 boundary before ever calling elf_zlib_fetch.
23 * ztest.c (test_large): Simplify print statements a bit.
25 2017-10-02 Ian Lance Taylor <iant@golang.org>
27 * ztest.c: #include <errno.h>.
28 (TEST_TIMING): Don't define, don't test.
29 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
30 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
31 (ZLIB_CLOCK_GETTIME_ARG): Define.
32 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
33 * Makefile.am: Likewise.
34 * configure, Makefile.in: Rebuild.
36 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
39 * Makefile.am: Append the content of clock_gettime_link to
41 * configure.ac: Test for the case that clock_gettime is in librt.
42 * Makefile.in: Regenerate.
43 * configure: Likewise.
46 * configure.ac: Check for clock_gettime.
47 * config.h.in: Regenerate.
48 * configure: Likewise.
49 * ztest.c (average_time, test_large): Conditionalize test timing
50 on clock_gettime availability.
52 2017-09-29 Tony Reix <tony.reix@atos.net>
54 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
55 (STYP_DWARF, SSUBTYP_DW*): Define.
56 (enum dwarf_section): Define.
57 (struct dwsect_info): Define.
58 (xcoff_add): Look for DWARF sections, pass them to
61 2017-09-28 Ian Lance Taylor <iant@golang.org>
64 * elf.c (__builtin_prefetch): Define if not __GNUC__.
66 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
67 (b_elf_chdr): Define type.
68 (enum debug_section): Add ZDEBUG_xxx values.
69 (debug_section_names): Add names for new sections.
70 (struct debug_section_info): Add compressed field.
71 (elf_zlib_failed, elf_zlib_fetch): New static functions.
72 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
73 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
74 (HUFFMAN_SECONDARY_SHIFT): Define.
75 (ZDEBUG_TABLE_SIZE): Define.
76 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
77 (final_next_secondary): New static variable if
78 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
79 (elf_zlib_inflate_table): New static function.
80 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
81 function to produce fixed Huffman table.
82 (elf_zlib_default_table): New static variable.
83 (elf_zlib_inflate): New static function.
84 (elf_zlib_verify_checksum): Likewise.
85 (elf_zlib_inflate_and_verify): Likewise.
86 (elf_uncompress_zdebug): Likewise.
87 (elf_uncompress_chdr): Likewise.
88 (backtrace_uncompress_zdebug): New extern function.
89 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
90 sections, and uncompress them.
91 * internal.h (backtrace_compress_zdebug): Declare.
93 * configure.ac: Check for -lz and check whether the linker
94 supports --compress-debug-sections.
95 * Makefile.am (ztest_SOURCES): New variable.
96 (ztest_CFLAGS, ztest_LDADD): New variables.
97 (check_PROGRAMS): Add ztest.
98 (ctestg_SOURCES): New variable.
99 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
100 (ctesta_SOURCES): New variable.
101 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
102 (check_PROGRAMS): Add ctestg and ctesta.
103 * configure, config.h.in, Makefile.in: Rebuild.
105 2017-09-22 Ian Lance Taylor <iant@golang.org>
108 * configure.ac: Check for lstat and readlink.
109 * elf.c (lstat, readlink): Provide dummy versions if real versions
111 * configure, config.h.in: Rebuild.
113 2017-09-21 Ian Lance Taylor <iant@google.com>
116 * elf.c (backtrace_initialize): Set pd.exe_filename.
118 2017-09-20 Ian Lance Taylor <iant@golang.org>
119 Denis Khalikov <d.khalikov@partner.samsung.com>
122 Support for external debug info.
123 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
124 (S_ISLNK): Define if not defined.
125 (xstrnlen): Define if strnlen is not available.
126 (b_elf_note): Define type.
127 (NT_GNU_BUILD_ID): Define macro.
128 (elf_crc32, elf_crc32_file): New static functions.
129 (elf_is_symlink, elf_readlink): New static functions.
130 (elf_open_debugfile_by_buildid): New static function.
131 (elf_try_debugfile): New static function.
132 (elf_find_debugfile_by_debuglink): New static function.
133 (elf_open_debugfile_by_debuglink): New static function.
134 (elf_add): Add filename and debuginfo parameters. Adjust all
135 callers. Look for external debug info notes, and try to fetch
136 debug info from external file.
137 (struct phdr_data): Add exe_filename field.
138 (phdr_callback): Pass filename to elf_add.
139 (backtrace_initialize): Add filename parameter.
140 * internal.h (backtrace_initialize): Add filename parameter.
141 * fileline.c (fileline_initialize): Pass filename to
142 backtrace_initialize.
143 * pecoff.c (fileline_initialize): Add unused filename parameter.
144 * unknown.c (fileline_initialize): Likewise.
145 * xcoff.c (fileline_initialize): Likewise.
146 * configure.ac: Check for objcopy --add-gnu-debuglink.
147 * Makefile.am (dtest): New test target.
148 * configure, Makefile.in: Rebuild.
150 2017-09-12 Steve Ellcey <sellcey@cavium.com>
153 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
154 * Makefile.in: Regenerate.
156 2017-09-12 Steve Ellcey <sellcey@cavium.com>
159 * libbacktrace/Makefile.in
160 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
162 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
165 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
167 2017-07-28 Tony Reix <tony.reix@atos.net>
169 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
171 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
173 * fileline.c (fileline_initialize): Print pid_t as long.
175 2017-07-26 Tony Reix <tony.reix@atos.net>
177 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
178 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
179 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
180 * configure, config.h.in: Regenerate.
182 2017-07-21 Tony Reix <tony.reix@atos.net>
184 * filetype.awk: Add AIX XCOFF type detection.
185 * configure.ac: Recognize xcoff format.
186 * Makefile.am (FORMAT_FILES): Add xcoff.c.
187 * fileline.c: Include <unistd.h>.
188 (fileline_initialize): Add case for AIX procfs.
190 * configure, Makefile.in: Rebuild.
192 2017-06-21 Richard Biener <rguenther@suse.de>
194 * configure.ac: Add AC_SYS_LARGEFILE.
195 * config.h.in: Regenerate.
196 * configure: Likewise.
198 2017-06-11 Ian Lance Taylor <iant@golang.org>
200 * elf.c (backtrace_initialize): Always set *fileline_fn.
202 * btest.c: Move support functions into testlib.c. Change calls to
203 check to pass file name.
204 * testlib.c: New file, copied from (part of) btest.c.
205 * testlib.h: New file, declarations for testlib.c.
206 * edtest.c: Use testlib.h and testlib.c.
207 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
208 * Makefile.am (btest_SOURCES): Add testlib.c.
209 (edtest_SOURCES): Likewise.
210 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
211 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
212 * configure, Makefile.in: Rebuild.
214 2017-05-19 Than McIntosh <thanm@google.com>
216 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
217 (read_line_header): Don't allocate dirs if dirs_count == 0.
218 * edtest.c: New file.
219 * edtest2.c: New file.
220 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
221 (check_PROGRAMS): Add edtest.
222 (edtest2_build.c, gen_edtest2_build): New targets.
223 * Makefile.in: Rebuild.
225 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
227 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
228 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
230 2017-01-01 Jakub Jelinek <jakub@redhat.com>
232 Update copyright years.
234 2016-11-15 Matthias Klose <doko@ubuntu.com>
236 * configure: Regenerate.
238 2016-09-11 Carlos Liam <carlos@aarzee.me>
240 * all: Remove meaningless trailing whitespace.
242 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
245 * elf.c (phdr_callback) [__i386__]: Add
246 __attribute__((__force_align_arg_pointer__)).
248 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
250 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
251 avoid possible crash.
252 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
253 missing debug info anymore.
255 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
257 * mmap.c (MAP_FAILED): Define if not defined.
259 2016-01-04 Jakub Jelinek <jakub@redhat.com>
261 Update copyright years.
263 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
265 * configure.ac: Specify that DJGPP do not have mmap
266 even when sys/mman.h exists.
267 * configure: Regenerate
269 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
272 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
273 * configure: Regenerate.
274 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
277 2015-09-17 Ian Lance Taylor <iant@google.com>
279 * posix.c (backtrace_open): Cast second argument of open() to int.
281 2015-09-11 Ian Lance Taylor <iant@google.com>
283 * Makefile.am (backtrace.lo): Depend on internal.h.
284 (sort.lo, stest.lo): Add explicit dependencies.
285 * Makefile.in: Rebuild.
287 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
289 * backtrace.c: #include <sys/types.h>.
291 2015-09-08 Ian Lance Taylor <iant@google.com>
294 * backtrace.c: #include "internal.h".
295 (struct backtrace_data): Add can_alloc field.
296 (unwind): If can_alloc is false, don't try to get file/line
298 (backtrace_full): Set can_alloc field in bdata.
299 * alloc.c (backtrace_alloc): Don't call error_callback if it is
301 * mmap.c (backtrace_alloc): Likewise.
302 * internal.h: Update comments for backtrace_alloc and
305 2015-09-08 Ian Lance Taylor <iant@google.com>
308 * mmap.c (backtrace_alloc): Correct test for mmap failure.
310 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
312 * configure.ac: For spu-*-* targets, set have_fcntl to no.
313 * configure: Regenerate.
315 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
317 * configure.ac: Remove [disable-shared] argument to LT_INIT.
318 Remove setting PIC_FLAG when building as target library.
319 * configure: Regenerate.
321 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
323 * configure.ac: Only compile with -fPIC if the target
325 * configure: Regenerate.
327 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
329 * configure.ac: Set have_mmap to no on spu-*-* targets.
330 * configure: Regenerate.
332 2015-08-13 Ian Lance Taylor <iant@google.com>
334 * dwarf.c (read_function_entry): Add vec_inlined parameter.
337 2015-06-11 Martin Sebor <msebor@redhat.com>
340 * dwarf.c (struct line): Add new field idx.
341 (line_compare): Use it.
343 (read_line_info): Reset it.
345 2015-05-29 Tristan Gingold <gingold@adacore.com>
347 * pecoff.c: New file.
348 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
349 * Makefile.in: Regenerate.
350 * filetype.awk: Detect pecoff.
351 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
353 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
355 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
356 * configure: Regenerate.
357 * pecoff.c: New file.
359 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
361 * Makefile.in: Regenerated with automake-1.11.6.
362 * aclocal.m4: Likewise.
363 * configure: Likewise.
365 2015-01-24 Matthias Klose <doko@ubuntu.com>
367 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
368 * configure: Regenerate.
370 2015-01-05 Jakub Jelinek <jakub@redhat.com>
372 Update copyright years.
374 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
377 * configure: Regenerated.
379 2014-11-11 David Malcolm <dmalcolm@redhat.com>
381 * ChangeLog.jit: New.
383 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
386 * configure: Regenerate.
388 2014-10-23 Ian Lance Taylor <iant@google.com>
390 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
391 Fix to return void *.
393 2014-05-08 Ian Lance Taylor <iant@google.com>
395 * mmap.c (backtrace_free): If freeing a large aligned block of
396 memory, call munmap rather than holding onto it.
397 (backtrace_vector_grow): When growing a vector, double the number
398 of pages requested. When releasing the old version of a grown
399 vector, pass the correct size to backtrace_free.
401 2014-03-07 Ian Lance Taylor <iant@google.com>
403 * sort.c (backtrace_qsort): Use middle element as pivot.
405 2014-03-06 Ian Lance Taylor <iant@google.com>
409 * internal.h (backtrace_qsort): Declare.
410 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
411 (read_line_info, read_function_entry): Likewise.
412 (read_function_info, build_dwarf_data): Likewise.
413 * elf.c (elf_initialize_syminfo): Likewise.
414 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
415 (stest_SOURCES, stest_LDADD): Define.
416 (check_PROGRAMS): Add stest.
418 2014-02-07 Misty De Meo <misty@brew.sh>
421 * configure.ac: Use AC_LINK_IFELSE in check for
423 * configure: Regenerate.
425 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
427 Update copyright years
429 2013-12-06 Jakub Jelinek <jakub@redhat.com>
431 * elf.c (ET_DYN): Undefine and define again.
432 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
433 return early -1 without closing the descriptor.
434 (struct phdr_data): Add exe_descriptor.
435 (phdr_callback): If pd->exe_descriptor is not -1, for very first
436 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
437 otherwise backtrace_close the exe_descriptor if not -1. Adjust
439 (backtrace_initialize): Adjust call to elf_add. If it returns
440 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
442 2013-12-05 Ian Lance Taylor <iant@google.com>
444 * alloc.c (backtrace_vector_finish): Add error_callback and data
445 parameters. Call backtrace_vector_release. Return address base.
446 * mmap.c (backtrace_vector_finish): Add error_callback and data
447 parameters. Return address base.
448 * dwarf.c (read_function_info): Get new address base from
449 backtrace_vector_finish.
450 * internal.h (backtrace_vector_finish): Update declaration.
452 2013-11-27 Ian Lance Taylor <iant@google.com>
454 * dwarf.c (find_address_ranges): New static function, broken out
455 of build_address_map.
456 (build_address_map): Call it.
457 * btest.c (check): Check for missing filename or function, rather
459 (f3): Check that enough frames were returned.
461 2013-11-19 Jakub Jelinek <jakub@redhat.com>
463 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
464 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
466 * btest.c (struct symdata): Add size field.
467 (callback_three): Add symsize argument. Copy it to the data->size
469 (f23): Set symdata.size to 0.
470 (test5): Likewise. If sizeof (int) > 1, lookup address of
471 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
474 * atomic.c: Include sys/types.h.
476 2013-11-18 Ian Lance Taylor <iant@google.com>
478 * configure.ac: Check for support of __atomic extensions.
479 * internal.h: Declare or #define atomic functions for use in
481 * atomic.c: New file.
482 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
483 (dwarf_fileline, backtrace_dwarf_add): Likewise.
484 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
485 (backtrace_initialize): Likewise.
486 * fileline.c (fileline_initialize): Likewise.
487 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
488 * configure, config.h.in, Makefile.in: Rebuild.
490 2013-11-18 Jakub Jelinek <jakub@redhat.com>
492 * elf.c (SHN_UNDEF): Define.
493 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
494 with st_shndx == SHN_UNDEF. Add base_address to address fields.
495 (elf_add): Adjust caller.
497 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
499 2013-11-16 Ian Lance Taylor <iant@google.com>
501 * backtrace.h (backtrace_create_state): Correct comment about
504 2013-11-15 Ian Lance Taylor <iant@google.com>
506 * backtrace.h (backtrace_syminfo): Update comment and parameter
507 name to take any address, not just a PC value.
508 * elf.c (STT_OBJECT): Define.
509 (elf_nosyms): Rename parameter pc to addr.
510 (elf_symbol_search): Rename local variable pc to addr.
511 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
512 (elf_syminfo): Rename parameter pc to addr.
513 * btest.c (global): New global variable.
517 2013-10-17 Ian Lance Taylor <iant@google.com>
519 * elf.c (elf_add): Don't get the wrong offsets if a debug section
522 2013-10-15 David Malcolm <dmalcolm@redhat.com>
524 * configure.ac: Add --enable-host-shared, setting up
525 pre-existing PIC_FLAG variable within Makefile.am et al.
526 * configure: Regenerate.
528 2013-09-20 Alan Modra <amodra@gmail.com>
530 * configure: Regenerate.
532 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
534 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
536 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
538 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
539 dl_iterate_phdr callbacks.
541 2013-03-25 Ian Lance Taylor <iant@google.com>
543 * alloc.c: #include <sys/types.h>.
546 2013-01-31 Ian Lance Taylor <iant@google.com>
548 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
549 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
551 2013-01-25 Jakub Jelinek <jakub@redhat.com>
554 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
555 attribute was not seen.
557 2013-01-16 Ian Lance Taylor <iant@google.com>
559 * dwarf.c (struct unit): Add filename and abs_filename fields.
560 (build_address_map): Set new fields when reading unit.
561 (dwarf_lookup_pc): If we don't find an entry in the line table,
562 just return the main file name.
564 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
566 Update copyright years.
568 2013-01-01 Ian Lance Taylor <iant@google.com>
571 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
572 $(MULTIBUILDTOP)/../../gcc/include.
573 * Makefile.in: Rebuild.
575 2013-01-01 Ian Lance Taylor <iant@google.com>
578 * mmap.c (backtrace_alloc): Don't call sync functions if not
580 (backtrace_free): Likewise.
582 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
584 * mmapio.c: Define MAP_FAILED if not defined.
586 2012-12-11 Jakub Jelinek <jakub@redhat.com>
589 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
590 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
591 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
593 * Makefile.in: Regenerated.
594 * configure: Regenerated.
596 2012-12-07 Jakub Jelinek <jakub@redhat.com>
599 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
600 * Makefile.in: Regenerated.
602 2012-11-20 Ian Lance Taylor <iant@google.com>
604 * dwarf.c (read_attribute): Always clear val.
606 2012-11-13 Ian Lance Taylor <iant@google.com>
609 * configure.ac: Only add -Werror if building a target library.
610 * configure: Rebuild.
612 2012-11-12 Ian Lance Taylor <iant@google.com>
613 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
614 Gerald Pfeifer <gerald@pfeifer.com>
616 * configure.ac: Check for getexecname.
617 * fileline.c: #include <errno.h>. Define getexecname if not
619 (fileline_initialize): Try to find the executable in a few
621 * print.c (error_callback): Only print the filename if it came
622 from the backtrace state.
623 * configure, config.h.in: Rebuild.
625 2012-10-29 Ian Lance Taylor <iant@google.com>
627 * mmap.c (backtrace_vector_release): Correct last patch: add
630 2012-10-29 Ian Lance Taylor <iant@google.com>
632 * mmap.c (backtrace_vector_release): Make sure freed block is
633 aligned on 8-byte boundary.
635 2012-10-26 Ian Lance Taylor <iant@google.com>
638 * posix.c (backtrace_open): Add does_not_exist parameter.
639 * elf.c (phdr_callback): Do not warn if shared library could not
641 * fileline.c (fileline_initialize): Update calls to
643 * internal.h (backtrace_open): Update declaration.
645 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
648 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
649 * configure: Regenerate.
651 2012-10-24 Ian Lance Taylor <iant@google.com>
654 * configure.ac: Check whether -funwind-tables option works.
655 * configure: Rebuild.
657 2012-10-11 Ian Lance Taylor <iant@google.com>
659 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
660 * configure: Rebuild.
662 2012-10-10 Ian Lance Taylor <iant@google.com>
664 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
667 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
669 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
671 2012-10-09 Ian Lance Taylor <iant@google.com>
673 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
674 (backtrace_dwarf_add): Likewise.
676 2012-10-09 Ian Lance Taylor <iant@google.com>
678 Add support for tracing through shared libraries.
679 * configure.ac: Check for link.h and dl_iterate_phdr.
680 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
681 ELF macros before #defining them.
682 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
684 (struct elf_syminfo_data): Add next field.
685 (elf_initialize_syminfo): Initialize next field.
686 (elf_add_syminfo_data): New static function.
687 (elf_add): New static function, broken out of
688 backtrace_initialize. Call backtrace_dwarf_add instead of
689 backtrace_dwarf_initialize.
690 (struct phdr_data): Define.
691 (phdr_callback): New static function.
692 (backtrace_initialize): Call elf_add.
693 * dwarf.c (struct dwarf_data): Add next and base_address fields.
694 (add_unit_addr): Add base_address parameter. Change all callers.
695 (add_unit_ranges, build_address_map): Likewise.
696 (add_line): Add ddata parameter. Change all callers.
697 (read_line_program, add_function_range): Likewise.
698 (dwarf_lookup_pc): New static function, broken out of
700 (dwarf_fileline): Call dwarf_lookup_pc.
701 (build_dwarf_data): New static function.
702 (backtrace_dwarf_add): New function.
703 (backtrace_dwarf_initialize): Remove.
704 * internal.h (backtrace_dwarf_initialize): Don't declare.
705 (backtrace_dwarf_add): Declare.
706 * configure, config.h.in: Rebuild.
708 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
710 * btest.c (f23): Avoid uninitialized variable warning.
712 2012-10-04 Ian Lance Taylor <iant@google.com>
714 * dwarf.c: If the system header files do not declare strnlen,
715 provide our own version.
717 2012-10-03 Ian Lance Taylor <iant@google.com>
719 * dwarf.c (read_uleb128): Fix overflow test.
720 (read_sleb128): Likewise.
721 (build_address_map): Don't change unit_buf.start.
723 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
726 * configure.ac (EXTRA_FLAGS): New.
727 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
728 * configure, Makefile.in: Regenerate.
730 2012-09-29 Ian Lance Taylor <iant@google.com>
733 * fileline.c (fileline_initialize): Pass errnum as -1 when
734 reporting that we could not read executable information after a
737 2012-09-27 Ian Lance Taylor <iant@google.com>
740 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
741 * Makefile.am: Add dependencies for all objects.
742 * configure, aclocal.m4, Makefile.in: Rebuild.
744 2012-09-27 Ian Lance Taylor <iant@google.com>
747 * elf.c (backtrace_initialize): Set *fileln_fn, not
750 2012-09-19 Ian Lance Taylor <iant@google.com>
752 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
754 * configure: Rebuild.
756 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
757 Ian Lance Taylor <iant@google.com>
759 * configure.ac (GCC_HEADER_STDINT): Invoke.
760 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
761 * btest.c: Don't include <stdint.h>.
763 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
765 2012-09-18 Ian Lance Taylor <iant@google.com>
768 * Makefile.am (AM_CPPFLAGS): Define.
769 (AM_CFLAGS): Remove -I options.
770 * Makefile.in: Rebuild.
772 2012-09-18 Ian Lance Taylor <iant@google.com>
774 * posix.c (O_BINARY): Define if not defined.
775 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
776 HAVE_FCNTL is defined.
777 * configure.ac: Test for the fcntl function.
778 * configure, config.h.in: Rebuild.
780 2012-09-18 Ian Lance Taylor <iant@google.com>
782 * btest.c (test1, test2, test3, test4): Add the unused attribute.
784 2012-09-18 Ian Lance Taylor <iant@google.com>
786 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
788 2012-09-18 Ian Lance Taylor <iant@google.com>
790 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
791 * mmapio.c: Don't define _GNU_SOURCE.
792 * configure, config.h.in: Rebuild.
794 2012-09-18 Ian Lance Taylor <iant@google.com>
796 * configure.ac: Check whether strnlen is declared.
797 * dwarf.c: Declare strnlen if not declared.
798 * configure, config.h.in: Rebuild.
800 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802 * fileline.c: Include <stdlib.h>.
805 2012-09-17 Ian Lance Taylor <iant@google.com>
808 * nounwind.c (backtrace_full): Rename from backtrace. Add state
811 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
814 * nounwind.c (backtrace_simple): Add state parameter.
816 2012-09-17 Ian Lance Taylor <iant@google.com>
819 * unknown.c (unknown_fileline): Add state parameter, remove
820 fileline_data parameter, name error_callback parameter.
821 (backtrace_initialize): Add state parameter.
823 2012-09-17 Ian Lance Taylor <iant@google.com>
825 * Initial implementation.
827 Copyright (C) 2012-2018 Free Software Foundation, Inc.
829 Copying and distribution of this file, with or without modification,
830 are permitted in any medium without royalty provided the copyright
831 notice and this notice are preserved.