1 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3 * Makefile.in: Regenerated with automake-1.11.6.
4 * aclocal.m4: Likewise.
7 2015-01-24 Matthias Klose <doko@ubuntu.com>
9 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
10 * configure: Regenerate.
12 2015-01-05 Jakub Jelinek <jakub@redhat.com>
14 Update copyright years.
16 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
19 * configure: Regenerated.
21 2014-11-11 David Malcolm <dmalcolm@redhat.com>
25 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
28 * configure: Regenerate.
30 2014-10-23 Ian Lance Taylor <iant@google.com>
32 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
35 2014-05-08 Ian Lance Taylor <iant@google.com>
37 * mmap.c (backtrace_free): If freeing a large aligned block of
38 memory, call munmap rather than holding onto it.
39 (backtrace_vector_grow): When growing a vector, double the number
40 of pages requested. When releasing the old version of a grown
41 vector, pass the correct size to backtrace_free.
43 2014-03-07 Ian Lance Taylor <iant@google.com>
45 * sort.c (backtrace_qsort): Use middle element as pivot.
47 2014-03-06 Ian Lance Taylor <iant@google.com>
51 * internal.h (backtrace_qsort): Declare.
52 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
53 (read_line_info, read_function_entry): Likewise.
54 (read_function_info, build_dwarf_data): Likewise.
55 * elf.c (elf_initialize_syminfo): Likewise.
56 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
57 (stest_SOURCES, stest_LDADD): Define.
58 (check_PROGRAMS): Add stest.
60 2014-02-07 Misty De Meo <misty@brew.sh>
63 * configure.ac: Use AC_LINK_IFELSE in check for
65 * configure: Regenerate.
67 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
69 Update copyright years
71 2013-12-06 Jakub Jelinek <jakub@redhat.com>
73 * elf.c (ET_DYN): Undefine and define again.
74 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
75 return early -1 without closing the descriptor.
76 (struct phdr_data): Add exe_descriptor.
77 (phdr_callback): If pd->exe_descriptor is not -1, for very first
78 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
79 otherwise backtrace_close the exe_descriptor if not -1. Adjust
81 (backtrace_initialize): Adjust call to elf_add. If it returns
82 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
84 2013-12-05 Ian Lance Taylor <iant@google.com>
86 * alloc.c (backtrace_vector_finish): Add error_callback and data
87 parameters. Call backtrace_vector_release. Return address base.
88 * mmap.c (backtrace_vector_finish): Add error_callback and data
89 parameters. Return address base.
90 * dwarf.c (read_function_info): Get new address base from
91 backtrace_vector_finish.
92 * internal.h (backtrace_vector_finish): Update declaration.
94 2013-11-27 Ian Lance Taylor <iant@google.com>
96 * dwarf.c (find_address_ranges): New static function, broken out
98 (build_address_map): Call it.
99 * btest.c (check): Check for missing filename or function, rather
101 (f3): Check that enough frames were returned.
103 2013-11-19 Jakub Jelinek <jakub@redhat.com>
105 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
106 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
108 * btest.c (struct symdata): Add size field.
109 (callback_three): Add symsize argument. Copy it to the data->size
111 (f23): Set symdata.size to 0.
112 (test5): Likewise. If sizeof (int) > 1, lookup address of
113 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
116 * atomic.c: Include sys/types.h.
118 2013-11-18 Ian Lance Taylor <iant@google.com>
120 * configure.ac: Check for support of __atomic extensions.
121 * internal.h: Declare or #define atomic functions for use in
123 * atomic.c: New file.
124 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
125 (dwarf_fileline, backtrace_dwarf_add): Likewise.
126 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
127 (backtrace_initialize): Likewise.
128 * fileline.c (fileline_initialize): Likewise.
129 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
130 * configure, config.h.in, Makefile.in: Rebuild.
132 2013-11-18 Jakub Jelinek <jakub@redhat.com>
134 * elf.c (SHN_UNDEF): Define.
135 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
136 with st_shndx == SHN_UNDEF. Add base_address to address fields.
137 (elf_add): Adjust caller.
139 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
141 2013-11-16 Ian Lance Taylor <iant@google.com>
143 * backtrace.h (backtrace_create_state): Correct comment about
146 2013-11-15 Ian Lance Taylor <iant@google.com>
148 * backtrace.h (backtrace_syminfo): Update comment and parameter
149 name to take any address, not just a PC value.
150 * elf.c (STT_OBJECT): Define.
151 (elf_nosyms): Rename parameter pc to addr.
152 (elf_symbol_search): Rename local variable pc to addr.
153 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
154 (elf_syminfo): Rename parameter pc to addr.
155 * btest.c (global): New global variable.
159 2013-10-17 Ian Lance Taylor <iant@google.com>
161 * elf.c (elf_add): Don't get the wrong offsets if a debug section
164 2013-10-15 David Malcolm <dmalcolm@redhat.com>
166 * configure.ac: Add --enable-host-shared, setting up
167 pre-existing PIC_FLAG variable within Makefile.am et al.
168 * configure: Regenerate.
170 2013-09-20 Alan Modra <amodra@gmail.com>
172 * configure: Regenerate.
174 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
176 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
178 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
180 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
181 dl_iterate_phdr callbacks.
183 2013-03-25 Ian Lance Taylor <iant@google.com>
185 * alloc.c: #include <sys/types.h>.
188 2013-01-31 Ian Lance Taylor <iant@google.com>
190 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
191 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
193 2013-01-25 Jakub Jelinek <jakub@redhat.com>
196 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
197 attribute was not seen.
199 2013-01-16 Ian Lance Taylor <iant@google.com>
201 * dwarf.c (struct unit): Add filename and abs_filename fields.
202 (build_address_map): Set new fields when reading unit.
203 (dwarf_lookup_pc): If we don't find an entry in the line table,
204 just return the main file name.
206 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
208 Update copyright years.
210 2013-01-01 Ian Lance Taylor <iant@google.com>
213 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
214 $(MULTIBUILDTOP)/../../gcc/include.
215 * Makefile.in: Rebuild.
217 2013-01-01 Ian Lance Taylor <iant@google.com>
220 * mmap.c (backtrace_alloc): Don't call sync functions if not
222 (backtrace_free): Likewise.
224 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
226 * mmapio.c: Define MAP_FAILED if not defined.
228 2012-12-11 Jakub Jelinek <jakub@redhat.com>
231 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
232 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
233 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
235 * Makefile.in: Regenerated.
236 * configure: Regenerated.
238 2012-12-07 Jakub Jelinek <jakub@redhat.com>
241 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
242 * Makefile.in: Regenerated.
244 2012-11-20 Ian Lance Taylor <iant@google.com>
246 * dwarf.c (read_attribute): Always clear val.
248 2012-11-13 Ian Lance Taylor <iant@google.com>
251 * configure.ac: Only add -Werror if building a target library.
252 * configure: Rebuild.
254 2012-11-12 Ian Lance Taylor <iant@google.com>
255 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
256 Gerald Pfeifer <gerald@pfeifer.com>
258 * configure.ac: Check for getexecname.
259 * fileline.c: #include <errno.h>. Define getexecname if not
261 (fileline_initialize): Try to find the executable in a few
263 * print.c (error_callback): Only print the filename if it came
264 from the backtrace state.
265 * configure, config.h.in: Rebuild.
267 2012-10-29 Ian Lance Taylor <iant@google.com>
269 * mmap.c (backtrace_vector_release): Correct last patch: add
272 2012-10-29 Ian Lance Taylor <iant@google.com>
274 * mmap.c (backtrace_vector_release): Make sure freed block is
275 aligned on 8-byte boundary.
277 2012-10-26 Ian Lance Taylor <iant@google.com>
280 * posix.c (backtrace_open): Add does_not_exist parameter.
281 * elf.c (phdr_callback): Do not warn if shared library could not
283 * fileline.c (fileline_initialize): Update calls to
285 * internal.h (backtrace_open): Update declaration.
287 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
290 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
291 * configure: Regenerate.
293 2012-10-24 Ian Lance Taylor <iant@google.com>
296 * configure.ac: Check whether -funwind-tables option works.
297 * configure: Rebuild.
299 2012-10-11 Ian Lance Taylor <iant@google.com>
301 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
302 * configure: Rebuild.
304 2012-10-10 Ian Lance Taylor <iant@google.com>
306 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
309 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
311 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
313 2012-10-09 Ian Lance Taylor <iant@google.com>
315 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
316 (backtrace_dwarf_add): Likewise.
318 2012-10-09 Ian Lance Taylor <iant@google.com>
320 Add support for tracing through shared libraries.
321 * configure.ac: Check for link.h and dl_iterate_phdr.
322 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
323 ELF macros before #defining them.
324 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
326 (struct elf_syminfo_data): Add next field.
327 (elf_initialize_syminfo): Initialize next field.
328 (elf_add_syminfo_data): New static function.
329 (elf_add): New static function, broken out of
330 backtrace_initialize. Call backtrace_dwarf_add instead of
331 backtrace_dwarf_initialize.
332 (struct phdr_data): Define.
333 (phdr_callback): New static function.
334 (backtrace_initialize): Call elf_add.
335 * dwarf.c (struct dwarf_data): Add next and base_address fields.
336 (add_unit_addr): Add base_address parameter. Change all callers.
337 (add_unit_ranges, build_address_map): Likewise.
338 (add_line): Add ddata parameter. Change all callers.
339 (read_line_program, add_function_range): Likewise.
340 (dwarf_lookup_pc): New static function, broken out of
342 (dwarf_fileline): Call dwarf_lookup_pc.
343 (build_dwarf_data): New static function.
344 (backtrace_dwarf_add): New function.
345 (backtrace_dwarf_initialize): Remove.
346 * internal.h (backtrace_dwarf_initialize): Don't declare.
347 (backtrace_dwarf_add): Declare.
348 * configure, config.h.in: Rebuild.
350 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
352 * btest.c (f23): Avoid uninitialized variable warning.
354 2012-10-04 Ian Lance Taylor <iant@google.com>
356 * dwarf.c: If the system header files do not declare strnlen,
357 provide our own version.
359 2012-10-03 Ian Lance Taylor <iant@google.com>
361 * dwarf.c (read_uleb128): Fix overflow test.
362 (read_sleb128): Likewise.
363 (build_address_map): Don't change unit_buf.start.
365 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
368 * configure.ac (EXTRA_FLAGS): New.
369 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
370 * configure, Makefile.in: Regenerate.
372 2012-09-29 Ian Lance Taylor <iant@google.com>
375 * fileline.c (fileline_initialize): Pass errnum as -1 when
376 reporting that we could not read executable information after a
379 2012-09-27 Ian Lance Taylor <iant@google.com>
382 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
383 * Makefile.am: Add dependencies for all objects.
384 * configure, aclocal.m4, Makefile.in: Rebuild.
386 2012-09-27 Ian Lance Taylor <iant@google.com>
389 * elf.c (backtrace_initialize): Set *fileln_fn, not
392 2012-09-19 Ian Lance Taylor <iant@google.com>
394 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
396 * configure: Rebuild.
398 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399 Ian Lance Taylor <iant@google.com>
401 * configure.ac (GCC_HEADER_STDINT): Invoke.
402 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
403 * btest.c: Don't include <stdint.h>.
405 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
407 2012-09-18 Ian Lance Taylor <iant@google.com>
410 * Makefile.am (AM_CPPFLAGS): Define.
411 (AM_CFLAGS): Remove -I options.
412 * Makefile.in: Rebuild.
414 2012-09-18 Ian Lance Taylor <iant@google.com>
416 * posix.c (O_BINARY): Define if not defined.
417 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
418 HAVE_FCNTL is defined.
419 * configure.ac: Test for the fcntl function.
420 * configure, config.h.in: Rebuild.
422 2012-09-18 Ian Lance Taylor <iant@google.com>
424 * btest.c (test1, test2, test3, test4): Add the unused attribute.
426 2012-09-18 Ian Lance Taylor <iant@google.com>
428 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
430 2012-09-18 Ian Lance Taylor <iant@google.com>
432 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
433 * mmapio.c: Don't define _GNU_SOURCE.
434 * configure, config.h.in: Rebuild.
436 2012-09-18 Ian Lance Taylor <iant@google.com>
438 * configure.ac: Check whether strnlen is declared.
439 * dwarf.c: Declare strnlen if not declared.
440 * configure, config.h.in: Rebuild.
442 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
444 * fileline.c: Include <stdlib.h>.
447 2012-09-17 Ian Lance Taylor <iant@google.com>
450 * nounwind.c (backtrace_full): Rename from backtrace. Add state
453 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
456 * nounwind.c (backtrace_simple): Add state parameter.
458 2012-09-17 Ian Lance Taylor <iant@google.com>
461 * unknown.c (unknown_fileline): Add state parameter, remove
462 fileline_data parameter, name error_callback parameter.
463 (backtrace_initialize): Add state parameter.
465 2012-09-17 Ian Lance Taylor <iant@google.com>
467 * Initial implementation.