1 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
3 Update copyright years.
5 2013-01-01 Ian Lance Taylor <iant@google.com>
8 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
9 $(MULTIBUILDTOP)/../../gcc/include.
10 * Makefile.in: Rebuild.
12 2013-01-01 Ian Lance Taylor <iant@google.com>
15 * mmap.c (backtrace_alloc): Don't call sync functions if not
17 (backtrace_free): Likewise.
19 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21 * mmapio.c: Define MAP_FAILED if not defined.
23 2012-12-11 Jakub Jelinek <jakub@redhat.com>
26 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
27 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
28 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
30 * Makefile.in: Regenerated.
31 * configure: Regenerated.
33 2012-12-07 Jakub Jelinek <jakub@redhat.com>
36 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
37 * Makefile.in: Regenerated.
39 2012-11-20 Ian Lance Taylor <iant@google.com>
41 * dwarf.c (read_attribute): Always clear val.
43 2012-11-13 Ian Lance Taylor <iant@google.com>
46 * configure.ac: Only add -Werror if building a target library.
49 2012-11-12 Ian Lance Taylor <iant@google.com>
50 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
51 Gerald Pfeifer <gerald@pfeifer.com>
53 * configure.ac: Check for getexecname.
54 * fileline.c: #include <errno.h>. Define getexecname if not
56 (fileline_initialize): Try to find the executable in a few
58 * print.c (error_callback): Only print the filename if it came
59 from the backtrace state.
60 * configure, config.h.in: Rebuild.
62 2012-10-29 Ian Lance Taylor <iant@google.com>
64 * mmap.c (backtrace_vector_release): Correct last patch: add
67 2012-10-29 Ian Lance Taylor <iant@google.com>
69 * mmap.c (backtrace_vector_release): Make sure freed block is
70 aligned on 8-byte boundary.
72 2012-10-26 Ian Lance Taylor <iant@google.com>
75 * posix.c (backtrace_open): Add does_not_exist parameter.
76 * elf.c (phdr_callback): Do not warn if shared library could not
78 * fileline.c (fileline_initialize): Update calls to
80 * internal.h (backtrace_open): Update declaration.
82 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
85 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
86 * configure: Regenerate.
88 2012-10-24 Ian Lance Taylor <iant@google.com>
91 * configure.ac: Check whether -funwind-tables option works.
94 2012-10-11 Ian Lance Taylor <iant@google.com>
96 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
99 2012-10-10 Ian Lance Taylor <iant@google.com>
101 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
104 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
106 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
108 2012-10-09 Ian Lance Taylor <iant@google.com>
110 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
111 (backtrace_dwarf_add): Likewise.
113 2012-10-09 Ian Lance Taylor <iant@google.com>
115 Add support for tracing through shared libraries.
116 * configure.ac: Check for link.h and dl_iterate_phdr.
117 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
118 ELF macros before #defining them.
119 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
121 (struct elf_syminfo_data): Add next field.
122 (elf_initialize_syminfo): Initialize next field.
123 (elf_add_syminfo_data): New static function.
124 (elf_add): New static function, broken out of
125 backtrace_initialize. Call backtrace_dwarf_add instead of
126 backtrace_dwarf_initialize.
127 (struct phdr_data): Define.
128 (phdr_callback): New static function.
129 (backtrace_initialize): Call elf_add.
130 * dwarf.c (struct dwarf_data): Add next and base_address fields.
131 (add_unit_addr): Add base_address parameter. Change all callers.
132 (add_unit_ranges, build_address_map): Likewise.
133 (add_line): Add ddata parameter. Change all callers.
134 (read_line_program, add_function_range): Likewise.
135 (dwarf_lookup_pc): New static function, broken out of
137 (dwarf_fileline): Call dwarf_lookup_pc.
138 (build_dwarf_data): New static function.
139 (backtrace_dwarf_add): New function.
140 (backtrace_dwarf_initialize): Remove.
141 * internal.h (backtrace_dwarf_initialize): Don't declare.
142 (backtrace_dwarf_add): Declare.
143 * configure, config.h.in: Rebuild.
145 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
147 * btest.c (f23): Avoid uninitialized variable warning.
149 2012-10-04 Ian Lance Taylor <iant@google.com>
151 * dwarf.c: If the system header files do not declare strnlen,
152 provide our own version.
154 2012-10-03 Ian Lance Taylor <iant@google.com>
156 * dwarf.c (read_uleb128): Fix overflow test.
157 (read_sleb128): Likewise.
158 (build_address_map): Don't change unit_buf.start.
160 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
163 * configure.ac (EXTRA_FLAGS): New.
164 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
165 * configure, Makefile.in: Regenerate.
167 2012-09-29 Ian Lance Taylor <iant@google.com>
170 * fileline.c (fileline_initialize): Pass errnum as -1 when
171 reporting that we could not read executable information after a
174 2012-09-27 Ian Lance Taylor <iant@google.com>
177 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
178 * Makefile.am: Add dependencies for all objects.
179 * configure, aclocal.m4, Makefile.in: Rebuild.
181 2012-09-27 Ian Lance Taylor <iant@google.com>
184 * elf.c (backtrace_initialize): Set *fileln_fn, not
187 2012-09-19 Ian Lance Taylor <iant@google.com>
189 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
191 * configure: Rebuild.
193 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194 Ian Lance Taylor <iant@google.com>
196 * configure.ac (GCC_HEADER_STDINT): Invoke.
197 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
198 * btest.c: Don't include <stdint.h>.
200 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
202 2012-09-18 Ian Lance Taylor <iant@google.com>
205 * Makefile.am (AM_CPPFLAGS): Define.
206 (AM_CFLAGS): Remove -I options.
207 * Makefile.in: Rebuild.
209 2012-09-18 Ian Lance Taylor <iant@google.com>
211 * posix.c (O_BINARY): Define if not defined.
212 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
213 HAVE_FCNTL is defined.
214 * configure.ac: Test for the fcntl function.
215 * configure, config.h.in: Rebuild.
217 2012-09-18 Ian Lance Taylor <iant@google.com>
219 * btest.c (test1, test2, test3, test4): Add the unused attribute.
221 2012-09-18 Ian Lance Taylor <iant@google.com>
223 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
225 2012-09-18 Ian Lance Taylor <iant@google.com>
227 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
228 * mmapio.c: Don't define _GNU_SOURCE.
229 * configure, config.h.in: Rebuild.
231 2012-09-18 Ian Lance Taylor <iant@google.com>
233 * configure.ac: Check whether strnlen is declared.
234 * dwarf.c: Declare strnlen if not declared.
235 * configure, config.h.in: Rebuild.
237 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
239 * fileline.c: Include <stdlib.h>.
242 2012-09-17 Ian Lance Taylor <iant@google.com>
245 * nounwind.c (backtrace_full): Rename from backtrace. Add state
248 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
251 * nounwind.c (backtrace_simple): Add state parameter.
253 2012-09-17 Ian Lance Taylor <iant@google.com>
256 * unknown.c (unknown_fileline): Add state parameter, remove
257 fileline_data parameter, name error_callback parameter.
258 (backtrace_initialize): Add state parameter.
260 2012-09-17 Ian Lance Taylor <iant@google.com>
262 * Initial implementation.