1 2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
4 * elf.c (elf_add): Increase ".note.gnu.build-id" section size
5 checking up to 36 bytes.
7 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
9 * configure: Regenerated.
11 2018-04-19 Jakub Jelinek <jakub@redhat.com>
13 * configure: Regenerated.
15 2018-04-17 Ian Lance Taylor <iant@golang.org>
17 * backtrace.c: Revert last two changes. Don't call mmap
20 2018-04-17 Ian Lance Taylor <iant@golang.org>
22 * backtrace.c: Include backtrace-supported.h before checking
23 BACKTRACE_USES_MALLOC.
25 2018-04-17 Ian Lance Taylor <iant@golang.org>
27 * backtrace.c (backtrace_full): When testing whether we can
28 allocate memory, call mmap directly, and munmap the memory.
30 2018-04-04 Jakub Jelinek <jakub@redhat.com>
33 * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
34 big endian, only use 32-bit loads if endianity macros are predefined
35 and indicate big or little endian.
37 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
40 * configure: Regenerate.
42 2018-02-15 Jakub Jelinek <jakub@redhat.com>
45 * elf.c (SHT_PROGBITS): Undefine and define.
47 2018-02-14 Jakub Jelinek <jakub@redhat.com>
50 * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
51 (struct elf_ppc64_opd_data): New type.
52 (elf_initialize_syminfo): Add opd argument, handle symbols
53 pointing into the PowerPC64 ELFv1 .opd section.
54 (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
55 to structure with .opd data to elf_initialize_syminfo.
57 2018-01-31 Ian Lance Taylor <iant@golang.org>
59 * elf.c (elf_add): Close descriptor if we use a debugfile.
60 * btest.c (check_open_files): New static function.
61 (main): Call check_open_files.
63 2018-01-25 Ian Lance Taylor <iant@golang.org>
65 * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
67 (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
69 2018-01-25 Ian Lance Taylor <iant@golang.org>
71 * pecoff.c (coff_add): Only release syms_view if it is valid.
73 2018-01-25 Ian Lance Taylor <iant@golang.org>
75 * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
77 2018-01-24 Ian Lance Taylor <iant@golang.org>
79 * pecoff.c (coff_add): Use coff_read4, not memcpy.
81 2018-01-24 Ian Lance Taylor <iant@golang.org>
84 * mmap.c (backtrace_free_locked): Don't put more than 16 entries
87 2018-01-19 Tony Reix <tony.reix@atos.net>
89 * xcoff.c (xcoff_incl_compare): New function.
90 (xcoff_incl_search): New function.
91 (xcoff_process_linenos): Use bsearch to find include file.
92 (xcoff_initialize_fileline): Sort include file information.
94 2018-01-16 Ian Lance Taylor <iant@golang.org>
96 * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
98 (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
99 elf_zlib_inflate_table. Generate elf_zlib_default_dist_table.
100 (elf_zlib_default_table): Update.
101 (elf_zlib_default_dist_table): New static array.
102 (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
104 * ztest.c (struct zlib_test): Add uncompressed_len.
105 (tests): Initialize uncompressed_len field. Add new test case.
106 (test_samples): Use uncompressed_len field.
108 2018-01-03 Jakub Jelinek <jakub@redhat.com>
110 Update copyright years.
112 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
114 * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
115 * aclocal.m4: Regenerate.
116 * Makefile.in: Likewise.
117 * configure: Likewise.
119 2017-10-06 Ian Lance Taylor <iant@golang.org>
121 * ztest.c (test_large): Pass unsigned long *, not size_t *, to
122 zlib uncompress function.
124 2017-10-05 Ian Lance Taylor <iant@golang.org>
126 * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
127 Read a four byte integer.
128 (elf_zlib_inflate): Change val to uint64_t. Align pin to a 32-bit
129 boundary before ever calling elf_zlib_fetch.
130 * ztest.c (test_large): Simplify print statements a bit.
132 2017-10-02 Ian Lance Taylor <iant@golang.org>
134 * ztest.c: #include <errno.h>.
135 (TEST_TIMING): Don't define, don't test.
136 (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
137 (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
138 (ZLIB_CLOCK_GETTIME_ARG): Define.
139 * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
140 * Makefile.am: Likewise.
141 * configure, Makefile.in: Rebuild.
143 2017-10-02 Thomas Schwinge <thomas@codesourcery.com>
146 * Makefile.am: Append the content of clock_gettime_link to
148 * configure.ac: Test for the case that clock_gettime is in librt.
149 * Makefile.in: Regenerate.
150 * configure: Likewise.
153 * configure.ac: Check for clock_gettime.
154 * config.h.in: Regenerate.
155 * configure: Likewise.
156 * ztest.c (average_time, test_large): Conditionalize test timing
157 on clock_gettime availability.
159 2017-09-29 Tony Reix <tony.reix@atos.net>
161 * xcoff.c: Initial support for DWARF debug sections in XCOFF.
162 (STYP_DWARF, SSUBTYP_DW*): Define.
163 (enum dwarf_section): Define.
164 (struct dwsect_info): Define.
165 (xcoff_add): Look for DWARF sections, pass them to
168 2017-09-28 Ian Lance Taylor <iant@golang.org>
171 * elf.c (__builtin_prefetch): Define if not __GNUC__.
173 (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
174 (b_elf_chdr): Define type.
175 (enum debug_section): Add ZDEBUG_xxx values.
176 (debug_section_names): Add names for new sections.
177 (struct debug_section_info): Add compressed field.
178 (elf_zlib_failed, elf_zlib_fetch): New static functions.
179 (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
180 (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
181 (HUFFMAN_SECONDARY_SHIFT): Define.
182 (ZDEBUG_TABLE_SIZE): Define.
183 (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
184 (final_next_secondary): New static variable if
185 BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
186 (elf_zlib_inflate_table): New static function.
187 (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
188 function to produce fixed Huffman table.
189 (elf_zlib_default_table): New static variable.
190 (elf_zlib_inflate): New static function.
191 (elf_zlib_verify_checksum): Likewise.
192 (elf_zlib_inflate_and_verify): Likewise.
193 (elf_uncompress_zdebug): Likewise.
194 (elf_uncompress_chdr): Likewise.
195 (backtrace_uncompress_zdebug): New extern function.
196 (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
197 sections, and uncompress them.
198 * internal.h (backtrace_compress_zdebug): Declare.
200 * configure.ac: Check for -lz and check whether the linker
201 supports --compress-debug-sections.
202 * Makefile.am (ztest_SOURCES): New variable.
203 (ztest_CFLAGS, ztest_LDADD): New variables.
204 (check_PROGRAMS): Add ztest.
205 (ctestg_SOURCES): New variable.
206 (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
207 (ctesta_SOURCES): New variable.
208 (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
209 (check_PROGRAMS): Add ctestg and ctesta.
210 * configure, config.h.in, Makefile.in: Rebuild.
212 2017-09-22 Ian Lance Taylor <iant@golang.org>
215 * configure.ac: Check for lstat and readlink.
216 * elf.c (lstat, readlink): Provide dummy versions if real versions
218 * configure, config.h.in: Rebuild.
220 2017-09-21 Ian Lance Taylor <iant@google.com>
223 * elf.c (backtrace_initialize): Set pd.exe_filename.
225 2017-09-20 Ian Lance Taylor <iant@golang.org>
226 Denis Khalikov <d.khalikov@partner.samsung.com>
229 Support for external debug info.
230 * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
231 (S_ISLNK): Define if not defined.
232 (xstrnlen): Define if strnlen is not available.
233 (b_elf_note): Define type.
234 (NT_GNU_BUILD_ID): Define macro.
235 (elf_crc32, elf_crc32_file): New static functions.
236 (elf_is_symlink, elf_readlink): New static functions.
237 (elf_open_debugfile_by_buildid): New static function.
238 (elf_try_debugfile): New static function.
239 (elf_find_debugfile_by_debuglink): New static function.
240 (elf_open_debugfile_by_debuglink): New static function.
241 (elf_add): Add filename and debuginfo parameters. Adjust all
242 callers. Look for external debug info notes, and try to fetch
243 debug info from external file.
244 (struct phdr_data): Add exe_filename field.
245 (phdr_callback): Pass filename to elf_add.
246 (backtrace_initialize): Add filename parameter.
247 * internal.h (backtrace_initialize): Add filename parameter.
248 * fileline.c (fileline_initialize): Pass filename to
249 backtrace_initialize.
250 * pecoff.c (fileline_initialize): Add unused filename parameter.
251 * unknown.c (fileline_initialize): Likewise.
252 * xcoff.c (fileline_initialize): Likewise.
253 * configure.ac: Check for objcopy --add-gnu-debuglink.
254 * Makefile.am (dtest): New test target.
255 * configure, Makefile.in: Rebuild.
257 2017-09-12 Steve Ellcey <sellcey@cavium.com>
260 * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
261 * Makefile.in: Regenerate.
263 2017-09-12 Steve Ellcey <sellcey@cavium.com>
266 * libbacktrace/Makefile.in
267 (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
269 2017-08-02 David Edelsohn <dje.gcc@gmail.com>
272 * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
274 2017-07-28 Tony Reix <tony.reix@atos.net>
276 * xcoff.c: Don't leak a file descriptor if an archive is malformed.
278 2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
280 * fileline.c (fileline_initialize): Print pid_t as long.
282 2017-07-26 Tony Reix <tony.reix@atos.net>
284 * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
285 * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
286 * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
287 * configure, config.h.in: Regenerate.
289 2017-07-21 Tony Reix <tony.reix@atos.net>
291 * filetype.awk: Add AIX XCOFF type detection.
292 * configure.ac: Recognize xcoff format.
293 * Makefile.am (FORMAT_FILES): Add xcoff.c.
294 * fileline.c: Include <unistd.h>.
295 (fileline_initialize): Add case for AIX procfs.
297 * configure, Makefile.in: Rebuild.
299 2017-06-21 Richard Biener <rguenther@suse.de>
301 * configure.ac: Add AC_SYS_LARGEFILE.
302 * config.h.in: Regenerate.
303 * configure: Likewise.
305 2017-06-11 Ian Lance Taylor <iant@golang.org>
307 * elf.c (backtrace_initialize): Always set *fileline_fn.
309 * btest.c: Move support functions into testlib.c. Change calls to
310 check to pass file name.
311 * testlib.c: New file, copied from (part of) btest.c.
312 * testlib.h: New file, declarations for testlib.c.
313 * edtest.c: Use testlib.h and testlib.c.
314 * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
315 * Makefile.am (btest_SOURCES): Add testlib.c.
316 (edtest_SOURCES): Likewise.
317 (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
318 (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
319 * configure, Makefile.in: Rebuild.
321 2017-05-19 Than McIntosh <thanm@google.com>
323 * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
324 (read_line_header): Don't allocate dirs if dirs_count == 0.
325 * edtest.c: New file.
326 * edtest2.c: New file.
327 * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
328 (check_PROGRAMS): Add edtest.
329 (edtest2_build.c, gen_edtest2_build): New targets.
330 * Makefile.in: Rebuild.
332 2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
334 * btest.c (test5): Replace #ifdef guard with 'unused' attribute
335 to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
337 2017-01-01 Jakub Jelinek <jakub@redhat.com>
339 Update copyright years.
341 2016-11-15 Matthias Klose <doko@ubuntu.com>
343 * configure: Regenerate.
345 2016-09-11 Carlos Liam <carlos@aarzee.me>
347 * all: Remove meaningless trailing whitespace.
349 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
352 * elf.c (phdr_callback) [__i386__]: Add
353 __attribute__((__force_align_arg_pointer__)).
355 2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
357 * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
358 avoid possible crash.
359 (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
360 missing debug info anymore.
362 2016-02-06 John David Anglin <danglin@gcc.gnu.org>
364 * mmap.c (MAP_FAILED): Define if not defined.
366 2016-01-04 Jakub Jelinek <jakub@redhat.com>
368 Update copyright years.
370 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
372 * configure.ac: Specify that DJGPP do not have mmap
373 even when sys/mman.h exists.
374 * configure: Regenerate
376 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
379 * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
380 * configure: Regenerate.
381 * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
384 2015-09-17 Ian Lance Taylor <iant@google.com>
386 * posix.c (backtrace_open): Cast second argument of open() to int.
388 2015-09-11 Ian Lance Taylor <iant@google.com>
390 * Makefile.am (backtrace.lo): Depend on internal.h.
391 (sort.lo, stest.lo): Add explicit dependencies.
392 * Makefile.in: Rebuild.
394 2015-09-09 Hans-Peter Nilsson <hp@axis.com>
396 * backtrace.c: #include <sys/types.h>.
398 2015-09-08 Ian Lance Taylor <iant@google.com>
401 * backtrace.c: #include "internal.h".
402 (struct backtrace_data): Add can_alloc field.
403 (unwind): If can_alloc is false, don't try to get file/line
405 (backtrace_full): Set can_alloc field in bdata.
406 * alloc.c (backtrace_alloc): Don't call error_callback if it is
408 * mmap.c (backtrace_alloc): Likewise.
409 * internal.h: Update comments for backtrace_alloc and
412 2015-09-08 Ian Lance Taylor <iant@google.com>
415 * mmap.c (backtrace_alloc): Correct test for mmap failure.
417 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
419 * configure.ac: For spu-*-* targets, set have_fcntl to no.
420 * configure: Regenerate.
422 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
424 * configure.ac: Remove [disable-shared] argument to LT_INIT.
425 Remove setting PIC_FLAG when building as target library.
426 * configure: Regenerate.
428 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
430 * configure.ac: Only compile with -fPIC if the target
432 * configure: Regenerate.
434 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
436 * configure.ac: Set have_mmap to no on spu-*-* targets.
437 * configure: Regenerate.
439 2015-08-13 Ian Lance Taylor <iant@google.com>
441 * dwarf.c (read_function_entry): Add vec_inlined parameter.
444 2015-06-11 Martin Sebor <msebor@redhat.com>
447 * dwarf.c (struct line): Add new field idx.
448 (line_compare): Use it.
450 (read_line_info): Reset it.
452 2015-05-29 Tristan Gingold <gingold@adacore.com>
454 * pecoff.c: New file.
455 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
456 * Makefile.in: Regenerate.
457 * filetype.awk: Detect pecoff.
458 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
460 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
462 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
463 * configure: Regenerate.
464 * pecoff.c: New file.
466 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
468 * Makefile.in: Regenerated with automake-1.11.6.
469 * aclocal.m4: Likewise.
470 * configure: Likewise.
472 2015-01-24 Matthias Klose <doko@ubuntu.com>
474 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
475 * configure: Regenerate.
477 2015-01-05 Jakub Jelinek <jakub@redhat.com>
479 Update copyright years.
481 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
484 * configure: Regenerated.
486 2014-11-11 David Malcolm <dmalcolm@redhat.com>
488 * ChangeLog.jit: New.
490 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
493 * configure: Regenerate.
495 2014-10-23 Ian Lance Taylor <iant@google.com>
497 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
498 Fix to return void *.
500 2014-05-08 Ian Lance Taylor <iant@google.com>
502 * mmap.c (backtrace_free): If freeing a large aligned block of
503 memory, call munmap rather than holding onto it.
504 (backtrace_vector_grow): When growing a vector, double the number
505 of pages requested. When releasing the old version of a grown
506 vector, pass the correct size to backtrace_free.
508 2014-03-07 Ian Lance Taylor <iant@google.com>
510 * sort.c (backtrace_qsort): Use middle element as pivot.
512 2014-03-06 Ian Lance Taylor <iant@google.com>
516 * internal.h (backtrace_qsort): Declare.
517 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
518 (read_line_info, read_function_entry): Likewise.
519 (read_function_info, build_dwarf_data): Likewise.
520 * elf.c (elf_initialize_syminfo): Likewise.
521 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
522 (stest_SOURCES, stest_LDADD): Define.
523 (check_PROGRAMS): Add stest.
525 2014-02-07 Misty De Meo <misty@brew.sh>
528 * configure.ac: Use AC_LINK_IFELSE in check for
530 * configure: Regenerate.
532 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
534 Update copyright years
536 2013-12-06 Jakub Jelinek <jakub@redhat.com>
538 * elf.c (ET_DYN): Undefine and define again.
539 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
540 return early -1 without closing the descriptor.
541 (struct phdr_data): Add exe_descriptor.
542 (phdr_callback): If pd->exe_descriptor is not -1, for very first
543 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
544 otherwise backtrace_close the exe_descriptor if not -1. Adjust
546 (backtrace_initialize): Adjust call to elf_add. If it returns
547 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
549 2013-12-05 Ian Lance Taylor <iant@google.com>
551 * alloc.c (backtrace_vector_finish): Add error_callback and data
552 parameters. Call backtrace_vector_release. Return address base.
553 * mmap.c (backtrace_vector_finish): Add error_callback and data
554 parameters. Return address base.
555 * dwarf.c (read_function_info): Get new address base from
556 backtrace_vector_finish.
557 * internal.h (backtrace_vector_finish): Update declaration.
559 2013-11-27 Ian Lance Taylor <iant@google.com>
561 * dwarf.c (find_address_ranges): New static function, broken out
562 of build_address_map.
563 (build_address_map): Call it.
564 * btest.c (check): Check for missing filename or function, rather
566 (f3): Check that enough frames were returned.
568 2013-11-19 Jakub Jelinek <jakub@redhat.com>
570 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
571 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
573 * btest.c (struct symdata): Add size field.
574 (callback_three): Add symsize argument. Copy it to the data->size
576 (f23): Set symdata.size to 0.
577 (test5): Likewise. If sizeof (int) > 1, lookup address of
578 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
581 * atomic.c: Include sys/types.h.
583 2013-11-18 Ian Lance Taylor <iant@google.com>
585 * configure.ac: Check for support of __atomic extensions.
586 * internal.h: Declare or #define atomic functions for use in
588 * atomic.c: New file.
589 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
590 (dwarf_fileline, backtrace_dwarf_add): Likewise.
591 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
592 (backtrace_initialize): Likewise.
593 * fileline.c (fileline_initialize): Likewise.
594 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
595 * configure, config.h.in, Makefile.in: Rebuild.
597 2013-11-18 Jakub Jelinek <jakub@redhat.com>
599 * elf.c (SHN_UNDEF): Define.
600 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
601 with st_shndx == SHN_UNDEF. Add base_address to address fields.
602 (elf_add): Adjust caller.
604 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
606 2013-11-16 Ian Lance Taylor <iant@google.com>
608 * backtrace.h (backtrace_create_state): Correct comment about
611 2013-11-15 Ian Lance Taylor <iant@google.com>
613 * backtrace.h (backtrace_syminfo): Update comment and parameter
614 name to take any address, not just a PC value.
615 * elf.c (STT_OBJECT): Define.
616 (elf_nosyms): Rename parameter pc to addr.
617 (elf_symbol_search): Rename local variable pc to addr.
618 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
619 (elf_syminfo): Rename parameter pc to addr.
620 * btest.c (global): New global variable.
624 2013-10-17 Ian Lance Taylor <iant@google.com>
626 * elf.c (elf_add): Don't get the wrong offsets if a debug section
629 2013-10-15 David Malcolm <dmalcolm@redhat.com>
631 * configure.ac: Add --enable-host-shared, setting up
632 pre-existing PIC_FLAG variable within Makefile.am et al.
633 * configure: Regenerate.
635 2013-09-20 Alan Modra <amodra@gmail.com>
637 * configure: Regenerate.
639 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
641 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
643 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
645 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
646 dl_iterate_phdr callbacks.
648 2013-03-25 Ian Lance Taylor <iant@google.com>
650 * alloc.c: #include <sys/types.h>.
653 2013-01-31 Ian Lance Taylor <iant@google.com>
655 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
656 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
658 2013-01-25 Jakub Jelinek <jakub@redhat.com>
661 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
662 attribute was not seen.
664 2013-01-16 Ian Lance Taylor <iant@google.com>
666 * dwarf.c (struct unit): Add filename and abs_filename fields.
667 (build_address_map): Set new fields when reading unit.
668 (dwarf_lookup_pc): If we don't find an entry in the line table,
669 just return the main file name.
671 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
673 Update copyright years.
675 2013-01-01 Ian Lance Taylor <iant@google.com>
678 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
679 $(MULTIBUILDTOP)/../../gcc/include.
680 * Makefile.in: Rebuild.
682 2013-01-01 Ian Lance Taylor <iant@google.com>
685 * mmap.c (backtrace_alloc): Don't call sync functions if not
687 (backtrace_free): Likewise.
689 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
691 * mmapio.c: Define MAP_FAILED if not defined.
693 2012-12-11 Jakub Jelinek <jakub@redhat.com>
696 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
697 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
698 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
700 * Makefile.in: Regenerated.
701 * configure: Regenerated.
703 2012-12-07 Jakub Jelinek <jakub@redhat.com>
706 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
707 * Makefile.in: Regenerated.
709 2012-11-20 Ian Lance Taylor <iant@google.com>
711 * dwarf.c (read_attribute): Always clear val.
713 2012-11-13 Ian Lance Taylor <iant@google.com>
716 * configure.ac: Only add -Werror if building a target library.
717 * configure: Rebuild.
719 2012-11-12 Ian Lance Taylor <iant@google.com>
720 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
721 Gerald Pfeifer <gerald@pfeifer.com>
723 * configure.ac: Check for getexecname.
724 * fileline.c: #include <errno.h>. Define getexecname if not
726 (fileline_initialize): Try to find the executable in a few
728 * print.c (error_callback): Only print the filename if it came
729 from the backtrace state.
730 * configure, config.h.in: Rebuild.
732 2012-10-29 Ian Lance Taylor <iant@google.com>
734 * mmap.c (backtrace_vector_release): Correct last patch: add
737 2012-10-29 Ian Lance Taylor <iant@google.com>
739 * mmap.c (backtrace_vector_release): Make sure freed block is
740 aligned on 8-byte boundary.
742 2012-10-26 Ian Lance Taylor <iant@google.com>
745 * posix.c (backtrace_open): Add does_not_exist parameter.
746 * elf.c (phdr_callback): Do not warn if shared library could not
748 * fileline.c (fileline_initialize): Update calls to
750 * internal.h (backtrace_open): Update declaration.
752 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
755 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
756 * configure: Regenerate.
758 2012-10-24 Ian Lance Taylor <iant@google.com>
761 * configure.ac: Check whether -funwind-tables option works.
762 * configure: Rebuild.
764 2012-10-11 Ian Lance Taylor <iant@google.com>
766 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
767 * configure: Rebuild.
769 2012-10-10 Ian Lance Taylor <iant@google.com>
771 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
774 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
776 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
778 2012-10-09 Ian Lance Taylor <iant@google.com>
780 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
781 (backtrace_dwarf_add): Likewise.
783 2012-10-09 Ian Lance Taylor <iant@google.com>
785 Add support for tracing through shared libraries.
786 * configure.ac: Check for link.h and dl_iterate_phdr.
787 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
788 ELF macros before #defining them.
789 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
791 (struct elf_syminfo_data): Add next field.
792 (elf_initialize_syminfo): Initialize next field.
793 (elf_add_syminfo_data): New static function.
794 (elf_add): New static function, broken out of
795 backtrace_initialize. Call backtrace_dwarf_add instead of
796 backtrace_dwarf_initialize.
797 (struct phdr_data): Define.
798 (phdr_callback): New static function.
799 (backtrace_initialize): Call elf_add.
800 * dwarf.c (struct dwarf_data): Add next and base_address fields.
801 (add_unit_addr): Add base_address parameter. Change all callers.
802 (add_unit_ranges, build_address_map): Likewise.
803 (add_line): Add ddata parameter. Change all callers.
804 (read_line_program, add_function_range): Likewise.
805 (dwarf_lookup_pc): New static function, broken out of
807 (dwarf_fileline): Call dwarf_lookup_pc.
808 (build_dwarf_data): New static function.
809 (backtrace_dwarf_add): New function.
810 (backtrace_dwarf_initialize): Remove.
811 * internal.h (backtrace_dwarf_initialize): Don't declare.
812 (backtrace_dwarf_add): Declare.
813 * configure, config.h.in: Rebuild.
815 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
817 * btest.c (f23): Avoid uninitialized variable warning.
819 2012-10-04 Ian Lance Taylor <iant@google.com>
821 * dwarf.c: If the system header files do not declare strnlen,
822 provide our own version.
824 2012-10-03 Ian Lance Taylor <iant@google.com>
826 * dwarf.c (read_uleb128): Fix overflow test.
827 (read_sleb128): Likewise.
828 (build_address_map): Don't change unit_buf.start.
830 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
833 * configure.ac (EXTRA_FLAGS): New.
834 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
835 * configure, Makefile.in: Regenerate.
837 2012-09-29 Ian Lance Taylor <iant@google.com>
840 * fileline.c (fileline_initialize): Pass errnum as -1 when
841 reporting that we could not read executable information after a
844 2012-09-27 Ian Lance Taylor <iant@google.com>
847 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
848 * Makefile.am: Add dependencies for all objects.
849 * configure, aclocal.m4, Makefile.in: Rebuild.
851 2012-09-27 Ian Lance Taylor <iant@google.com>
854 * elf.c (backtrace_initialize): Set *fileln_fn, not
857 2012-09-19 Ian Lance Taylor <iant@google.com>
859 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
861 * configure: Rebuild.
863 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
864 Ian Lance Taylor <iant@google.com>
866 * configure.ac (GCC_HEADER_STDINT): Invoke.
867 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
868 * btest.c: Don't include <stdint.h>.
870 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
872 2012-09-18 Ian Lance Taylor <iant@google.com>
875 * Makefile.am (AM_CPPFLAGS): Define.
876 (AM_CFLAGS): Remove -I options.
877 * Makefile.in: Rebuild.
879 2012-09-18 Ian Lance Taylor <iant@google.com>
881 * posix.c (O_BINARY): Define if not defined.
882 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
883 HAVE_FCNTL is defined.
884 * configure.ac: Test for the fcntl function.
885 * configure, config.h.in: Rebuild.
887 2012-09-18 Ian Lance Taylor <iant@google.com>
889 * btest.c (test1, test2, test3, test4): Add the unused attribute.
891 2012-09-18 Ian Lance Taylor <iant@google.com>
893 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
895 2012-09-18 Ian Lance Taylor <iant@google.com>
897 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
898 * mmapio.c: Don't define _GNU_SOURCE.
899 * configure, config.h.in: Rebuild.
901 2012-09-18 Ian Lance Taylor <iant@google.com>
903 * configure.ac: Check whether strnlen is declared.
904 * dwarf.c: Declare strnlen if not declared.
905 * configure, config.h.in: Rebuild.
907 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
909 * fileline.c: Include <stdlib.h>.
912 2012-09-17 Ian Lance Taylor <iant@google.com>
915 * nounwind.c (backtrace_full): Rename from backtrace. Add state
918 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
921 * nounwind.c (backtrace_simple): Add state parameter.
923 2012-09-17 Ian Lance Taylor <iant@google.com>
926 * unknown.c (unknown_fileline): Add state parameter, remove
927 fileline_data parameter, name error_callback parameter.
928 (backtrace_initialize): Add state parameter.
930 2012-09-17 Ian Lance Taylor <iant@google.com>
932 * Initial implementation.
934 Copyright (C) 2012-2018 Free Software Foundation, Inc.
936 Copying and distribution of this file, with or without modification,
937 are permitted in any medium without royalty provided the copyright
938 notice and this notice are preserved.