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