1 2013-11-16 Ian Lance Taylor <iant@google.com>
3 * backtrace.h (backtrace_create_state): Correct comment about
6 2013-11-15 Ian Lance Taylor <iant@google.com>
8 * backtrace.h (backtrace_syminfo): Update comment and parameter
9 name to take any address, not just a PC value.
10 * elf.c (STT_OBJECT): Define.
11 (elf_nosyms): Rename parameter pc to addr.
12 (elf_symbol_search): Rename local variable pc to addr.
13 (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
14 (elf_syminfo): Rename parameter pc to addr.
15 * btest.c (global): New global variable.
19 2013-10-17 Ian Lance Taylor <iant@google.com>
21 * elf.c (elf_add): Don't get the wrong offsets if a debug section
24 2013-10-15 David Malcolm <dmalcolm@redhat.com>
26 * configure.ac: Add --enable-host-shared, setting up
27 pre-existing PIC_FLAG variable within Makefile.am et al.
28 * configure: Regenerate.
30 2013-09-20 Alan Modra <amodra@gmail.com>
32 * configure: Regenerate.
34 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
36 * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
38 2013-07-23 Alexander Monakov <amonakov@ispras.ru>
40 * elf.c (backtrace_initialize): Pass elf_fileline_fn to
41 dl_iterate_phdr callbacks.
43 2013-03-25 Ian Lance Taylor <iant@google.com>
45 * alloc.c: #include <sys/types.h>.
48 2013-01-31 Ian Lance Taylor <iant@google.com>
50 * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
51 (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
53 2013-01-25 Jakub Jelinek <jakub@redhat.com>
56 * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
57 attribute was not seen.
59 2013-01-16 Ian Lance Taylor <iant@google.com>
61 * dwarf.c (struct unit): Add filename and abs_filename fields.
62 (build_address_map): Set new fields when reading unit.
63 (dwarf_lookup_pc): If we don't find an entry in the line table,
64 just return the main file name.
66 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
68 Update copyright years.
70 2013-01-01 Ian Lance Taylor <iant@google.com>
73 * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
74 $(MULTIBUILDTOP)/../../gcc/include.
75 * Makefile.in: Rebuild.
77 2013-01-01 Ian Lance Taylor <iant@google.com>
80 * mmap.c (backtrace_alloc): Don't call sync functions if not
82 (backtrace_free): Likewise.
84 2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86 * mmapio.c: Define MAP_FAILED if not defined.
88 2012-12-11 Jakub Jelinek <jakub@redhat.com>
91 * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
92 * configure.ac: If --with-target-subdir, add -frandom-seed=$@
93 to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
95 * Makefile.in: Regenerated.
96 * configure: Regenerated.
98 2012-12-07 Jakub Jelinek <jakub@redhat.com>
101 * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
102 * Makefile.in: Regenerated.
104 2012-11-20 Ian Lance Taylor <iant@google.com>
106 * dwarf.c (read_attribute): Always clear val.
108 2012-11-13 Ian Lance Taylor <iant@google.com>
111 * configure.ac: Only add -Werror if building a target library.
112 * configure: Rebuild.
114 2012-11-12 Ian Lance Taylor <iant@google.com>
115 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116 Gerald Pfeifer <gerald@pfeifer.com>
118 * configure.ac: Check for getexecname.
119 * fileline.c: #include <errno.h>. Define getexecname if not
121 (fileline_initialize): Try to find the executable in a few
123 * print.c (error_callback): Only print the filename if it came
124 from the backtrace state.
125 * configure, config.h.in: Rebuild.
127 2012-10-29 Ian Lance Taylor <iant@google.com>
129 * mmap.c (backtrace_vector_release): Correct last patch: add
132 2012-10-29 Ian Lance Taylor <iant@google.com>
134 * mmap.c (backtrace_vector_release): Make sure freed block is
135 aligned on 8-byte boundary.
137 2012-10-26 Ian Lance Taylor <iant@google.com>
140 * posix.c (backtrace_open): Add does_not_exist parameter.
141 * elf.c (phdr_callback): Do not warn if shared library could not
143 * fileline.c (fileline_initialize): Update calls to
145 * internal.h (backtrace_open): Update declaration.
147 2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
150 * configure.ac: Check for _Unwind_GetIPInfo function declaration.
151 * configure: Regenerate.
153 2012-10-24 Ian Lance Taylor <iant@google.com>
156 * configure.ac: Check whether -funwind-tables option works.
157 * configure: Rebuild.
159 2012-10-11 Ian Lance Taylor <iant@google.com>
161 * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
162 * configure: Rebuild.
164 2012-10-10 Ian Lance Taylor <iant@google.com>
166 * elf.c: Rename all Elf typedefs to start with b_elf, and be all
169 2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
171 * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
173 2012-10-09 Ian Lance Taylor <iant@google.com>
175 * dwarf.c (dwarf_fileline): Add cast to avoid warning.
176 (backtrace_dwarf_add): Likewise.
178 2012-10-09 Ian Lance Taylor <iant@google.com>
180 Add support for tracing through shared libraries.
181 * configure.ac: Check for link.h and dl_iterate_phdr.
182 * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
183 ELF macros before #defining them.
184 (dl_phdr_info, dl_iterate_phdr): Define if system does not have
186 (struct elf_syminfo_data): Add next field.
187 (elf_initialize_syminfo): Initialize next field.
188 (elf_add_syminfo_data): New static function.
189 (elf_add): New static function, broken out of
190 backtrace_initialize. Call backtrace_dwarf_add instead of
191 backtrace_dwarf_initialize.
192 (struct phdr_data): Define.
193 (phdr_callback): New static function.
194 (backtrace_initialize): Call elf_add.
195 * dwarf.c (struct dwarf_data): Add next and base_address fields.
196 (add_unit_addr): Add base_address parameter. Change all callers.
197 (add_unit_ranges, build_address_map): Likewise.
198 (add_line): Add ddata parameter. Change all callers.
199 (read_line_program, add_function_range): Likewise.
200 (dwarf_lookup_pc): New static function, broken out of
202 (dwarf_fileline): Call dwarf_lookup_pc.
203 (build_dwarf_data): New static function.
204 (backtrace_dwarf_add): New function.
205 (backtrace_dwarf_initialize): Remove.
206 * internal.h (backtrace_dwarf_initialize): Don't declare.
207 (backtrace_dwarf_add): Declare.
208 * configure, config.h.in: Rebuild.
210 2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
212 * btest.c (f23): Avoid uninitialized variable warning.
214 2012-10-04 Ian Lance Taylor <iant@google.com>
216 * dwarf.c: If the system header files do not declare strnlen,
217 provide our own version.
219 2012-10-03 Ian Lance Taylor <iant@google.com>
221 * dwarf.c (read_uleb128): Fix overflow test.
222 (read_sleb128): Likewise.
223 (build_address_map): Don't change unit_buf.start.
225 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
228 * configure.ac (EXTRA_FLAGS): New.
229 * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
230 * configure, Makefile.in: Regenerate.
232 2012-09-29 Ian Lance Taylor <iant@google.com>
235 * fileline.c (fileline_initialize): Pass errnum as -1 when
236 reporting that we could not read executable information after a
239 2012-09-27 Ian Lance Taylor <iant@google.com>
242 * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
243 * Makefile.am: Add dependencies for all objects.
244 * configure, aclocal.m4, Makefile.in: Rebuild.
246 2012-09-27 Ian Lance Taylor <iant@google.com>
249 * elf.c (backtrace_initialize): Set *fileln_fn, not
252 2012-09-19 Ian Lance Taylor <iant@google.com>
254 * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
256 * configure: Rebuild.
258 2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
259 Ian Lance Taylor <iant@google.com>
261 * configure.ac (GCC_HEADER_STDINT): Invoke.
262 * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
263 * btest.c: Don't include <stdint.h>.
265 * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
267 2012-09-18 Ian Lance Taylor <iant@google.com>
270 * Makefile.am (AM_CPPFLAGS): Define.
271 (AM_CFLAGS): Remove -I options.
272 * Makefile.in: Rebuild.
274 2012-09-18 Ian Lance Taylor <iant@google.com>
276 * posix.c (O_BINARY): Define if not defined.
277 (backtrace_open): Pass O_BINARY to open. Only call fcntl if
278 HAVE_FCNTL is defined.
279 * configure.ac: Test for the fcntl function.
280 * configure, config.h.in: Rebuild.
282 2012-09-18 Ian Lance Taylor <iant@google.com>
284 * btest.c (test1, test2, test3, test4): Add the unused attribute.
286 2012-09-18 Ian Lance Taylor <iant@google.com>
288 * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
290 2012-09-18 Ian Lance Taylor <iant@google.com>
292 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
293 * mmapio.c: Don't define _GNU_SOURCE.
294 * configure, config.h.in: Rebuild.
296 2012-09-18 Ian Lance Taylor <iant@google.com>
298 * configure.ac: Check whether strnlen is declared.
299 * dwarf.c: Declare strnlen if not declared.
300 * configure, config.h.in: Rebuild.
302 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304 * fileline.c: Include <stdlib.h>.
307 2012-09-17 Ian Lance Taylor <iant@google.com>
310 * nounwind.c (backtrace_full): Rename from backtrace. Add state
313 2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
316 * nounwind.c (backtrace_simple): Add state parameter.
318 2012-09-17 Ian Lance Taylor <iant@google.com>
321 * unknown.c (unknown_fileline): Add state parameter, remove
322 fileline_data parameter, name error_callback parameter.
323 (backtrace_initialize): Add state parameter.
325 2012-09-17 Ian Lance Taylor <iant@google.com>
327 * Initial implementation.