1 2015-01-24 Matthias Klose <doko@ubuntu.com>
3 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
4 * configure: Regenerate.
6 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8 Update copyright years.
10 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13 * configure: Regenerated.
15 2014-11-11 David Malcolm <dmalcolm@redhat.com>
19 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22 * configure: Regenerate.
24 2014-10-23 Ian Lance Taylor <iant@google.com>
26 * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
29 2014-05-08 Ian Lance Taylor <iant@google.com>
31 * mmap.c (backtrace_free): If freeing a large aligned block of
32 memory, call munmap rather than holding onto it.
33 (backtrace_vector_grow): When growing a vector, double the number
34 of pages requested. When releasing the old version of a grown
35 vector, pass the correct size to backtrace_free.
37 2014-03-07 Ian Lance Taylor <iant@google.com>
39 * sort.c (backtrace_qsort): Use middle element as pivot.
41 2014-03-06 Ian Lance Taylor <iant@google.com>
45 * internal.h (backtrace_qsort): Declare.
46 * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
47 (read_line_info, read_function_entry): Likewise.
48 (read_function_info, build_dwarf_data): Likewise.
49 * elf.c (elf_initialize_syminfo): Likewise.
50 * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
51 (stest_SOURCES, stest_LDADD): Define.
52 (check_PROGRAMS): Add stest.
54 2014-02-07 Misty De Meo <misty@brew.sh>
57 * configure.ac: Use AC_LINK_IFELSE in check for
59 * configure: Regenerate.
61 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
63 Update copyright years
65 2013-12-06 Jakub Jelinek <jakub@redhat.com>
67 * elf.c (ET_DYN): Undefine and define again.
68 (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
69 return early -1 without closing the descriptor.
70 (struct phdr_data): Add exe_descriptor.
71 (phdr_callback): If pd->exe_descriptor is not -1, for very first
72 call if dlpi_name is NULL just call elf_add with the exe_descriptor,
73 otherwise backtrace_close the exe_descriptor if not -1. Adjust
75 (backtrace_initialize): Adjust call to elf_add. If it returns
76 -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
78 2013-12-05 Ian Lance Taylor <iant@google.com>
80 * alloc.c (backtrace_vector_finish): Add error_callback and data
81 parameters. Call backtrace_vector_release. Return address base.
82 * mmap.c (backtrace_vector_finish): Add error_callback and data
83 parameters. Return address base.
84 * dwarf.c (read_function_info): Get new address base from
85 backtrace_vector_finish.
86 * internal.h (backtrace_vector_finish): Update declaration.
88 2013-11-27 Ian Lance Taylor <iant@google.com>
90 * dwarf.c (find_address_ranges): New static function, broken out
92 (build_address_map): Call it.
93 * btest.c (check): Check for missing filename or function, rather
95 (f3): Check that enough frames were returned.
97 2013-11-19 Jakub Jelinek <jakub@redhat.com>
99 * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
100 * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
102 * btest.c (struct symdata): Add size field.
103 (callback_three): Add symsize argument. Copy it to the data->size
105 (f23): Set symdata.size to 0.
106 (test5): Likewise. If sizeof (int) > 1, lookup address of
107 ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
110 * atomic.c: Include sys/types.h.
112 2013-11-18 Ian Lance Taylor <iant@google.com>
114 * configure.ac: Check for support of __atomic extensions.
115 * internal.h: Declare or #define atomic functions for use in
117 * atomic.c: New file.
118 * dwarf.c (dwarf_lookup_pc): Use atomic functions.
119 (dwarf_fileline, backtrace_dwarf_add): Likewise.
120 * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
121 (backtrace_initialize): Likewise.
122 * fileline.c (fileline_initialize): Likewise.
123 * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
124 * configure, config.h.in, Makefile.in: Rebuild.
126 2013-11-18 Jakub Jelinek <jakub@redhat.com>
128 * elf.c (SHN_UNDEF): Define.
129 (elf_initialize_syminfo): Add base_address argument. Ignore symbols
130 with st_shndx == SHN_UNDEF. Add base_address to address fields.
131 (elf_add): Adjust caller.
133 * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
135 2013-11-16 Ian Lance Taylor <iant@google.com>
137 * backtrace.h (backtrace_create_state): Correct comment about
140 2013-11-15 Ian Lance Taylor <iant@google.com>
142 * backtrace.h (backtrace_syminfo): Update comment and parameter
143 name to take any address, not just a PC value.
144 * elf.c (STT_OBJECT): Define.
145 (elf_nosyms): Rename parameter pc to addr.
146 (elf_symbol_search): Rename local variable pc to addr.
147 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
148 (elf_syminfo): Rename parameter pc to addr.
149 * btest.c (global): New global variable.
153 2013-10-17 Ian Lance Taylor <iant@google.com>
155 * elf.c (elf_add): Don't get the wrong offsets if a debug section
158 2013-10-15 David Malcolm <dmalcolm@redhat.com>
160 * configure.ac: Add --enable-host-shared, setting up
161 pre-existing PIC_FLAG variable within Makefile.am et al.
162 * configure: Regenerate.
164 2013-09-20 Alan Modra <amodra@gmail.com>
166 * configure: Regenerate.
168 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
170 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
172 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
174 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
175 dl_iterate_phdr callbacks.
177 2013-03-25 Ian Lance Taylor <iant@google.com>
179 * alloc.c: #include <sys/types.h>.
182 2013-01-31 Ian Lance Taylor <iant@google.com>
184 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
185 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
187 2013-01-25 Jakub Jelinek <jakub@redhat.com>
190 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
191 attribute was not seen.
193 2013-01-16 Ian Lance Taylor <iant@google.com>
195 * dwarf.c (struct unit): Add filename and abs_filename fields.
196 (build_address_map): Set new fields when reading unit.
197 (dwarf_lookup_pc): If we don't find an entry in the line table,
198 just return the main file name.
200 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
202 Update copyright years.
204 2013-01-01 Ian Lance Taylor <iant@google.com>
207 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
208 $(MULTIBUILDTOP)/../../gcc/include.
209 * Makefile.in: Rebuild.
211 2013-01-01 Ian Lance Taylor <iant@google.com>
214 * mmap.c (backtrace_alloc): Don't call sync functions if not
216 (backtrace_free): Likewise.
218 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
220 * mmapio.c: Define MAP_FAILED if not defined.
222 2012-12-11 Jakub Jelinek <jakub@redhat.com>
225 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
226 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
227 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
229 * Makefile.in: Regenerated.
230 * configure: Regenerated.
232 2012-12-07 Jakub Jelinek <jakub@redhat.com>
235 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
236 * Makefile.in: Regenerated.
238 2012-11-20 Ian Lance Taylor <iant@google.com>
240 * dwarf.c (read_attribute): Always clear val.
242 2012-11-13 Ian Lance Taylor <iant@google.com>
245 * configure.ac: Only add -Werror if building a target library.
246 * configure: Rebuild.
248 2012-11-12 Ian Lance Taylor <iant@google.com>
249 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
250 Gerald Pfeifer <gerald@pfeifer.com>
252 * configure.ac: Check for getexecname.
253 * fileline.c: #include <errno.h>. Define getexecname if not
255 (fileline_initialize): Try to find the executable in a few
257 * print.c (error_callback): Only print the filename if it came
258 from the backtrace state.
259 * configure, config.h.in: Rebuild.
261 2012-10-29 Ian Lance Taylor <iant@google.com>
263 * mmap.c (backtrace_vector_release): Correct last patch: add
266 2012-10-29 Ian Lance Taylor <iant@google.com>
268 * mmap.c (backtrace_vector_release): Make sure freed block is
269 aligned on 8-byte boundary.
271 2012-10-26 Ian Lance Taylor <iant@google.com>
274 * posix.c (backtrace_open): Add does_not_exist parameter.
275 * elf.c (phdr_callback): Do not warn if shared library could not
277 * fileline.c (fileline_initialize): Update calls to
279 * internal.h (backtrace_open): Update declaration.
281 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
284 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
285 * configure: Regenerate.
287 2012-10-24 Ian Lance Taylor <iant@google.com>
290 * configure.ac: Check whether -funwind-tables option works.
291 * configure: Rebuild.
293 2012-10-11 Ian Lance Taylor <iant@google.com>
295 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
296 * configure: Rebuild.
298 2012-10-10 Ian Lance Taylor <iant@google.com>
300 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
303 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
305 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
307 2012-10-09 Ian Lance Taylor <iant@google.com>
309 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
310 (backtrace_dwarf_add): Likewise.
312 2012-10-09 Ian Lance Taylor <iant@google.com>
314 Add support for tracing through shared libraries.
315 * configure.ac: Check for link.h and dl_iterate_phdr.
316 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
317 ELF macros before #defining them.
318 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
320 (struct elf_syminfo_data): Add next field.
321 (elf_initialize_syminfo): Initialize next field.
322 (elf_add_syminfo_data): New static function.
323 (elf_add): New static function, broken out of
324 backtrace_initialize. Call backtrace_dwarf_add instead of
325 backtrace_dwarf_initialize.
326 (struct phdr_data): Define.
327 (phdr_callback): New static function.
328 (backtrace_initialize): Call elf_add.
329 * dwarf.c (struct dwarf_data): Add next and base_address fields.
330 (add_unit_addr): Add base_address parameter. Change all callers.
331 (add_unit_ranges, build_address_map): Likewise.
332 (add_line): Add ddata parameter. Change all callers.
333 (read_line_program, add_function_range): Likewise.
334 (dwarf_lookup_pc): New static function, broken out of
336 (dwarf_fileline): Call dwarf_lookup_pc.
337 (build_dwarf_data): New static function.
338 (backtrace_dwarf_add): New function.
339 (backtrace_dwarf_initialize): Remove.
340 * internal.h (backtrace_dwarf_initialize): Don't declare.
341 (backtrace_dwarf_add): Declare.
342 * configure, config.h.in: Rebuild.
344 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
346 * btest.c (f23): Avoid uninitialized variable warning.
348 2012-10-04 Ian Lance Taylor <iant@google.com>
350 * dwarf.c: If the system header files do not declare strnlen,
351 provide our own version.
353 2012-10-03 Ian Lance Taylor <iant@google.com>
355 * dwarf.c (read_uleb128): Fix overflow test.
356 (read_sleb128): Likewise.
357 (build_address_map): Don't change unit_buf.start.
359 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
362 * configure.ac (EXTRA_FLAGS): New.
363 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
364 * configure, Makefile.in: Regenerate.
366 2012-09-29 Ian Lance Taylor <iant@google.com>
369 * fileline.c (fileline_initialize): Pass errnum as -1 when
370 reporting that we could not read executable information after a
373 2012-09-27 Ian Lance Taylor <iant@google.com>
376 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
377 * Makefile.am: Add dependencies for all objects.
378 * configure, aclocal.m4, Makefile.in: Rebuild.
380 2012-09-27 Ian Lance Taylor <iant@google.com>
383 * elf.c (backtrace_initialize): Set *fileln_fn, not
386 2012-09-19 Ian Lance Taylor <iant@google.com>
388 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
390 * configure: Rebuild.
392 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
393 Ian Lance Taylor <iant@google.com>
395 * configure.ac (GCC_HEADER_STDINT): Invoke.
396 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
397 * btest.c: Don't include <stdint.h>.
399 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
401 2012-09-18 Ian Lance Taylor <iant@google.com>
404 * Makefile.am (AM_CPPFLAGS): Define.
405 (AM_CFLAGS): Remove -I options.
406 * Makefile.in: Rebuild.
408 2012-09-18 Ian Lance Taylor <iant@google.com>
410 * posix.c (O_BINARY): Define if not defined.
411 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
412 HAVE_FCNTL is defined.
413 * configure.ac: Test for the fcntl function.
414 * configure, config.h.in: Rebuild.
416 2012-09-18 Ian Lance Taylor <iant@google.com>
418 * btest.c (test1, test2, test3, test4): Add the unused attribute.
420 2012-09-18 Ian Lance Taylor <iant@google.com>
422 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
424 2012-09-18 Ian Lance Taylor <iant@google.com>
426 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
427 * mmapio.c: Don't define _GNU_SOURCE.
428 * configure, config.h.in: Rebuild.
430 2012-09-18 Ian Lance Taylor <iant@google.com>
432 * configure.ac: Check whether strnlen is declared.
433 * dwarf.c: Declare strnlen if not declared.
434 * configure, config.h.in: Rebuild.
436 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
438 * fileline.c: Include <stdlib.h>.
441 2012-09-17 Ian Lance Taylor <iant@google.com>
444 * nounwind.c (backtrace_full): Rename from backtrace. Add state
447 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
450 * nounwind.c (backtrace_simple): Add state parameter.
452 2012-09-17 Ian Lance Taylor <iant@google.com>
455 * unknown.c (unknown_fileline): Add state parameter, remove
456 fileline_data parameter, name error_callback parameter.
457 (backtrace_initialize): Add state parameter.
459 2012-09-17 Ian Lance Taylor <iant@google.com>
461 * Initial implementation.