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