1 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3 * configure: Regenerated.
5 2018-04-17 Ian Lance Taylor <iant@golang.org>
7 * backtrace.c: Revert last two changes. Don't call mmap
10 2018-04-17 Ian Lance Taylor <iant@golang.org>
12 * backtrace.c: Include backtrace-supported.h before checking
13 BACKTRACE_USES_MALLOC.
15 2018-04-17 Ian Lance Taylor <iant@golang.org>
17 * backtrace.c (backtrace_full): When testing whether we can
18 allocate memory, call mmap directly, and munmap the memory.
20 2018-04-04 Jakub Jelinek <jakub@redhat.com>
23 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
24 big endian, only use 32-bit loads if endianity macros are predefined
25 and indicate big or little endian.
27 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
30 * configure: Regenerate.
32 2018-02-15 Jakub Jelinek <jakub@redhat.com>
35 * elf.c (SHT_PROGBITS): Undefine and define.
37 2018-02-14 Jakub Jelinek <jakub@redhat.com>
40 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
41 (struct elf_ppc64_opd_data): New type.
42 (elf_initialize_syminfo): Add opd argument, handle symbols
43 pointing into the PowerPC64 ELFv1 .opd section.
44 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
45 to structure with .opd data to elf_initialize_syminfo.
47 2018-01-31 Ian Lance Taylor <iant@golang.org>
49 * elf.c (elf_add): Close descriptor if we use a debugfile.
50 * btest.c (check_open_files): New static function.
51 (main): Call check_open_files.
53 2018-01-25 Ian Lance Taylor <iant@golang.org>
55 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
57 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
59 2018-01-25 Ian Lance Taylor <iant@golang.org>
61 * pecoff.c (coff_add): Only release syms_view if it is valid.
63 2018-01-25 Ian Lance Taylor <iant@golang.org>
65 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
67 2018-01-24 Ian Lance Taylor <iant@golang.org>
69 * pecoff.c (coff_add): Use coff_read4, not memcpy.
71 2018-01-24 Ian Lance Taylor <iant@golang.org>
74 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
77 2018-01-19 Tony Reix <tony.reix@atos.net>
79 * xcoff.c (xcoff_incl_compare): New function.
80 (xcoff_incl_search): New function.
81 (xcoff_process_linenos): Use bsearch to find include file.
82 (xcoff_initialize_fileline): Sort include file information.
84 2018-01-16 Ian Lance Taylor <iant@golang.org>
86 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
88 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
89 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
90 (elf_zlib_default_table): Update.
91 (elf_zlib_default_dist_table): New static array.
92 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
94 * ztest.c (struct zlib_test): Add uncompressed_len.
95 (tests): Initialize uncompressed_len field. Add new test case.
96 (test_samples): Use uncompressed_len field.
98 2018-01-03 Jakub Jelinek <jakub@redhat.com>
100 Update copyright years.
102 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
104 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
105 * aclocal.m4: Regenerate.
106 * Makefile.in: Likewise.
107 * configure: Likewise.
109 2017-10-06 Ian Lance Taylor <iant@golang.org>
111 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
112 zlib uncompress function.
114 2017-10-05 Ian Lance Taylor <iant@golang.org>
116 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
117 Read a four byte integer.
118 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
119 boundary before ever calling elf_zlib_fetch.
120 * ztest.c (test_large): Simplify print statements a bit.
122 2017-10-02 Ian Lance Taylor <iant@golang.org>
124 * ztest.c: #include <errno.h>.
125 (TEST_TIMING): Don't define, don't test.
126 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
127 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
128 (ZLIB_CLOCK_GETTIME_ARG): Define.
129 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
130 * Makefile.am: Likewise.
131 * configure, Makefile.in: Rebuild.
133 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
136 * Makefile.am: Append the content of clock_gettime_link to
138 * configure.ac: Test for the case that clock_gettime is in librt.
139 * Makefile.in: Regenerate.
140 * configure: Likewise.
143 * configure.ac: Check for clock_gettime.
144 * config.h.in: Regenerate.
145 * configure: Likewise.
146 * ztest.c (average_time, test_large): Conditionalize test timing
147 on clock_gettime availability.
149 2017-09-29 Tony Reix <tony.reix@atos.net>
151 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
152 (STYP_DWARF, SSUBTYP_DW*): Define.
153 (enum dwarf_section): Define.
154 (struct dwsect_info): Define.
155 (xcoff_add): Look for DWARF sections, pass them to
158 2017-09-28 Ian Lance Taylor <iant@golang.org>
161 * elf.c (__builtin_prefetch): Define if not __GNUC__.
163 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
164 (b_elf_chdr): Define type.
165 (enum debug_section): Add ZDEBUG_xxx values.
166 (debug_section_names): Add names for new sections.
167 (struct debug_section_info): Add compressed field.
168 (elf_zlib_failed, elf_zlib_fetch): New static functions.
169 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
170 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
171 (HUFFMAN_SECONDARY_SHIFT): Define.
172 (ZDEBUG_TABLE_SIZE): Define.
173 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
174 (final_next_secondary): New static variable if
175 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
176 (elf_zlib_inflate_table): New static function.
177 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
178 function to produce fixed Huffman table.
179 (elf_zlib_default_table): New static variable.
180 (elf_zlib_inflate): New static function.
181 (elf_zlib_verify_checksum): Likewise.
182 (elf_zlib_inflate_and_verify): Likewise.
183 (elf_uncompress_zdebug): Likewise.
184 (elf_uncompress_chdr): Likewise.
185 (backtrace_uncompress_zdebug): New extern function.
186 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
187 sections, and uncompress them.
188 * internal.h (backtrace_compress_zdebug): Declare.
190 * configure.ac: Check for -lz and check whether the linker
191 supports --compress-debug-sections.
192 * Makefile.am (ztest_SOURCES): New variable.
193 (ztest_CFLAGS, ztest_LDADD): New variables.
194 (check_PROGRAMS): Add ztest.
195 (ctestg_SOURCES): New variable.
196 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
197 (ctesta_SOURCES): New variable.
198 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
199 (check_PROGRAMS): Add ctestg and ctesta.
200 * configure, config.h.in, Makefile.in: Rebuild.
202 2017-09-22 Ian Lance Taylor <iant@golang.org>
205 * configure.ac: Check for lstat and readlink.
206 * elf.c (lstat, readlink): Provide dummy versions if real versions
208 * configure, config.h.in: Rebuild.
210 2017-09-21 Ian Lance Taylor <iant@google.com>
213 * elf.c (backtrace_initialize): Set pd.exe_filename.
215 2017-09-20 Ian Lance Taylor <iant@golang.org>
216 Denis Khalikov <d.khalikov@partner.samsung.com>
219 Support for external debug info.
220 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
221 (S_ISLNK): Define if not defined.
222 (xstrnlen): Define if strnlen is not available.
223 (b_elf_note): Define type.
224 (NT_GNU_BUILD_ID): Define macro.
225 (elf_crc32, elf_crc32_file): New static functions.
226 (elf_is_symlink, elf_readlink): New static functions.
227 (elf_open_debugfile_by_buildid): New static function.
228 (elf_try_debugfile): New static function.
229 (elf_find_debugfile_by_debuglink): New static function.
230 (elf_open_debugfile_by_debuglink): New static function.
231 (elf_add): Add filename and debuginfo parameters. Adjust all
232 callers. Look for external debug info notes, and try to fetch
233 debug info from external file.
234 (struct phdr_data): Add exe_filename field.
235 (phdr_callback): Pass filename to elf_add.
236 (backtrace_initialize): Add filename parameter.
237 * internal.h (backtrace_initialize): Add filename parameter.
238 * fileline.c (fileline_initialize): Pass filename to
239 backtrace_initialize.
240 * pecoff.c (fileline_initialize): Add unused filename parameter.
241 * unknown.c (fileline_initialize): Likewise.
242 * xcoff.c (fileline_initialize): Likewise.
243 * configure.ac: Check for objcopy --add-gnu-debuglink.
244 * Makefile.am (dtest): New test target.
245 * configure, Makefile.in: Rebuild.
247 2017-09-12 Steve Ellcey <sellcey@cavium.com>
250 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
251 * Makefile.in: Regenerate.
253 2017-09-12 Steve Ellcey <sellcey@cavium.com>
256 * libbacktrace/Makefile.in
257 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
259 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
262 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
264 2017-07-28 Tony Reix <tony.reix@atos.net>
266 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
268 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
270 * fileline.c (fileline_initialize): Print pid_t as long.
272 2017-07-26 Tony Reix <tony.reix@atos.net>
274 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
275 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
276 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
277 * configure, config.h.in: Regenerate.
279 2017-07-21 Tony Reix <tony.reix@atos.net>
281 * filetype.awk: Add AIX XCOFF type detection.
282 * configure.ac: Recognize xcoff format.
283 * Makefile.am (FORMAT_FILES): Add xcoff.c.
284 * fileline.c: Include <unistd.h>.
285 (fileline_initialize): Add case for AIX procfs.
287 * configure, Makefile.in: Rebuild.
289 2017-06-21 Richard Biener <rguenther@suse.de>
291 * configure.ac: Add AC_SYS_LARGEFILE.
292 * config.h.in: Regenerate.
293 * configure: Likewise.
295 2017-06-11 Ian Lance Taylor <iant@golang.org>
297 * elf.c (backtrace_initialize): Always set *fileline_fn.
299 * btest.c: Move support functions into testlib.c. Change calls to
300 check to pass file name.
301 * testlib.c: New file, copied from (part of) btest.c.
302 * testlib.h: New file, declarations for testlib.c.
303 * edtest.c: Use testlib.h and testlib.c.
304 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
305 * Makefile.am (btest_SOURCES): Add testlib.c.
306 (edtest_SOURCES): Likewise.
307 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
308 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
309 * configure, Makefile.in: Rebuild.
311 2017-05-19 Than McIntosh <thanm@google.com>
313 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
314 (read_line_header): Don't allocate dirs if dirs_count == 0.
315 * edtest.c: New file.
316 * edtest2.c: New file.
317 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
318 (check_PROGRAMS): Add edtest.
319 (edtest2_build.c, gen_edtest2_build): New targets.
320 * Makefile.in: Rebuild.
322 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
324 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
325 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
327 2017-01-01 Jakub Jelinek <jakub@redhat.com>
329 Update copyright years.
331 2016-11-15 Matthias Klose <doko@ubuntu.com>
333 * configure: Regenerate.
335 2016-09-11 Carlos Liam <carlos@aarzee.me>
337 * all: Remove meaningless trailing whitespace.
339 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
342 * elf.c (phdr_callback) [__i386__]: Add
343 __attribute__((__force_align_arg_pointer__)).
345 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
347 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
348 avoid possible crash.
349 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
350 missing debug info anymore.
352 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
354 * mmap.c (MAP_FAILED): Define if not defined.
356 2016-01-04 Jakub Jelinek <jakub@redhat.com>
358 Update copyright years.
360 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
362 * configure.ac: Specify that DJGPP do not have mmap
363 even when sys/mman.h exists.
364 * configure: Regenerate
366 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
369 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
370 * configure: Regenerate.
371 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
374 2015-09-17 Ian Lance Taylor <iant@google.com>
376 * posix.c (backtrace_open): Cast second argument of open() to int.
378 2015-09-11 Ian Lance Taylor <iant@google.com>
380 * Makefile.am (backtrace.lo): Depend on internal.h.
381 (sort.lo, stest.lo): Add explicit dependencies.
382 * Makefile.in: Rebuild.
384 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
386 * backtrace.c: #include <sys/types.h>.
388 2015-09-08 Ian Lance Taylor <iant@google.com>
391 * backtrace.c: #include "internal.h".
392 (struct backtrace_data): Add can_alloc field.
393 (unwind): If can_alloc is false, don't try to get file/line
395 (backtrace_full): Set can_alloc field in bdata.
396 * alloc.c (backtrace_alloc): Don't call error_callback if it is
398 * mmap.c (backtrace_alloc): Likewise.
399 * internal.h: Update comments for backtrace_alloc and
402 2015-09-08 Ian Lance Taylor <iant@google.com>
405 * mmap.c (backtrace_alloc): Correct test for mmap failure.
407 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
409 * configure.ac: For spu-*-* targets, set have_fcntl to no.
410 * configure: Regenerate.
412 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
414 * configure.ac: Remove [disable-shared] argument to LT_INIT.
415 Remove setting PIC_FLAG when building as target library.
416 * configure: Regenerate.
418 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
420 * configure.ac: Only compile with -fPIC if the target
422 * configure: Regenerate.
424 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
426 * configure.ac: Set have_mmap to no on spu-*-* targets.
427 * configure: Regenerate.
429 2015-08-13 Ian Lance Taylor <iant@google.com>
431 * dwarf.c (read_function_entry): Add vec_inlined parameter.
434 2015-06-11 Martin Sebor <msebor@redhat.com>
437 * dwarf.c (struct line): Add new field idx.
438 (line_compare): Use it.
440 (read_line_info): Reset it.
442 2015-05-29 Tristan Gingold <gingold@adacore.com>
444 * pecoff.c: New file.
445 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
446 * Makefile.in: Regenerate.
447 * filetype.awk: Detect pecoff.
448 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
450 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
452 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
453 * configure: Regenerate.
454 * pecoff.c: New file.
456 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
458 * Makefile.in: Regenerated with automake-1.11.6.
459 * aclocal.m4: Likewise.
460 * configure: Likewise.
462 2015-01-24 Matthias Klose <doko@ubuntu.com>
464 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
465 * configure: Regenerate.
467 2015-01-05 Jakub Jelinek <jakub@redhat.com>
469 Update copyright years.
471 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
474 * configure: Regenerated.
476 2014-11-11 David Malcolm <dmalcolm@redhat.com>
478 * ChangeLog.jit: New.
480 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
483 * configure: Regenerate.
485 2014-10-23 Ian Lance Taylor <iant@google.com>
487 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
488 Fix to return void *.
490 2014-05-08 Ian Lance Taylor <iant@google.com>
492 * mmap.c (backtrace_free): If freeing a large aligned block of
493 memory, call munmap rather than holding onto it.
494 (backtrace_vector_grow): When growing a vector, double the number
495 of pages requested. When releasing the old version of a grown
496 vector, pass the correct size to backtrace_free.
498 2014-03-07 Ian Lance Taylor <iant@google.com>
500 * sort.c (backtrace_qsort): Use middle element as pivot.
502 2014-03-06 Ian Lance Taylor <iant@google.com>
506 * internal.h (backtrace_qsort): Declare.
507 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
508 (read_line_info, read_function_entry): Likewise.
509 (read_function_info, build_dwarf_data): Likewise.
510 * elf.c (elf_initialize_syminfo): Likewise.
511 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
512 (stest_SOURCES, stest_LDADD): Define.
513 (check_PROGRAMS): Add stest.
515 2014-02-07 Misty De Meo <misty@brew.sh>
518 * configure.ac: Use AC_LINK_IFELSE in check for
520 * configure: Regenerate.
522 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
524 Update copyright years
526 2013-12-06 Jakub Jelinek <jakub@redhat.com>
528 * elf.c (ET_DYN): Undefine and define again.
529 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
530 return early -1 without closing the descriptor.
531 (struct phdr_data): Add exe_descriptor.
532 (phdr_callback): If pd->exe_descriptor is not -1, for very first
533 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
534 otherwise backtrace_close the exe_descriptor if not -1. Adjust
536 (backtrace_initialize): Adjust call to elf_add. If it returns
537 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
539 2013-12-05 Ian Lance Taylor <iant@google.com>
541 * alloc.c (backtrace_vector_finish): Add error_callback and data
542 parameters. Call backtrace_vector_release. Return address base.
543 * mmap.c (backtrace_vector_finish): Add error_callback and data
544 parameters. Return address base.
545 * dwarf.c (read_function_info): Get new address base from
546 backtrace_vector_finish.
547 * internal.h (backtrace_vector_finish): Update declaration.
549 2013-11-27 Ian Lance Taylor <iant@google.com>
551 * dwarf.c (find_address_ranges): New static function, broken out
552 of build_address_map.
553 (build_address_map): Call it.
554 * btest.c (check): Check for missing filename or function, rather
556 (f3): Check that enough frames were returned.
558 2013-11-19 Jakub Jelinek <jakub@redhat.com>
560 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
561 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
563 * btest.c (struct symdata): Add size field.
564 (callback_three): Add symsize argument. Copy it to the data->size
566 (f23): Set symdata.size to 0.
567 (test5): Likewise. If sizeof (int) > 1, lookup address of
568 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
571 * atomic.c: Include sys/types.h.
573 2013-11-18 Ian Lance Taylor <iant@google.com>
575 * configure.ac: Check for support of __atomic extensions.
576 * internal.h: Declare or #define atomic functions for use in
578 * atomic.c: New file.
579 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
580 (dwarf_fileline, backtrace_dwarf_add): Likewise.
581 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
582 (backtrace_initialize): Likewise.
583 * fileline.c (fileline_initialize): Likewise.
584 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
585 * configure, config.h.in, Makefile.in: Rebuild.
587 2013-11-18 Jakub Jelinek <jakub@redhat.com>
589 * elf.c (SHN_UNDEF): Define.
590 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
591 with st_shndx == SHN_UNDEF. Add base_address to address fields.
592 (elf_add): Adjust caller.
594 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
596 2013-11-16 Ian Lance Taylor <iant@google.com>
598 * backtrace.h (backtrace_create_state): Correct comment about
601 2013-11-15 Ian Lance Taylor <iant@google.com>
603 * backtrace.h (backtrace_syminfo): Update comment and parameter
604 name to take any address, not just a PC value.
605 * elf.c (STT_OBJECT): Define.
606 (elf_nosyms): Rename parameter pc to addr.
607 (elf_symbol_search): Rename local variable pc to addr.
608 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
609 (elf_syminfo): Rename parameter pc to addr.
610 * btest.c (global): New global variable.
614 2013-10-17 Ian Lance Taylor <iant@google.com>
616 * elf.c (elf_add): Don't get the wrong offsets if a debug section
619 2013-10-15 David Malcolm <dmalcolm@redhat.com>
621 * configure.ac: Add --enable-host-shared, setting up
622 pre-existing PIC_FLAG variable within Makefile.am et al.
623 * configure: Regenerate.
625 2013-09-20 Alan Modra <amodra@gmail.com>
627 * configure: Regenerate.
629 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
631 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
633 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
635 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
636 dl_iterate_phdr callbacks.
638 2013-03-25 Ian Lance Taylor <iant@google.com>
640 * alloc.c: #include <sys/types.h>.
643 2013-01-31 Ian Lance Taylor <iant@google.com>
645 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
646 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
648 2013-01-25 Jakub Jelinek <jakub@redhat.com>
651 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
652 attribute was not seen.
654 2013-01-16 Ian Lance Taylor <iant@google.com>
656 * dwarf.c (struct unit): Add filename and abs_filename fields.
657 (build_address_map): Set new fields when reading unit.
658 (dwarf_lookup_pc): If we don't find an entry in the line table,
659 just return the main file name.
661 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
663 Update copyright years.
665 2013-01-01 Ian Lance Taylor <iant@google.com>
668 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
669 $(MULTIBUILDTOP)/../../gcc/include.
670 * Makefile.in: Rebuild.
672 2013-01-01 Ian Lance Taylor <iant@google.com>
675 * mmap.c (backtrace_alloc): Don't call sync functions if not
677 (backtrace_free): Likewise.
679 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
681 * mmapio.c: Define MAP_FAILED if not defined.
683 2012-12-11 Jakub Jelinek <jakub@redhat.com>
686 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
687 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
688 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
690 * Makefile.in: Regenerated.
691 * configure: Regenerated.
693 2012-12-07 Jakub Jelinek <jakub@redhat.com>
696 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
697 * Makefile.in: Regenerated.
699 2012-11-20 Ian Lance Taylor <iant@google.com>
701 * dwarf.c (read_attribute): Always clear val.
703 2012-11-13 Ian Lance Taylor <iant@google.com>
706 * configure.ac: Only add -Werror if building a target library.
707 * configure: Rebuild.
709 2012-11-12 Ian Lance Taylor <iant@google.com>
710 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
711 Gerald Pfeifer <gerald@pfeifer.com>
713 * configure.ac: Check for getexecname.
714 * fileline.c: #include <errno.h>. Define getexecname if not
716 (fileline_initialize): Try to find the executable in a few
718 * print.c (error_callback): Only print the filename if it came
719 from the backtrace state.
720 * configure, config.h.in: Rebuild.
722 2012-10-29 Ian Lance Taylor <iant@google.com>
724 * mmap.c (backtrace_vector_release): Correct last patch: add
727 2012-10-29 Ian Lance Taylor <iant@google.com>
729 * mmap.c (backtrace_vector_release): Make sure freed block is
730 aligned on 8-byte boundary.
732 2012-10-26 Ian Lance Taylor <iant@google.com>
735 * posix.c (backtrace_open): Add does_not_exist parameter.
736 * elf.c (phdr_callback): Do not warn if shared library could not
738 * fileline.c (fileline_initialize): Update calls to
740 * internal.h (backtrace_open): Update declaration.
742 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
745 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
746 * configure: Regenerate.
748 2012-10-24 Ian Lance Taylor <iant@google.com>
751 * configure.ac: Check whether -funwind-tables option works.
752 * configure: Rebuild.
754 2012-10-11 Ian Lance Taylor <iant@google.com>
756 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
757 * configure: Rebuild.
759 2012-10-10 Ian Lance Taylor <iant@google.com>
761 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
764 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
766 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
768 2012-10-09 Ian Lance Taylor <iant@google.com>
770 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
771 (backtrace_dwarf_add): Likewise.
773 2012-10-09 Ian Lance Taylor <iant@google.com>
775 Add support for tracing through shared libraries.
776 * configure.ac: Check for link.h and dl_iterate_phdr.
777 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
778 ELF macros before #defining them.
779 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
781 (struct elf_syminfo_data): Add next field.
782 (elf_initialize_syminfo): Initialize next field.
783 (elf_add_syminfo_data): New static function.
784 (elf_add): New static function, broken out of
785 backtrace_initialize. Call backtrace_dwarf_add instead of
786 backtrace_dwarf_initialize.
787 (struct phdr_data): Define.
788 (phdr_callback): New static function.
789 (backtrace_initialize): Call elf_add.
790 * dwarf.c (struct dwarf_data): Add next and base_address fields.
791 (add_unit_addr): Add base_address parameter. Change all callers.
792 (add_unit_ranges, build_address_map): Likewise.
793 (add_line): Add ddata parameter. Change all callers.
794 (read_line_program, add_function_range): Likewise.
795 (dwarf_lookup_pc): New static function, broken out of
797 (dwarf_fileline): Call dwarf_lookup_pc.
798 (build_dwarf_data): New static function.
799 (backtrace_dwarf_add): New function.
800 (backtrace_dwarf_initialize): Remove.
801 * internal.h (backtrace_dwarf_initialize): Don't declare.
802 (backtrace_dwarf_add): Declare.
803 * configure, config.h.in: Rebuild.
805 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
807 * btest.c (f23): Avoid uninitialized variable warning.
809 2012-10-04 Ian Lance Taylor <iant@google.com>
811 * dwarf.c: If the system header files do not declare strnlen,
812 provide our own version.
814 2012-10-03 Ian Lance Taylor <iant@google.com>
816 * dwarf.c (read_uleb128): Fix overflow test.
817 (read_sleb128): Likewise.
818 (build_address_map): Don't change unit_buf.start.
820 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
823 * configure.ac (EXTRA_FLAGS): New.
824 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
825 * configure, Makefile.in: Regenerate.
827 2012-09-29 Ian Lance Taylor <iant@google.com>
830 * fileline.c (fileline_initialize): Pass errnum as -1 when
831 reporting that we could not read executable information after a
834 2012-09-27 Ian Lance Taylor <iant@google.com>
837 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
838 * Makefile.am: Add dependencies for all objects.
839 * configure, aclocal.m4, Makefile.in: Rebuild.
841 2012-09-27 Ian Lance Taylor <iant@google.com>
844 * elf.c (backtrace_initialize): Set *fileln_fn, not
847 2012-09-19 Ian Lance Taylor <iant@google.com>
849 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
851 * configure: Rebuild.
853 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
854 Ian Lance Taylor <iant@google.com>
856 * configure.ac (GCC_HEADER_STDINT): Invoke.
857 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
858 * btest.c: Don't include <stdint.h>.
860 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
862 2012-09-18 Ian Lance Taylor <iant@google.com>
865 * Makefile.am (AM_CPPFLAGS): Define.
866 (AM_CFLAGS): Remove -I options.
867 * Makefile.in: Rebuild.
869 2012-09-18 Ian Lance Taylor <iant@google.com>
871 * posix.c (O_BINARY): Define if not defined.
872 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
873 HAVE_FCNTL is defined.
874 * configure.ac: Test for the fcntl function.
875 * configure, config.h.in: Rebuild.
877 2012-09-18 Ian Lance Taylor <iant@google.com>
879 * btest.c (test1, test2, test3, test4): Add the unused attribute.
881 2012-09-18 Ian Lance Taylor <iant@google.com>
883 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
885 2012-09-18 Ian Lance Taylor <iant@google.com>
887 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
888 * mmapio.c: Don't define _GNU_SOURCE.
889 * configure, config.h.in: Rebuild.
891 2012-09-18 Ian Lance Taylor <iant@google.com>
893 * configure.ac: Check whether strnlen is declared.
894 * dwarf.c: Declare strnlen if not declared.
895 * configure, config.h.in: Rebuild.
897 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
899 * fileline.c: Include <stdlib.h>.
902 2012-09-17 Ian Lance Taylor <iant@google.com>
905 * nounwind.c (backtrace_full): Rename from backtrace. Add state
908 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
911 * nounwind.c (backtrace_simple): Add state parameter.
913 2012-09-17 Ian Lance Taylor <iant@google.com>
916 * unknown.c (unknown_fileline): Add state parameter, remove
917 fileline_data parameter, name error_callback parameter.
918 (backtrace_initialize): Add state parameter.
920 2012-09-17 Ian Lance Taylor <iant@google.com>
922 * Initial implementation.
924 Copyright (C) 2012-2018 Free Software Foundation, Inc.
926 Copying and distribution of this file, with or without modification,
927 are permitted in any medium without royalty provided the copyright
928 notice and this notice are preserved.