1 2013-10-17 Ian Lance Taylor <iant@google.com>
3 * elf.c (elf_add): Don't get the wrong offsets if a debug section
6 2013-10-15 David Malcolm <dmalcolm@redhat.com>
8 * configure.ac: Add --enable-host-shared, setting up
9 pre-existing PIC_FLAG variable within Makefile.am et al.
10 * configure: Regenerate.
12 2013-09-20 Alan Modra <amodra@gmail.com>
14 * configure: Regenerate.
16 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
18 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
20 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
22 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
23 dl_iterate_phdr callbacks.
25 2013-03-25 Ian Lance Taylor <iant@google.com>
27 * alloc.c: #include <sys/types.h>.
30 2013-01-31 Ian Lance Taylor <iant@google.com>
32 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
33 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
35 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
39 attribute was not seen.
41 2013-01-16 Ian Lance Taylor <iant@google.com>
43 * dwarf.c (struct unit): Add filename and abs_filename fields.
44 (build_address_map): Set new fields when reading unit.
45 (dwarf_lookup_pc): If we don't find an entry in the line table,
46 just return the main file name.
48 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
50 Update copyright years.
52 2013-01-01 Ian Lance Taylor <iant@google.com>
55 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
56 $(MULTIBUILDTOP)/../../gcc/include.
57 * Makefile.in: Rebuild.
59 2013-01-01 Ian Lance Taylor <iant@google.com>
62 * mmap.c (backtrace_alloc): Don't call sync functions if not
64 (backtrace_free): Likewise.
66 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
68 * mmapio.c: Define MAP_FAILED if not defined.
70 2012-12-11 Jakub Jelinek <jakub@redhat.com>
73 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
74 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
75 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
77 * Makefile.in: Regenerated.
78 * configure: Regenerated.
80 2012-12-07 Jakub Jelinek <jakub@redhat.com>
83 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
84 * Makefile.in: Regenerated.
86 2012-11-20 Ian Lance Taylor <iant@google.com>
88 * dwarf.c (read_attribute): Always clear val.
90 2012-11-13 Ian Lance Taylor <iant@google.com>
93 * configure.ac: Only add -Werror if building a target library.
96 2012-11-12 Ian Lance Taylor <iant@google.com>
97 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
98 Gerald Pfeifer <gerald@pfeifer.com>
100 * configure.ac: Check for getexecname.
101 * fileline.c: #include <errno.h>. Define getexecname if not
103 (fileline_initialize): Try to find the executable in a few
105 * print.c (error_callback): Only print the filename if it came
106 from the backtrace state.
107 * configure, config.h.in: Rebuild.
109 2012-10-29 Ian Lance Taylor <iant@google.com>
111 * mmap.c (backtrace_vector_release): Correct last patch: add
114 2012-10-29 Ian Lance Taylor <iant@google.com>
116 * mmap.c (backtrace_vector_release): Make sure freed block is
117 aligned on 8-byte boundary.
119 2012-10-26 Ian Lance Taylor <iant@google.com>
122 * posix.c (backtrace_open): Add does_not_exist parameter.
123 * elf.c (phdr_callback): Do not warn if shared library could not
125 * fileline.c (fileline_initialize): Update calls to
127 * internal.h (backtrace_open): Update declaration.
129 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
132 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
133 * configure: Regenerate.
135 2012-10-24 Ian Lance Taylor <iant@google.com>
138 * configure.ac: Check whether -funwind-tables option works.
139 * configure: Rebuild.
141 2012-10-11 Ian Lance Taylor <iant@google.com>
143 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
144 * configure: Rebuild.
146 2012-10-10 Ian Lance Taylor <iant@google.com>
148 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
151 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
153 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
155 2012-10-09 Ian Lance Taylor <iant@google.com>
157 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
158 (backtrace_dwarf_add): Likewise.
160 2012-10-09 Ian Lance Taylor <iant@google.com>
162 Add support for tracing through shared libraries.
163 * configure.ac: Check for link.h and dl_iterate_phdr.
164 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
165 ELF macros before #defining them.
166 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
168 (struct elf_syminfo_data): Add next field.
169 (elf_initialize_syminfo): Initialize next field.
170 (elf_add_syminfo_data): New static function.
171 (elf_add): New static function, broken out of
172 backtrace_initialize. Call backtrace_dwarf_add instead of
173 backtrace_dwarf_initialize.
174 (struct phdr_data): Define.
175 (phdr_callback): New static function.
176 (backtrace_initialize): Call elf_add.
177 * dwarf.c (struct dwarf_data): Add next and base_address fields.
178 (add_unit_addr): Add base_address parameter. Change all callers.
179 (add_unit_ranges, build_address_map): Likewise.
180 (add_line): Add ddata parameter. Change all callers.
181 (read_line_program, add_function_range): Likewise.
182 (dwarf_lookup_pc): New static function, broken out of
184 (dwarf_fileline): Call dwarf_lookup_pc.
185 (build_dwarf_data): New static function.
186 (backtrace_dwarf_add): New function.
187 (backtrace_dwarf_initialize): Remove.
188 * internal.h (backtrace_dwarf_initialize): Don't declare.
189 (backtrace_dwarf_add): Declare.
190 * configure, config.h.in: Rebuild.
192 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
194 * btest.c (f23): Avoid uninitialized variable warning.
196 2012-10-04 Ian Lance Taylor <iant@google.com>
198 * dwarf.c: If the system header files do not declare strnlen,
199 provide our own version.
201 2012-10-03 Ian Lance Taylor <iant@google.com>
203 * dwarf.c (read_uleb128): Fix overflow test.
204 (read_sleb128): Likewise.
205 (build_address_map): Don't change unit_buf.start.
207 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
210 * configure.ac (EXTRA_FLAGS): New.
211 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
212 * configure, Makefile.in: Regenerate.
214 2012-09-29 Ian Lance Taylor <iant@google.com>
217 * fileline.c (fileline_initialize): Pass errnum as -1 when
218 reporting that we could not read executable information after a
221 2012-09-27 Ian Lance Taylor <iant@google.com>
224 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
225 * Makefile.am: Add dependencies for all objects.
226 * configure, aclocal.m4, Makefile.in: Rebuild.
228 2012-09-27 Ian Lance Taylor <iant@google.com>
231 * elf.c (backtrace_initialize): Set *fileln_fn, not
234 2012-09-19 Ian Lance Taylor <iant@google.com>
236 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
238 * configure: Rebuild.
240 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241 Ian Lance Taylor <iant@google.com>
243 * configure.ac (GCC_HEADER_STDINT): Invoke.
244 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
245 * btest.c: Don't include <stdint.h>.
247 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
249 2012-09-18 Ian Lance Taylor <iant@google.com>
252 * Makefile.am (AM_CPPFLAGS): Define.
253 (AM_CFLAGS): Remove -I options.
254 * Makefile.in: Rebuild.
256 2012-09-18 Ian Lance Taylor <iant@google.com>
258 * posix.c (O_BINARY): Define if not defined.
259 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
260 HAVE_FCNTL is defined.
261 * configure.ac: Test for the fcntl function.
262 * configure, config.h.in: Rebuild.
264 2012-09-18 Ian Lance Taylor <iant@google.com>
266 * btest.c (test1, test2, test3, test4): Add the unused attribute.
268 2012-09-18 Ian Lance Taylor <iant@google.com>
270 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
272 2012-09-18 Ian Lance Taylor <iant@google.com>
274 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
275 * mmapio.c: Don't define _GNU_SOURCE.
276 * configure, config.h.in: Rebuild.
278 2012-09-18 Ian Lance Taylor <iant@google.com>
280 * configure.ac: Check whether strnlen is declared.
281 * dwarf.c: Declare strnlen if not declared.
282 * configure, config.h.in: Rebuild.
284 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286 * fileline.c: Include <stdlib.h>.
289 2012-09-17 Ian Lance Taylor <iant@google.com>
292 * nounwind.c (backtrace_full): Rename from backtrace. Add state
295 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
298 * nounwind.c (backtrace_simple): Add state parameter.
300 2012-09-17 Ian Lance Taylor <iant@google.com>
303 * unknown.c (unknown_fileline): Add state parameter, remove
304 fileline_data parameter, name error_callback parameter.
305 (backtrace_initialize): Add state parameter.
307 2012-09-17 Ian Lance Taylor <iant@google.com>
309 * Initial implementation.