1 2017-10-06 Ian Lance Taylor <iant@golang.org>
3 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
4 zlib uncompress function.
6 2017-10-05 Ian Lance Taylor <iant@golang.org>
8 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
9 Read a four byte integer.
10 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
11 boundary before ever calling elf_zlib_fetch.
12 * ztest.c (test_large): Simplify print statements a bit.
14 2017-10-02 Ian Lance Taylor <iant@golang.org>
16 * ztest.c: #include <errno.h>.
17 (TEST_TIMING): Don't define, don't test.
18 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
19 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
20 (ZLIB_CLOCK_GETTIME_ARG): Define.
21 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
22 * Makefile.am: Likewise.
23 * configure, Makefile.in: Rebuild.
25 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
28 * Makefile.am: Append the content of clock_gettime_link to
30 * configure.ac: Test for the case that clock_gettime is in librt.
31 * Makefile.in: Regenerate.
32 * configure: Likewise.
35 * configure.ac: Check for clock_gettime.
36 * config.h.in: Regenerate.
37 * configure: Likewise.
38 * ztest.c (average_time, test_large): Conditionalize test timing
39 on clock_gettime availability.
41 2017-09-29 Tony Reix <tony.reix@atos.net>
43 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
44 (STYP_DWARF, SSUBTYP_DW*): Define.
45 (enum dwarf_section): Define.
46 (struct dwsect_info): Define.
47 (xcoff_add): Look for DWARF sections, pass them to
50 2017-09-28 Ian Lance Taylor <iant@golang.org>
53 * elf.c (__builtin_prefetch): Define if not __GNUC__.
55 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
56 (b_elf_chdr): Define type.
57 (enum debug_section): Add ZDEBUG_xxx values.
58 (debug_section_names): Add names for new sections.
59 (struct debug_section_info): Add compressed field.
60 (elf_zlib_failed, elf_zlib_fetch): New static functions.
61 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
62 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
63 (HUFFMAN_SECONDARY_SHIFT): Define.
64 (ZDEBUG_TABLE_SIZE): Define.
65 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
66 (final_next_secondary): New static variable if
67 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
68 (elf_zlib_inflate_table): New static function.
69 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
70 function to produce fixed Huffman table.
71 (elf_zlib_default_table): New static variable.
72 (elf_zlib_inflate): New static function.
73 (elf_zlib_verify_checksum): Likewise.
74 (elf_zlib_inflate_and_verify): Likewise.
75 (elf_uncompress_zdebug): Likewise.
76 (elf_uncompress_chdr): Likewise.
77 (backtrace_uncompress_zdebug): New extern function.
78 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
79 sections, and uncompress them.
80 * internal.h (backtrace_compress_zdebug): Declare.
82 * configure.ac: Check for -lz and check whether the linker
83 supports --compress-debug-sections.
84 * Makefile.am (ztest_SOURCES): New variable.
85 (ztest_CFLAGS, ztest_LDADD): New variables.
86 (check_PROGRAMS): Add ztest.
87 (ctestg_SOURCES): New variable.
88 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
89 (ctesta_SOURCES): New variable.
90 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
91 (check_PROGRAMS): Add ctestg and ctesta.
92 * configure, config.h.in, Makefile.in: Rebuild.
94 2017-09-22 Ian Lance Taylor <iant@golang.org>
97 * configure.ac: Check for lstat and readlink.
98 * elf.c (lstat, readlink): Provide dummy versions if real versions
100 * configure, config.h.in: Rebuild.
102 2017-09-21 Ian Lance Taylor <iant@google.com>
105 * elf.c (backtrace_initialize): Set pd.exe_filename.
107 2017-09-20 Ian Lance Taylor <iant@golang.org>
108 Denis Khalikov <d.khalikov@partner.samsung.com>
111 Support for external debug info.
112 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
113 (S_ISLNK): Define if not defined.
114 (xstrnlen): Define if strnlen is not available.
115 (b_elf_note): Define type.
116 (NT_GNU_BUILD_ID): Define macro.
117 (elf_crc32, elf_crc32_file): New static functions.
118 (elf_is_symlink, elf_readlink): New static functions.
119 (elf_open_debugfile_by_buildid): New static function.
120 (elf_try_debugfile): New static function.
121 (elf_find_debugfile_by_debuglink): New static function.
122 (elf_open_debugfile_by_debuglink): New static function.
123 (elf_add): Add filename and debuginfo parameters. Adjust all
124 callers. Look for external debug info notes, and try to fetch
125 debug info from external file.
126 (struct phdr_data): Add exe_filename field.
127 (phdr_callback): Pass filename to elf_add.
128 (backtrace_initialize): Add filename parameter.
129 * internal.h (backtrace_initialize): Add filename parameter.
130 * fileline.c (fileline_initialize): Pass filename to
131 backtrace_initialize.
132 * pecoff.c (fileline_initialize): Add unused filename parameter.
133 * unknown.c (fileline_initialize): Likewise.
134 * xcoff.c (fileline_initialize): Likewise.
135 * configure.ac: Check for objcopy --add-gnu-debuglink.
136 * Makefile.am (dtest): New test target.
137 * configure, Makefile.in: Rebuild.
139 2017-09-12 Steve Ellcey <sellcey@cavium.com>
142 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
143 * Makefile.in: Regenerate.
145 2017-09-12 Steve Ellcey <sellcey@cavium.com>
148 * libbacktrace/Makefile.in
149 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
151 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
154 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
156 2017-07-28 Tony Reix <tony.reix@atos.net>
158 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
160 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
162 * fileline.c (fileline_initialize): Print pid_t as long.
164 2017-07-26 Tony Reix <tony.reix@atos.net>
166 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
167 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
168 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
169 * configure, config.h.in: Regenerate.
171 2017-07-21 Tony Reix <tony.reix@atos.net>
173 * filetype.awk: Add AIX XCOFF type detection.
174 * configure.ac: Recognize xcoff format.
175 * Makefile.am (FORMAT_FILES): Add xcoff.c.
176 * fileline.c: Include <unistd.h>.
177 (fileline_initialize): Add case for AIX procfs.
179 * configure, Makefile.in: Rebuild.
181 2017-06-21 Richard Biener <rguenther@suse.de>
183 * configure.ac: Add AC_SYS_LARGEFILE.
184 * config.h.in: Regenerate.
185 * configure: Likewise.
187 2017-06-11 Ian Lance Taylor <iant@golang.org>
189 * elf.c (backtrace_initialize): Always set *fileline_fn.
191 * btest.c: Move support functions into testlib.c. Change calls to
192 check to pass file name.
193 * testlib.c: New file, copied from (part of) btest.c.
194 * testlib.h: New file, declarations for testlib.c.
195 * edtest.c: Use testlib.h and testlib.c.
196 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
197 * Makefile.am (btest_SOURCES): Add testlib.c.
198 (edtest_SOURCES): Likewise.
199 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
200 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
201 * configure, Makefile.in: Rebuild.
203 2017-05-19 Than McIntosh <thanm@google.com>
205 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
206 (read_line_header): Don't allocate dirs if dirs_count == 0.
207 * edtest.c: New file.
208 * edtest2.c: New file.
209 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
210 (check_PROGRAMS): Add edtest.
211 (edtest2_build.c, gen_edtest2_build): New targets.
212 * Makefile.in: Rebuild.
214 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
216 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
217 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
219 2017-01-01 Jakub Jelinek <jakub@redhat.com>
221 Update copyright years.
223 2016-11-15 Matthias Klose <doko@ubuntu.com>
225 * configure: Regenerate.
227 2016-09-11 Carlos Liam <carlos@aarzee.me>
229 * all: Remove meaningless trailing whitespace.
231 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
234 * elf.c (phdr_callback) [__i386__]: Add
235 __attribute__((__force_align_arg_pointer__)).
237 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
239 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
240 avoid possible crash.
241 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
242 missing debug info anymore.
244 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
246 * mmap.c (MAP_FAILED): Define if not defined.
248 2016-01-04 Jakub Jelinek <jakub@redhat.com>
250 Update copyright years.
252 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
254 * configure.ac: Specify that DJGPP do not have mmap
255 even when sys/mman.h exists.
256 * configure: Regenerate
258 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
261 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
262 * configure: Regenerate.
263 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
266 2015-09-17 Ian Lance Taylor <iant@google.com>
268 * posix.c (backtrace_open): Cast second argument of open() to int.
270 2015-09-11 Ian Lance Taylor <iant@google.com>
272 * Makefile.am (backtrace.lo): Depend on internal.h.
273 (sort.lo, stest.lo): Add explicit dependencies.
274 * Makefile.in: Rebuild.
276 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
278 * backtrace.c: #include <sys/types.h>.
280 2015-09-08 Ian Lance Taylor <iant@google.com>
283 * backtrace.c: #include "internal.h".
284 (struct backtrace_data): Add can_alloc field.
285 (unwind): If can_alloc is false, don't try to get file/line
287 (backtrace_full): Set can_alloc field in bdata.
288 * alloc.c (backtrace_alloc): Don't call error_callback if it is
290 * mmap.c (backtrace_alloc): Likewise.
291 * internal.h: Update comments for backtrace_alloc and
294 2015-09-08 Ian Lance Taylor <iant@google.com>
297 * mmap.c (backtrace_alloc): Correct test for mmap failure.
299 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
301 * configure.ac: For spu-*-* targets, set have_fcntl to no.
302 * configure: Regenerate.
304 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
306 * configure.ac: Remove [disable-shared] argument to LT_INIT.
307 Remove setting PIC_FLAG when building as target library.
308 * configure: Regenerate.
310 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
312 * configure.ac: Only compile with -fPIC if the target
314 * configure: Regenerate.
316 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
318 * configure.ac: Set have_mmap to no on spu-*-* targets.
319 * configure: Regenerate.
321 2015-08-13 Ian Lance Taylor <iant@google.com>
323 * dwarf.c (read_function_entry): Add vec_inlined parameter.
326 2015-06-11 Martin Sebor <msebor@redhat.com>
329 * dwarf.c (struct line): Add new field idx.
330 (line_compare): Use it.
332 (read_line_info): Reset it.
334 2015-05-29 Tristan Gingold <gingold@adacore.com>
336 * pecoff.c: New file.
337 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
338 * Makefile.in: Regenerate.
339 * filetype.awk: Detect pecoff.
340 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
342 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
344 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
345 * configure: Regenerate.
346 * pecoff.c: New file.
348 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
350 * Makefile.in: Regenerated with automake-1.11.6.
351 * aclocal.m4: Likewise.
352 * configure: Likewise.
354 2015-01-24 Matthias Klose <doko@ubuntu.com>
356 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
357 * configure: Regenerate.
359 2015-01-05 Jakub Jelinek <jakub@redhat.com>
361 Update copyright years.
363 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
366 * configure: Regenerated.
368 2014-11-11 David Malcolm <dmalcolm@redhat.com>
370 * ChangeLog.jit: New.
372 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
375 * configure: Regenerate.
377 2014-10-23 Ian Lance Taylor <iant@google.com>
379 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
380 Fix to return void *.
382 2014-05-08 Ian Lance Taylor <iant@google.com>
384 * mmap.c (backtrace_free): If freeing a large aligned block of
385 memory, call munmap rather than holding onto it.
386 (backtrace_vector_grow): When growing a vector, double the number
387 of pages requested. When releasing the old version of a grown
388 vector, pass the correct size to backtrace_free.
390 2014-03-07 Ian Lance Taylor <iant@google.com>
392 * sort.c (backtrace_qsort): Use middle element as pivot.
394 2014-03-06 Ian Lance Taylor <iant@google.com>
398 * internal.h (backtrace_qsort): Declare.
399 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
400 (read_line_info, read_function_entry): Likewise.
401 (read_function_info, build_dwarf_data): Likewise.
402 * elf.c (elf_initialize_syminfo): Likewise.
403 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
404 (stest_SOURCES, stest_LDADD): Define.
405 (check_PROGRAMS): Add stest.
407 2014-02-07 Misty De Meo <misty@brew.sh>
410 * configure.ac: Use AC_LINK_IFELSE in check for
412 * configure: Regenerate.
414 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
416 Update copyright years
418 2013-12-06 Jakub Jelinek <jakub@redhat.com>
420 * elf.c (ET_DYN): Undefine and define again.
421 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
422 return early -1 without closing the descriptor.
423 (struct phdr_data): Add exe_descriptor.
424 (phdr_callback): If pd->exe_descriptor is not -1, for very first
425 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
426 otherwise backtrace_close the exe_descriptor if not -1. Adjust
428 (backtrace_initialize): Adjust call to elf_add. If it returns
429 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
431 2013-12-05 Ian Lance Taylor <iant@google.com>
433 * alloc.c (backtrace_vector_finish): Add error_callback and data
434 parameters. Call backtrace_vector_release. Return address base.
435 * mmap.c (backtrace_vector_finish): Add error_callback and data
436 parameters. Return address base.
437 * dwarf.c (read_function_info): Get new address base from
438 backtrace_vector_finish.
439 * internal.h (backtrace_vector_finish): Update declaration.
441 2013-11-27 Ian Lance Taylor <iant@google.com>
443 * dwarf.c (find_address_ranges): New static function, broken out
444 of build_address_map.
445 (build_address_map): Call it.
446 * btest.c (check): Check for missing filename or function, rather
448 (f3): Check that enough frames were returned.
450 2013-11-19 Jakub Jelinek <jakub@redhat.com>
452 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
453 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
455 * btest.c (struct symdata): Add size field.
456 (callback_three): Add symsize argument. Copy it to the data->size
458 (f23): Set symdata.size to 0.
459 (test5): Likewise. If sizeof (int) > 1, lookup address of
460 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
463 * atomic.c: Include sys/types.h.
465 2013-11-18 Ian Lance Taylor <iant@google.com>
467 * configure.ac: Check for support of __atomic extensions.
468 * internal.h: Declare or #define atomic functions for use in
470 * atomic.c: New file.
471 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
472 (dwarf_fileline, backtrace_dwarf_add): Likewise.
473 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
474 (backtrace_initialize): Likewise.
475 * fileline.c (fileline_initialize): Likewise.
476 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
477 * configure, config.h.in, Makefile.in: Rebuild.
479 2013-11-18 Jakub Jelinek <jakub@redhat.com>
481 * elf.c (SHN_UNDEF): Define.
482 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
483 with st_shndx == SHN_UNDEF. Add base_address to address fields.
484 (elf_add): Adjust caller.
486 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
488 2013-11-16 Ian Lance Taylor <iant@google.com>
490 * backtrace.h (backtrace_create_state): Correct comment about
493 2013-11-15 Ian Lance Taylor <iant@google.com>
495 * backtrace.h (backtrace_syminfo): Update comment and parameter
496 name to take any address, not just a PC value.
497 * elf.c (STT_OBJECT): Define.
498 (elf_nosyms): Rename parameter pc to addr.
499 (elf_symbol_search): Rename local variable pc to addr.
500 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
501 (elf_syminfo): Rename parameter pc to addr.
502 * btest.c (global): New global variable.
506 2013-10-17 Ian Lance Taylor <iant@google.com>
508 * elf.c (elf_add): Don't get the wrong offsets if a debug section
511 2013-10-15 David Malcolm <dmalcolm@redhat.com>
513 * configure.ac: Add --enable-host-shared, setting up
514 pre-existing PIC_FLAG variable within Makefile.am et al.
515 * configure: Regenerate.
517 2013-09-20 Alan Modra <amodra@gmail.com>
519 * configure: Regenerate.
521 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
523 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
525 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
527 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
528 dl_iterate_phdr callbacks.
530 2013-03-25 Ian Lance Taylor <iant@google.com>
532 * alloc.c: #include <sys/types.h>.
535 2013-01-31 Ian Lance Taylor <iant@google.com>
537 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
538 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
540 2013-01-25 Jakub Jelinek <jakub@redhat.com>
543 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
544 attribute was not seen.
546 2013-01-16 Ian Lance Taylor <iant@google.com>
548 * dwarf.c (struct unit): Add filename and abs_filename fields.
549 (build_address_map): Set new fields when reading unit.
550 (dwarf_lookup_pc): If we don't find an entry in the line table,
551 just return the main file name.
553 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
555 Update copyright years.
557 2013-01-01 Ian Lance Taylor <iant@google.com>
560 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
561 $(MULTIBUILDTOP)/../../gcc/include.
562 * Makefile.in: Rebuild.
564 2013-01-01 Ian Lance Taylor <iant@google.com>
567 * mmap.c (backtrace_alloc): Don't call sync functions if not
569 (backtrace_free): Likewise.
571 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
573 * mmapio.c: Define MAP_FAILED if not defined.
575 2012-12-11 Jakub Jelinek <jakub@redhat.com>
578 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
579 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
580 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
582 * Makefile.in: Regenerated.
583 * configure: Regenerated.
585 2012-12-07 Jakub Jelinek <jakub@redhat.com>
588 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
589 * Makefile.in: Regenerated.
591 2012-11-20 Ian Lance Taylor <iant@google.com>
593 * dwarf.c (read_attribute): Always clear val.
595 2012-11-13 Ian Lance Taylor <iant@google.com>
598 * configure.ac: Only add -Werror if building a target library.
599 * configure: Rebuild.
601 2012-11-12 Ian Lance Taylor <iant@google.com>
602 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
603 Gerald Pfeifer <gerald@pfeifer.com>
605 * configure.ac: Check for getexecname.
606 * fileline.c: #include <errno.h>. Define getexecname if not
608 (fileline_initialize): Try to find the executable in a few
610 * print.c (error_callback): Only print the filename if it came
611 from the backtrace state.
612 * configure, config.h.in: Rebuild.
614 2012-10-29 Ian Lance Taylor <iant@google.com>
616 * mmap.c (backtrace_vector_release): Correct last patch: add
619 2012-10-29 Ian Lance Taylor <iant@google.com>
621 * mmap.c (backtrace_vector_release): Make sure freed block is
622 aligned on 8-byte boundary.
624 2012-10-26 Ian Lance Taylor <iant@google.com>
627 * posix.c (backtrace_open): Add does_not_exist parameter.
628 * elf.c (phdr_callback): Do not warn if shared library could not
630 * fileline.c (fileline_initialize): Update calls to
632 * internal.h (backtrace_open): Update declaration.
634 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
637 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
638 * configure: Regenerate.
640 2012-10-24 Ian Lance Taylor <iant@google.com>
643 * configure.ac: Check whether -funwind-tables option works.
644 * configure: Rebuild.
646 2012-10-11 Ian Lance Taylor <iant@google.com>
648 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
649 * configure: Rebuild.
651 2012-10-10 Ian Lance Taylor <iant@google.com>
653 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
656 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
658 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
660 2012-10-09 Ian Lance Taylor <iant@google.com>
662 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
663 (backtrace_dwarf_add): Likewise.
665 2012-10-09 Ian Lance Taylor <iant@google.com>
667 Add support for tracing through shared libraries.
668 * configure.ac: Check for link.h and dl_iterate_phdr.
669 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
670 ELF macros before #defining them.
671 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
673 (struct elf_syminfo_data): Add next field.
674 (elf_initialize_syminfo): Initialize next field.
675 (elf_add_syminfo_data): New static function.
676 (elf_add): New static function, broken out of
677 backtrace_initialize. Call backtrace_dwarf_add instead of
678 backtrace_dwarf_initialize.
679 (struct phdr_data): Define.
680 (phdr_callback): New static function.
681 (backtrace_initialize): Call elf_add.
682 * dwarf.c (struct dwarf_data): Add next and base_address fields.
683 (add_unit_addr): Add base_address parameter. Change all callers.
684 (add_unit_ranges, build_address_map): Likewise.
685 (add_line): Add ddata parameter. Change all callers.
686 (read_line_program, add_function_range): Likewise.
687 (dwarf_lookup_pc): New static function, broken out of
689 (dwarf_fileline): Call dwarf_lookup_pc.
690 (build_dwarf_data): New static function.
691 (backtrace_dwarf_add): New function.
692 (backtrace_dwarf_initialize): Remove.
693 * internal.h (backtrace_dwarf_initialize): Don't declare.
694 (backtrace_dwarf_add): Declare.
695 * configure, config.h.in: Rebuild.
697 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
699 * btest.c (f23): Avoid uninitialized variable warning.
701 2012-10-04 Ian Lance Taylor <iant@google.com>
703 * dwarf.c: If the system header files do not declare strnlen,
704 provide our own version.
706 2012-10-03 Ian Lance Taylor <iant@google.com>
708 * dwarf.c (read_uleb128): Fix overflow test.
709 (read_sleb128): Likewise.
710 (build_address_map): Don't change unit_buf.start.
712 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
715 * configure.ac (EXTRA_FLAGS): New.
716 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
717 * configure, Makefile.in: Regenerate.
719 2012-09-29 Ian Lance Taylor <iant@google.com>
722 * fileline.c (fileline_initialize): Pass errnum as -1 when
723 reporting that we could not read executable information after a
726 2012-09-27 Ian Lance Taylor <iant@google.com>
729 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
730 * Makefile.am: Add dependencies for all objects.
731 * configure, aclocal.m4, Makefile.in: Rebuild.
733 2012-09-27 Ian Lance Taylor <iant@google.com>
736 * elf.c (backtrace_initialize): Set *fileln_fn, not
739 2012-09-19 Ian Lance Taylor <iant@google.com>
741 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
743 * configure: Rebuild.
745 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
746 Ian Lance Taylor <iant@google.com>
748 * configure.ac (GCC_HEADER_STDINT): Invoke.
749 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
750 * btest.c: Don't include <stdint.h>.
752 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
754 2012-09-18 Ian Lance Taylor <iant@google.com>
757 * Makefile.am (AM_CPPFLAGS): Define.
758 (AM_CFLAGS): Remove -I options.
759 * Makefile.in: Rebuild.
761 2012-09-18 Ian Lance Taylor <iant@google.com>
763 * posix.c (O_BINARY): Define if not defined.
764 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
765 HAVE_FCNTL is defined.
766 * configure.ac: Test for the fcntl function.
767 * configure, config.h.in: Rebuild.
769 2012-09-18 Ian Lance Taylor <iant@google.com>
771 * btest.c (test1, test2, test3, test4): Add the unused attribute.
773 2012-09-18 Ian Lance Taylor <iant@google.com>
775 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
777 2012-09-18 Ian Lance Taylor <iant@google.com>
779 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
780 * mmapio.c: Don't define _GNU_SOURCE.
781 * configure, config.h.in: Rebuild.
783 2012-09-18 Ian Lance Taylor <iant@google.com>
785 * configure.ac: Check whether strnlen is declared.
786 * dwarf.c: Declare strnlen if not declared.
787 * configure, config.h.in: Rebuild.
789 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791 * fileline.c: Include <stdlib.h>.
794 2012-09-17 Ian Lance Taylor <iant@google.com>
797 * nounwind.c (backtrace_full): Rename from backtrace. Add state
800 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
803 * nounwind.c (backtrace_simple): Add state parameter.
805 2012-09-17 Ian Lance Taylor <iant@google.com>
808 * unknown.c (unknown_fileline): Add state parameter, remove
809 fileline_data parameter, name error_callback parameter.
810 (backtrace_initialize): Add state parameter.
812 2012-09-17 Ian Lance Taylor <iant@google.com>
814 * Initial implementation.
816 Copyright (C) 2012-2017 Free Software Foundation, Inc.
818 Copying and distribution of this file, with or without modification,
819 are permitted in any medium without royalty provided the copyright
820 notice and this notice are preserved.