1 2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3 * configure.ac: For spu-*-* targets, set have_fcntl to no.
4 * configure: Regenerate.
6 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8 * configure.ac: Remove [disable-shared] argument to LT_INIT.
9 Remove setting PIC_FLAG when building as target library.
10 * configure: Regenerate.
12 2015-08-26 Hans-Peter Nilsson <hp@axis.com>
14 * configure.ac: Only compile with -fPIC if the target
16 * configure: Regenerate.
18 2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20 * configure.ac: Set have_mmap to no on spu-*-* targets.
21 * configure: Regenerate.
23 2015-08-13 Ian Lance Taylor <iant@google.com>
25 * dwarf.c (read_function_entry): Add vec_inlined parameter.
28 2015-06-11 Martin Sebor <msebor@redhat.com>
31 * dwarf.c (struct line): Add new field idx.
32 (line_compare): Use it.
34 (read_line_info): Reset it.
36 2015-05-29 Tristan Gingold <gingold@adacore.com>
39 * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
40 * Makefile.in: Regenerate.
41 * filetype.awk: Detect pecoff.
42 * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
44 * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
46 * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
47 * configure: Regenerate.
50 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
52 * Makefile.in: Regenerated with automake-1.11.6.
53 * aclocal.m4: Likewise.
54 * configure: Likewise.
56 2015-01-24 Matthias Klose <doko@ubuntu.com>
58 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
59 * configure: Regenerate.
61 2015-01-05 Jakub Jelinek <jakub@redhat.com>
63 Update copyright years.
65 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
68 * configure: Regenerated.
70 2014-11-11 David Malcolm <dmalcolm@redhat.com>
74 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
77 * configure: Regenerate.
79 2014-10-23 Ian Lance Taylor <iant@google.com>
81 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
84 2014-05-08 Ian Lance Taylor <iant@google.com>
86 * mmap.c (backtrace_free): If freeing a large aligned block of
87 memory, call munmap rather than holding onto it.
88 (backtrace_vector_grow): When growing a vector, double the number
89 of pages requested. When releasing the old version of a grown
90 vector, pass the correct size to backtrace_free.
92 2014-03-07 Ian Lance Taylor <iant@google.com>
94 * sort.c (backtrace_qsort): Use middle element as pivot.
96 2014-03-06 Ian Lance Taylor <iant@google.com>
100 * internal.h (backtrace_qsort): Declare.
101 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
102 (read_line_info, read_function_entry): Likewise.
103 (read_function_info, build_dwarf_data): Likewise.
104 * elf.c (elf_initialize_syminfo): Likewise.
105 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
106 (stest_SOURCES, stest_LDADD): Define.
107 (check_PROGRAMS): Add stest.
109 2014-02-07 Misty De Meo <misty@brew.sh>
112 * configure.ac: Use AC_LINK_IFELSE in check for
114 * configure: Regenerate.
116 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
118 Update copyright years
120 2013-12-06 Jakub Jelinek <jakub@redhat.com>
122 * elf.c (ET_DYN): Undefine and define again.
123 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
124 return early -1 without closing the descriptor.
125 (struct phdr_data): Add exe_descriptor.
126 (phdr_callback): If pd->exe_descriptor is not -1, for very first
127 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
128 otherwise backtrace_close the exe_descriptor if not -1. Adjust
130 (backtrace_initialize): Adjust call to elf_add. If it returns
131 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
133 2013-12-05 Ian Lance Taylor <iant@google.com>
135 * alloc.c (backtrace_vector_finish): Add error_callback and data
136 parameters. Call backtrace_vector_release. Return address base.
137 * mmap.c (backtrace_vector_finish): Add error_callback and data
138 parameters. Return address base.
139 * dwarf.c (read_function_info): Get new address base from
140 backtrace_vector_finish.
141 * internal.h (backtrace_vector_finish): Update declaration.
143 2013-11-27 Ian Lance Taylor <iant@google.com>
145 * dwarf.c (find_address_ranges): New static function, broken out
146 of build_address_map.
147 (build_address_map): Call it.
148 * btest.c (check): Check for missing filename or function, rather
150 (f3): Check that enough frames were returned.
152 2013-11-19 Jakub Jelinek <jakub@redhat.com>
154 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
155 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
157 * btest.c (struct symdata): Add size field.
158 (callback_three): Add symsize argument. Copy it to the data->size
160 (f23): Set symdata.size to 0.
161 (test5): Likewise. If sizeof (int) > 1, lookup address of
162 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
165 * atomic.c: Include sys/types.h.
167 2013-11-18 Ian Lance Taylor <iant@google.com>
169 * configure.ac: Check for support of __atomic extensions.
170 * internal.h: Declare or #define atomic functions for use in
172 * atomic.c: New file.
173 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
174 (dwarf_fileline, backtrace_dwarf_add): Likewise.
175 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
176 (backtrace_initialize): Likewise.
177 * fileline.c (fileline_initialize): Likewise.
178 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
179 * configure, config.h.in, Makefile.in: Rebuild.
181 2013-11-18 Jakub Jelinek <jakub@redhat.com>
183 * elf.c (SHN_UNDEF): Define.
184 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
185 with st_shndx == SHN_UNDEF. Add base_address to address fields.
186 (elf_add): Adjust caller.
188 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
190 2013-11-16 Ian Lance Taylor <iant@google.com>
192 * backtrace.h (backtrace_create_state): Correct comment about
195 2013-11-15 Ian Lance Taylor <iant@google.com>
197 * backtrace.h (backtrace_syminfo): Update comment and parameter
198 name to take any address, not just a PC value.
199 * elf.c (STT_OBJECT): Define.
200 (elf_nosyms): Rename parameter pc to addr.
201 (elf_symbol_search): Rename local variable pc to addr.
202 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
203 (elf_syminfo): Rename parameter pc to addr.
204 * btest.c (global): New global variable.
208 2013-10-17 Ian Lance Taylor <iant@google.com>
210 * elf.c (elf_add): Don't get the wrong offsets if a debug section
213 2013-10-15 David Malcolm <dmalcolm@redhat.com>
215 * configure.ac: Add --enable-host-shared, setting up
216 pre-existing PIC_FLAG variable within Makefile.am et al.
217 * configure: Regenerate.
219 2013-09-20 Alan Modra <amodra@gmail.com>
221 * configure: Regenerate.
223 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
225 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
227 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
229 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
230 dl_iterate_phdr callbacks.
232 2013-03-25 Ian Lance Taylor <iant@google.com>
234 * alloc.c: #include <sys/types.h>.
237 2013-01-31 Ian Lance Taylor <iant@google.com>
239 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
240 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
242 2013-01-25 Jakub Jelinek <jakub@redhat.com>
245 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
246 attribute was not seen.
248 2013-01-16 Ian Lance Taylor <iant@google.com>
250 * dwarf.c (struct unit): Add filename and abs_filename fields.
251 (build_address_map): Set new fields when reading unit.
252 (dwarf_lookup_pc): If we don't find an entry in the line table,
253 just return the main file name.
255 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
257 Update copyright years.
259 2013-01-01 Ian Lance Taylor <iant@google.com>
262 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
263 $(MULTIBUILDTOP)/../../gcc/include.
264 * Makefile.in: Rebuild.
266 2013-01-01 Ian Lance Taylor <iant@google.com>
269 * mmap.c (backtrace_alloc): Don't call sync functions if not
271 (backtrace_free): Likewise.
273 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
275 * mmapio.c: Define MAP_FAILED if not defined.
277 2012-12-11 Jakub Jelinek <jakub@redhat.com>
280 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
281 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
282 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
284 * Makefile.in: Regenerated.
285 * configure: Regenerated.
287 2012-12-07 Jakub Jelinek <jakub@redhat.com>
290 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
291 * Makefile.in: Regenerated.
293 2012-11-20 Ian Lance Taylor <iant@google.com>
295 * dwarf.c (read_attribute): Always clear val.
297 2012-11-13 Ian Lance Taylor <iant@google.com>
300 * configure.ac: Only add -Werror if building a target library.
301 * configure: Rebuild.
303 2012-11-12 Ian Lance Taylor <iant@google.com>
304 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305 Gerald Pfeifer <gerald@pfeifer.com>
307 * configure.ac: Check for getexecname.
308 * fileline.c: #include <errno.h>. Define getexecname if not
310 (fileline_initialize): Try to find the executable in a few
312 * print.c (error_callback): Only print the filename if it came
313 from the backtrace state.
314 * configure, config.h.in: Rebuild.
316 2012-10-29 Ian Lance Taylor <iant@google.com>
318 * mmap.c (backtrace_vector_release): Correct last patch: add
321 2012-10-29 Ian Lance Taylor <iant@google.com>
323 * mmap.c (backtrace_vector_release): Make sure freed block is
324 aligned on 8-byte boundary.
326 2012-10-26 Ian Lance Taylor <iant@google.com>
329 * posix.c (backtrace_open): Add does_not_exist parameter.
330 * elf.c (phdr_callback): Do not warn if shared library could not
332 * fileline.c (fileline_initialize): Update calls to
334 * internal.h (backtrace_open): Update declaration.
336 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
339 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
340 * configure: Regenerate.
342 2012-10-24 Ian Lance Taylor <iant@google.com>
345 * configure.ac: Check whether -funwind-tables option works.
346 * configure: Rebuild.
348 2012-10-11 Ian Lance Taylor <iant@google.com>
350 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
351 * configure: Rebuild.
353 2012-10-10 Ian Lance Taylor <iant@google.com>
355 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
358 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
360 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
362 2012-10-09 Ian Lance Taylor <iant@google.com>
364 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
365 (backtrace_dwarf_add): Likewise.
367 2012-10-09 Ian Lance Taylor <iant@google.com>
369 Add support for tracing through shared libraries.
370 * configure.ac: Check for link.h and dl_iterate_phdr.
371 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
372 ELF macros before #defining them.
373 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
375 (struct elf_syminfo_data): Add next field.
376 (elf_initialize_syminfo): Initialize next field.
377 (elf_add_syminfo_data): New static function.
378 (elf_add): New static function, broken out of
379 backtrace_initialize. Call backtrace_dwarf_add instead of
380 backtrace_dwarf_initialize.
381 (struct phdr_data): Define.
382 (phdr_callback): New static function.
383 (backtrace_initialize): Call elf_add.
384 * dwarf.c (struct dwarf_data): Add next and base_address fields.
385 (add_unit_addr): Add base_address parameter. Change all callers.
386 (add_unit_ranges, build_address_map): Likewise.
387 (add_line): Add ddata parameter. Change all callers.
388 (read_line_program, add_function_range): Likewise.
389 (dwarf_lookup_pc): New static function, broken out of
391 (dwarf_fileline): Call dwarf_lookup_pc.
392 (build_dwarf_data): New static function.
393 (backtrace_dwarf_add): New function.
394 (backtrace_dwarf_initialize): Remove.
395 * internal.h (backtrace_dwarf_initialize): Don't declare.
396 (backtrace_dwarf_add): Declare.
397 * configure, config.h.in: Rebuild.
399 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
401 * btest.c (f23): Avoid uninitialized variable warning.
403 2012-10-04 Ian Lance Taylor <iant@google.com>
405 * dwarf.c: If the system header files do not declare strnlen,
406 provide our own version.
408 2012-10-03 Ian Lance Taylor <iant@google.com>
410 * dwarf.c (read_uleb128): Fix overflow test.
411 (read_sleb128): Likewise.
412 (build_address_map): Don't change unit_buf.start.
414 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
417 * configure.ac (EXTRA_FLAGS): New.
418 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
419 * configure, Makefile.in: Regenerate.
421 2012-09-29 Ian Lance Taylor <iant@google.com>
424 * fileline.c (fileline_initialize): Pass errnum as -1 when
425 reporting that we could not read executable information after a
428 2012-09-27 Ian Lance Taylor <iant@google.com>
431 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
432 * Makefile.am: Add dependencies for all objects.
433 * configure, aclocal.m4, Makefile.in: Rebuild.
435 2012-09-27 Ian Lance Taylor <iant@google.com>
438 * elf.c (backtrace_initialize): Set *fileln_fn, not
441 2012-09-19 Ian Lance Taylor <iant@google.com>
443 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
445 * configure: Rebuild.
447 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
448 Ian Lance Taylor <iant@google.com>
450 * configure.ac (GCC_HEADER_STDINT): Invoke.
451 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
452 * btest.c: Don't include <stdint.h>.
454 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
456 2012-09-18 Ian Lance Taylor <iant@google.com>
459 * Makefile.am (AM_CPPFLAGS): Define.
460 (AM_CFLAGS): Remove -I options.
461 * Makefile.in: Rebuild.
463 2012-09-18 Ian Lance Taylor <iant@google.com>
465 * posix.c (O_BINARY): Define if not defined.
466 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
467 HAVE_FCNTL is defined.
468 * configure.ac: Test for the fcntl function.
469 * configure, config.h.in: Rebuild.
471 2012-09-18 Ian Lance Taylor <iant@google.com>
473 * btest.c (test1, test2, test3, test4): Add the unused attribute.
475 2012-09-18 Ian Lance Taylor <iant@google.com>
477 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
479 2012-09-18 Ian Lance Taylor <iant@google.com>
481 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
482 * mmapio.c: Don't define _GNU_SOURCE.
483 * configure, config.h.in: Rebuild.
485 2012-09-18 Ian Lance Taylor <iant@google.com>
487 * configure.ac: Check whether strnlen is declared.
488 * dwarf.c: Declare strnlen if not declared.
489 * configure, config.h.in: Rebuild.
491 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * fileline.c: Include <stdlib.h>.
496 2012-09-17 Ian Lance Taylor <iant@google.com>
499 * nounwind.c (backtrace_full): Rename from backtrace. Add state
502 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
505 * nounwind.c (backtrace_simple): Add state parameter.
507 2012-09-17 Ian Lance Taylor <iant@google.com>
510 * unknown.c (unknown_fileline): Add state parameter, remove
511 fileline_data parameter, name error_callback parameter.
512 (backtrace_initialize): Add state parameter.
514 2012-09-17 Ian Lance Taylor <iant@google.com>
516 * Initial implementation.