1 2015-12-04 Release Manager
5 2015-07-16 Release Manager
9 2015-04-22 Release Manager
13 2015-01-24 Matthias Klose <doko@ubuntu.com>
15 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
16 * configure: Regenerate.
18 2015-01-05 Jakub Jelinek <jakub@redhat.com>
20 Update copyright years.
22 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
25 * configure: Regenerated.
27 2014-11-11 David Malcolm <dmalcolm@redhat.com>
31 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
34 * configure: Regenerate.
36 2014-10-23 Ian Lance Taylor <iant@google.com>
38 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
41 2014-05-08 Ian Lance Taylor <iant@google.com>
43 * mmap.c (backtrace_free): If freeing a large aligned block of
44 memory, call munmap rather than holding onto it.
45 (backtrace_vector_grow): When growing a vector, double the number
46 of pages requested. When releasing the old version of a grown
47 vector, pass the correct size to backtrace_free.
49 2014-03-07 Ian Lance Taylor <iant@google.com>
51 * sort.c (backtrace_qsort): Use middle element as pivot.
53 2014-03-06 Ian Lance Taylor <iant@google.com>
57 * internal.h (backtrace_qsort): Declare.
58 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
59 (read_line_info, read_function_entry): Likewise.
60 (read_function_info, build_dwarf_data): Likewise.
61 * elf.c (elf_initialize_syminfo): Likewise.
62 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
63 (stest_SOURCES, stest_LDADD): Define.
64 (check_PROGRAMS): Add stest.
66 2014-02-07 Misty De Meo <misty@brew.sh>
69 * configure.ac: Use AC_LINK_IFELSE in check for
71 * configure: Regenerate.
73 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
75 Update copyright years
77 2013-12-06 Jakub Jelinek <jakub@redhat.com>
79 * elf.c (ET_DYN): Undefine and define again.
80 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
81 return early -1 without closing the descriptor.
82 (struct phdr_data): Add exe_descriptor.
83 (phdr_callback): If pd->exe_descriptor is not -1, for very first
84 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
85 otherwise backtrace_close the exe_descriptor if not -1. Adjust
87 (backtrace_initialize): Adjust call to elf_add. If it returns
88 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
90 2013-12-05 Ian Lance Taylor <iant@google.com>
92 * alloc.c (backtrace_vector_finish): Add error_callback and data
93 parameters. Call backtrace_vector_release. Return address base.
94 * mmap.c (backtrace_vector_finish): Add error_callback and data
95 parameters. Return address base.
96 * dwarf.c (read_function_info): Get new address base from
97 backtrace_vector_finish.
98 * internal.h (backtrace_vector_finish): Update declaration.
100 2013-11-27 Ian Lance Taylor <iant@google.com>
102 * dwarf.c (find_address_ranges): New static function, broken out
103 of build_address_map.
104 (build_address_map): Call it.
105 * btest.c (check): Check for missing filename or function, rather
107 (f3): Check that enough frames were returned.
109 2013-11-19 Jakub Jelinek <jakub@redhat.com>
111 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
112 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
114 * btest.c (struct symdata): Add size field.
115 (callback_three): Add symsize argument. Copy it to the data->size
117 (f23): Set symdata.size to 0.
118 (test5): Likewise. If sizeof (int) > 1, lookup address of
119 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
122 * atomic.c: Include sys/types.h.
124 2013-11-18 Ian Lance Taylor <iant@google.com>
126 * configure.ac: Check for support of __atomic extensions.
127 * internal.h: Declare or #define atomic functions for use in
129 * atomic.c: New file.
130 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
131 (dwarf_fileline, backtrace_dwarf_add): Likewise.
132 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
133 (backtrace_initialize): Likewise.
134 * fileline.c (fileline_initialize): Likewise.
135 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
136 * configure, config.h.in, Makefile.in: Rebuild.
138 2013-11-18 Jakub Jelinek <jakub@redhat.com>
140 * elf.c (SHN_UNDEF): Define.
141 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
142 with st_shndx == SHN_UNDEF. Add base_address to address fields.
143 (elf_add): Adjust caller.
145 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
147 2013-11-16 Ian Lance Taylor <iant@google.com>
149 * backtrace.h (backtrace_create_state): Correct comment about
152 2013-11-15 Ian Lance Taylor <iant@google.com>
154 * backtrace.h (backtrace_syminfo): Update comment and parameter
155 name to take any address, not just a PC value.
156 * elf.c (STT_OBJECT): Define.
157 (elf_nosyms): Rename parameter pc to addr.
158 (elf_symbol_search): Rename local variable pc to addr.
159 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
160 (elf_syminfo): Rename parameter pc to addr.
161 * btest.c (global): New global variable.
165 2013-10-17 Ian Lance Taylor <iant@google.com>
167 * elf.c (elf_add): Don't get the wrong offsets if a debug section
170 2013-10-15 David Malcolm <dmalcolm@redhat.com>
172 * configure.ac: Add --enable-host-shared, setting up
173 pre-existing PIC_FLAG variable within Makefile.am et al.
174 * configure: Regenerate.
176 2013-09-20 Alan Modra <amodra@gmail.com>
178 * configure: Regenerate.
180 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
182 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
184 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
186 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
187 dl_iterate_phdr callbacks.
189 2013-03-25 Ian Lance Taylor <iant@google.com>
191 * alloc.c: #include <sys/types.h>.
194 2013-01-31 Ian Lance Taylor <iant@google.com>
196 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
197 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
199 2013-01-25 Jakub Jelinek <jakub@redhat.com>
202 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
203 attribute was not seen.
205 2013-01-16 Ian Lance Taylor <iant@google.com>
207 * dwarf.c (struct unit): Add filename and abs_filename fields.
208 (build_address_map): Set new fields when reading unit.
209 (dwarf_lookup_pc): If we don't find an entry in the line table,
210 just return the main file name.
212 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
214 Update copyright years.
216 2013-01-01 Ian Lance Taylor <iant@google.com>
219 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
220 $(MULTIBUILDTOP)/../../gcc/include.
221 * Makefile.in: Rebuild.
223 2013-01-01 Ian Lance Taylor <iant@google.com>
226 * mmap.c (backtrace_alloc): Don't call sync functions if not
228 (backtrace_free): Likewise.
230 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
232 * mmapio.c: Define MAP_FAILED if not defined.
234 2012-12-11 Jakub Jelinek <jakub@redhat.com>
237 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
238 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
239 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
241 * Makefile.in: Regenerated.
242 * configure: Regenerated.
244 2012-12-07 Jakub Jelinek <jakub@redhat.com>
247 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
248 * Makefile.in: Regenerated.
250 2012-11-20 Ian Lance Taylor <iant@google.com>
252 * dwarf.c (read_attribute): Always clear val.
254 2012-11-13 Ian Lance Taylor <iant@google.com>
257 * configure.ac: Only add -Werror if building a target library.
258 * configure: Rebuild.
260 2012-11-12 Ian Lance Taylor <iant@google.com>
261 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
262 Gerald Pfeifer <gerald@pfeifer.com>
264 * configure.ac: Check for getexecname.
265 * fileline.c: #include <errno.h>. Define getexecname if not
267 (fileline_initialize): Try to find the executable in a few
269 * print.c (error_callback): Only print the filename if it came
270 from the backtrace state.
271 * configure, config.h.in: Rebuild.
273 2012-10-29 Ian Lance Taylor <iant@google.com>
275 * mmap.c (backtrace_vector_release): Correct last patch: add
278 2012-10-29 Ian Lance Taylor <iant@google.com>
280 * mmap.c (backtrace_vector_release): Make sure freed block is
281 aligned on 8-byte boundary.
283 2012-10-26 Ian Lance Taylor <iant@google.com>
286 * posix.c (backtrace_open): Add does_not_exist parameter.
287 * elf.c (phdr_callback): Do not warn if shared library could not
289 * fileline.c (fileline_initialize): Update calls to
291 * internal.h (backtrace_open): Update declaration.
293 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
296 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
297 * configure: Regenerate.
299 2012-10-24 Ian Lance Taylor <iant@google.com>
302 * configure.ac: Check whether -funwind-tables option works.
303 * configure: Rebuild.
305 2012-10-11 Ian Lance Taylor <iant@google.com>
307 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
308 * configure: Rebuild.
310 2012-10-10 Ian Lance Taylor <iant@google.com>
312 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
315 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
317 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
319 2012-10-09 Ian Lance Taylor <iant@google.com>
321 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
322 (backtrace_dwarf_add): Likewise.
324 2012-10-09 Ian Lance Taylor <iant@google.com>
326 Add support for tracing through shared libraries.
327 * configure.ac: Check for link.h and dl_iterate_phdr.
328 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
329 ELF macros before #defining them.
330 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
332 (struct elf_syminfo_data): Add next field.
333 (elf_initialize_syminfo): Initialize next field.
334 (elf_add_syminfo_data): New static function.
335 (elf_add): New static function, broken out of
336 backtrace_initialize. Call backtrace_dwarf_add instead of
337 backtrace_dwarf_initialize.
338 (struct phdr_data): Define.
339 (phdr_callback): New static function.
340 (backtrace_initialize): Call elf_add.
341 * dwarf.c (struct dwarf_data): Add next and base_address fields.
342 (add_unit_addr): Add base_address parameter. Change all callers.
343 (add_unit_ranges, build_address_map): Likewise.
344 (add_line): Add ddata parameter. Change all callers.
345 (read_line_program, add_function_range): Likewise.
346 (dwarf_lookup_pc): New static function, broken out of
348 (dwarf_fileline): Call dwarf_lookup_pc.
349 (build_dwarf_data): New static function.
350 (backtrace_dwarf_add): New function.
351 (backtrace_dwarf_initialize): Remove.
352 * internal.h (backtrace_dwarf_initialize): Don't declare.
353 (backtrace_dwarf_add): Declare.
354 * configure, config.h.in: Rebuild.
356 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
358 * btest.c (f23): Avoid uninitialized variable warning.
360 2012-10-04 Ian Lance Taylor <iant@google.com>
362 * dwarf.c: If the system header files do not declare strnlen,
363 provide our own version.
365 2012-10-03 Ian Lance Taylor <iant@google.com>
367 * dwarf.c (read_uleb128): Fix overflow test.
368 (read_sleb128): Likewise.
369 (build_address_map): Don't change unit_buf.start.
371 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
374 * configure.ac (EXTRA_FLAGS): New.
375 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
376 * configure, Makefile.in: Regenerate.
378 2012-09-29 Ian Lance Taylor <iant@google.com>
381 * fileline.c (fileline_initialize): Pass errnum as -1 when
382 reporting that we could not read executable information after a
385 2012-09-27 Ian Lance Taylor <iant@google.com>
388 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
389 * Makefile.am: Add dependencies for all objects.
390 * configure, aclocal.m4, Makefile.in: Rebuild.
392 2012-09-27 Ian Lance Taylor <iant@google.com>
395 * elf.c (backtrace_initialize): Set *fileln_fn, not
398 2012-09-19 Ian Lance Taylor <iant@google.com>
400 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
402 * configure: Rebuild.
404 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405 Ian Lance Taylor <iant@google.com>
407 * configure.ac (GCC_HEADER_STDINT): Invoke.
408 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
409 * btest.c: Don't include <stdint.h>.
411 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
413 2012-09-18 Ian Lance Taylor <iant@google.com>
416 * Makefile.am (AM_CPPFLAGS): Define.
417 (AM_CFLAGS): Remove -I options.
418 * Makefile.in: Rebuild.
420 2012-09-18 Ian Lance Taylor <iant@google.com>
422 * posix.c (O_BINARY): Define if not defined.
423 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
424 HAVE_FCNTL is defined.
425 * configure.ac: Test for the fcntl function.
426 * configure, config.h.in: Rebuild.
428 2012-09-18 Ian Lance Taylor <iant@google.com>
430 * btest.c (test1, test2, test3, test4): Add the unused attribute.
432 2012-09-18 Ian Lance Taylor <iant@google.com>
434 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
436 2012-09-18 Ian Lance Taylor <iant@google.com>
438 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
439 * mmapio.c: Don't define _GNU_SOURCE.
440 * configure, config.h.in: Rebuild.
442 2012-09-18 Ian Lance Taylor <iant@google.com>
444 * configure.ac: Check whether strnlen is declared.
445 * dwarf.c: Declare strnlen if not declared.
446 * configure, config.h.in: Rebuild.
448 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
450 * fileline.c: Include <stdlib.h>.
453 2012-09-17 Ian Lance Taylor <iant@google.com>
456 * nounwind.c (backtrace_full): Rename from backtrace. Add state
459 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
462 * nounwind.c (backtrace_simple): Add state parameter.
464 2012-09-17 Ian Lance Taylor <iant@google.com>
467 * unknown.c (unknown_fileline): Add state parameter, remove
468 fileline_data parameter, name error_callback parameter.
469 (backtrace_initialize): Add state parameter.
471 2012-09-17 Ian Lance Taylor <iant@google.com>
473 * Initial implementation.